Skip to content

FlashDebugger startup error arises after JAVA_HOME set. #866

@JiaChen-Zeng

Description

@JiaChen-Zeng
Running process: D:\{me}\Downloads\FlashDevelop\Tools\fdbuild\fdbuild.exe "D:\Data\编程\Actionscript 3.0\项目\0133Trainer\Main.as3proj" -ipc a5b855f0-6da6-4de3-a048-60d91d9a9d8a -version "4.14.1" -compiler "D:\Data\编程\Actionscript 3.0\资料\Flex SDK\4.14.1_14_14" -library "D:\{me}\Downloads\FlashDevelop\Library"
Building Main
mxmlc -load-config+=obj\MainConfig.xml -debug=true -incremental=true +configname=air -locale en_US -o obj\Main635774316108813988
Starting java as: D:\Apps\JDK\bin\java.exe  -Xms64m -Xmx384m -ea -Dapple.awt.UIElement=true -Duser.language=en -Duser.region=US -Djava.util.Arrays.useLegacyMergeSort=true -Dapplication.home="D:\Data\编程\Actionscript 3.0\资料\Flex SDK\4.14.1_14_14" -jar "D:\Data\编程\Actionscript 3.0\资料\Flex SDK\4.14.1_14_14\lib\fcsh.jar"
INITIALIZING: Apache Flex Compiler SHell (fcsh)
Starting new compile.
Loading configuration file D:\Data\编程\Actionscript 3.0\资料\Flex SDK\4.14.1_14_14\frameworks\air-config.xml
Loading configuration file D:\Data\编程\Actionscript 3.0\项目\0133Trainer\obj\MainConfig.xml
obj\Main635774316108813988 (2023955 bytes)
(fcsh)Build succeeded
Done(0)
Debugger startup error. For troubleshooting see: http://www.flashdevelop.org/wikidocs/index.php?title=F.A.Q
Error details: System.BadImageFormatException: 试图加载格式不正确的程序。 (异常来自 HRESULT:0x8007000B)
   在 net.sf.jni4net.jni.JNI.Dll.JNI_GetDefaultJavaVMInitArgs(JavaVMInitArgs* args)
   在 net.sf.jni4net.jni.JNI.Init()
   在 net.sf.jni4net.jni.JNI.CreateJavaVM(JavaVM& jvm, JNIEnv& env, Boolean attachIfExists, String[] options)
   在 net.sf.jni4net.Bridge.CreateJVM()
   在 net.sf.jni4net.Bridge.CreateJVM(BridgeSetup setup)
   在 FlashDebugger.DebuggerManager.Start(Boolean alwaysStart)
[Capturing traces with FDB]

试图加载格式不正确的程序 in English is Trying to load a program which is in incorrect format.

My JDK is 64 bit and JRE is 32 bit. Seems that FD gives priority to JAVA_HOME, so it uses the 64 bit JDK instead of the 32 bit JRE.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions