How to make FlashDevelop use 32-bit JRE?
Asked Answered
O

1

3

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?

Obrien answered 31/7, 2014 at 13:56 Comment(3)
Android Studio can be launched in 32 bit mode also, are you aware of that ?Verdi
@xwid Is it possible without reinstalling it?Obrien
there is bin/studio.exe in your Android studio installation directory, it runs android stuido in 32-bit mode and bin/studio64.exe runs in 64-bit modeVerdi
A
2

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.

Adlare answered 12/1, 2015 at 13:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.