MXMLC 和 64 位 JRE [英] MXMLC and 64bit JRE

查看:28
本文介绍了MXMLC 和 64 位 JRE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何解决方法可以让 Flex 编译器与 64 位 JRE 一起工作?如果我在 Eclipse 的 Ant 构建文件中使用 MXMLC 任务,它工作正常,但如果我尝试从命令行使用 MXMLC(或尝试在 Eclipse 中使用 FDT 的 Run... 命令),它会失败,告诉我...

加载错误:C:Program FilesJavajrrt-1.6.0jreinjrockitjvm.dll"

(这是一个 64 位的 JRockit 运行时,但这应该无关紧要).

解决方案

目前不支持在 64 位 JRE 中使用 Flex 编译器.相反,让编译器使用 32 位 JRE.

为此,您需要编辑位于 FLEX_HOMEin 中的 jvm.config 文件.在 jvm.config 中,将 java.home 设置为 32 位 JRE 的位置.如果您还没有 32 位 JRE,请下载它.

示例:

java.home=C:/Program Files (x86)/Java/jre6

如果你喜欢这个答案,请点击左边的向上箭头.

Are there any workarounds to get the Flex compiler to work with a 64bit JRE? If I use an MXMLC task in an Ant buildfile in Eclipse it works fine but if I try to use MXMLC from the command line (or try the Run... command from FDT in Eclipse) it fails, telling me ...

"Error loading: C:Program FilesJavajrrt-1.6.0jreinjrockitjvm.dll"

(this is with a 64bit JRockit runtime but that shouldn't matter).

解决方案

There is currently no support for using the Flex compiler with the 64 bit JRE. Instead, have the compiler use a 32 bit JRE.

To do so, you'll need to edit the jvm.config file located in FLEX_HOMEin. Within jvm.config, set java.home to the location of a 32bit JRE. If you don't already have a 32bit JRE, download it.

Example:

java.home=C:/Program Files (x86)/Java/jre6

If you like this answer, please click the up arrow to the left.

这篇关于MXMLC 和 64 位 JRE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆