actionscript-3 - Flashdevelop 调试器 - System.BadImageFormatException

标签 actionscript-3 flash debugging air flashdevelop

自从我更新了 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/

相关文章:

Flash AS3 在尝试获取外部 swf 时获取安全沙箱违规

actionscript-3 - 如何使用 Adob​​e Air 下载和解压 .ZIP 文件夹?

debugging - 测试一个过于笼统的程序

actionscript-3 - StageWebView在具有target = “_blank”的URL上缺少

string - 从 ActionScript 中的字符串替换所有空格、符号、数字、大写字母的最佳方法?

apache-flex - FMS 服务器技术 : 10 connections vs. $4.5K

ios - AIR 移动调试 - "Enter ip address or hostname"

apache-flex - 什么是 Adob​​e Flex?它只是Flash II吗?

c++ - 调试器已附加 - cscript

java gui 空指针异常