How to make FlashDevelop use 32-bit JRE?

隐身守侯 提交于 2019-12-07 23:22:34

问题


I need to have 64-bit JDK installed for Android Studio (this also means having JAVA_HOME set to 64-bit JDK). I also have installed 32-bit JRE and in Flex SDK jvm.config file I specified path to it (I know Flex SDK uses it because I got Windows firewall warning about 32-bit java.exe starting up when I compiled my project).

But still in FlashDevelop I get Error details: System.BadImageFormatException: Próbowano załadować program w niepoprawnym formacie. (Wyjątek od HRESULT: 0x8007000B).

How can I fix this?


回答1:


Install a 32-bit JRE 1.7 (not 1.8) and specify the path to it in Flex SDK/bin/jvm.config like this:

java.home=C:/Program Files/Java/jre1.7.0_71

Note: On Windows replace all backslashes with forward slashes.

Note: java.exe must also be on the PATH, but it can be a 64-bit version. As long as any java.exe is on the PATH, the JRE from jvm.config will be used by Flex SDK.



来源:https://stackoverflow.com/questions/25060748/how-to-make-flashdevelop-use-32-bit-jre

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!