Error Loading Jvm.dll Flashdevelop
Contents |
tools. Also JavaScript compilation with closure compiler requires Java as does some other misc. tools in FlashDevelop depending on your target platform, java jre as for example ANT. Installing You need to install 32-bit Java 1.6+
Download Jdk
and add Java path to your PATH environment variable, JAVA_HOME environment variable or to bin/jvm.config or build.properties file in the SDK. Generally speaking the new AIR SDK with ASC 2.0 should work with any 32-bit Java and Flex SDK (Apache too) requires 1.6+ 32-bit Java with few errors that may need a workaround. Path resolution FlashDevelop resolves Java binary (java.exe) location and arguments the following way: 1. Looks inside the SDK for bin/jvm.config or build.properties file to get user-defined arguments: java.home: Path to Java installation, ie. "C:\Program Files (x86)\Java\jre6" without "\bin" at the end. java.args: Arguments to call Java (ie. how much RAM to assign etc.) 2. Looks for JAVA_HOME environment variable. Path to Java installation, without "\bin" at the end. 3. Calls the default Java executable in the PATH environment variable. You should add Java bin directory,ie. "C:\Program Files (x86)\Java\jre6\bin", to your PATH environment variable. Possible errors Error when compiling: Error: null Reason: An unknown error has been encountered in the compiler. Fix: Incremental compilation in Flex SDK + AIR SDK 16+ is broken with Java 8: Use Java 6 or Java 7. Fix: Clean the project with Shift+F8 and rebuild. Error when compiling: Error: Comparison method violates its general contract! Reason: Comparison error has been encountered in the compiler. Fix: With Java 7 and Flex SDK you need to add "-Djava.util.Arrays.useLegacyMergeSort=true" to bin/jvm.config or build.properties file to workaround breaking change with array sorting in Java 7. Fix: Find the possibly failing comparison part from your code and fix it. Example case: https://github.com/Gamua/Starling-Framework/issues/379 Error when debugging: System.DllNotFoundException: Unable to load DLL 'jvm.dll'. Reason: Java can't find the necessary dependency DLLs. Fix: Point the correct Java to the SDK as specified in the first chapters. Error when debugging: System
'jvm.dll': The specified module could not be found."... У вас тоже эта ошибка/проблема? Build succeeded Done(0) Debugger startup error: System.TypeInitializationException: The type initializer for 'net.sf.jni4net.jni.JNI' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'jvm.dll': http://www.flashdevelop.org/wikidocs/index.php?title=Java The specified module could not be found. (Exception from HRESULT: 0x8007007E) at net.sf.jni4net.jni.JNI.Dll.JNI_GetDefaultJavaVMInitArgs(JavaVMInitArgs* args) at net.sf.jni4net.jni.JNI.Init() at net.sf.jni4net.jni.JNI..cctor() --- End of inner exception stack trace --- at net.sf.jni4net.jni.JNI.CreateJavaVM(JavaVM& jvm, JNIEnv& env, Boolean attachIfExists, String[] options) http://toopro.org/blog/jvm-dll-not-found-flashdebvelop-fd4-java-problem-fix-solved at net.sf.jni4net.Bridge.CreateJVM() at net.sf.jni4net.Bridge.CreateJVM(BridgeSetup setup) at FlashDebugger.DebuggerManager.Start() [Capturing traces with FDB] Googling about this problem tells that many users have this in JDK 6 solved with msvcr71.dll, but not for me :( And it's because I have latest JDK 7 which needs msvcr100.dll, so just find this DLL in "jre7/bin" directory and copy to FlashDevelop.exe folder. For thos who had BadImage problem while building on x64 system, don't forget, that now FD4 uses x32 component, so set JAVA_HOME to point to x32 version of JDK. Portfolio Contact me actions script as3 d7 drupal Entity flash gadget php problem security ubuntu vkontakte more tags
poked through the project settings and found that it was using C:\Users\Eric\AppData\Local\FlashDevelop\Apps\flashsa\14.0.0\flashplayer_14_sa_debug.exe to debug. (From here on out, all paths are http://developers.useflashpunk.net/t/cant-get-debugger-and-compiler-working-at-the-same-time/1953 relative to C:\Users\Eric\AppData\Local\FlashDevelop\Apps unless otherwise marked.) So I changed it to use FlashPlayerDebugger.exe. from flexsdk\4.6.0\runtimes\player\11.1\win. It still didn't work. So I checked online for some more help, found out that FlashDevelop https://groups.google.com/d/topic/jni4net/MTIhZ6qe9YQ uses the fdb program from flexsdk\4.6.0\bin as a debugger. I tried launching fdb directly from the command line, and it said it had an error loading jvm.dll from my JAVA_HOME. I error loading have Java 8 installed, and I read online that Flex wants a 32-bit Java 6, so I installed that and edited jvm.config (found in the same directory as fdb). I changed the line java.home= to say java.home=C:\Program Files (x86)\Java\jdk1.6.0_45\ But then it said "Error: could not find a JVM." I did some more digging, and found that others were using forward-slashes error loading jvm.dll instead, so I then tried changing it to java.home=C:/Program Files(x86)/Java/jdk1.6.0_45/ but this gave me the same ambiguous "Error loading" message from before. I think the forward-slashes messed it up, but it was worth a try. I then downloaded the latest Flex SDK and installed it overtop of the existing one, despite the version numbers seeming to be identical. Suddenly, fdb worked, without even changing java.home in jvm.config! However, FlashDevelop couldn't compile my code. So, I re-set that variable in jvm.config to point to C:\Program Files (x86)\Java\jdk1.6.0_45 this time, and then FD could compile again. As soon as I had compiled, though, fdb went back to saying "Error: could not find a JVM." FlashPunk still didn't break at my points, either. I noticed that the play/pause/stop icons at the top of FlashDevelop would suggest that the debugger is still going, even after I closed the Flash player running my game. Here is a little screenshot to show their state: http://i.imgur.com/YXP7cpD.png At this point I'm stumped. Here are the facts as well as I can tell: fdb works fine with Java 8. FlashDevelop needs Jav
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen