自从我更新了 Flash Develop 并安装了最新版本的 Air/Flex SDK 后,由于出现以下错误,我无法再调试应用程序:
Debugger startup error. For troubleshooting see: http://www.flashdevelop.org/wikidocs/index.php?title=F.A.Q
Error details: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
em net.sf.jni4net.jni.JNI.Dll.JNI_GetDefaultJavaVMInitArgs(JavaVMInitArgs* args)
em net.sf.jni4net.jni.JNI.Init()
em net.sf.jni4net.jni.JNI.CreateJavaVM(JavaVM& jvm, JNIEnv& env, Boolean attachIfExists, String[] options)
em net.sf.jni4net.Bridge.CreateJVM()
em net.sf.jni4net.Bridge.CreateJVM(BridgeSetup setup)
em FlashDebugger.DebuggerManager.Start(Boolean alwaysStart)
[Capturing traces with FDB]
...
我使用的是 Windows 7 x64、FlashDevelop v4.6.4、JDK v1.7、AIR SDK v14。
最佳答案
通过更改jvm.config
解决了这个问题,您可以在这里找到它:
%USERPROFILE%\AppData\Local\FlashDevelop\Apps\flexairsdk\4.6.0+14.0.0
我将参数 java.home
(第 ~27 行) 修改为:
java.home=C:\Program Files (x86)\Java\jre7
Note:
You can find the path to your SKD folder in your SetupSDK.bat file,FLEX_SDK=...
Very important:
Even if you're on a 64bit system, the java.home must point to the 32bit java installation!
关于actionscript-3 - Flashdevelop 调试器 - System.BadImageFormatException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25684687/