Error loading: C:\PROGRA~1\Java\JDK17~1.0_0\jre\bin\server\jvm.dl l
I have latest version of Java and this file does in fact exist
Printable View
Error loading: C:\PROGRA~1\Java\JDK17~1.0_0\jre\bin\server\jvm.dl l
I have latest version of Java and this file does in fact exist
I have this exact error, too.
Have you checked if you have this dll in the folder stated in the message?
It exists, but in a slightly different directory (I guess they changed it recently?): C:\Program Files\Java\jdk1.7.0_05\jre\bin\server\jvm.dll.
Does the "path to the JDK" entry in the preference dialog box points to the jdk1.7.0_05 directory?
I can't find that - I can only see the "Pathname of the BlackBerry JDE directory" edit box in the preferences.
Can you save a small java application (jar) with MMF, open a command line, and try :
"C:\Program Files\Java\jdk1.7.0_05\jre\bin\java.exe" -jar myjar.jar
See if it works?
The .jar application runs, but it still won't build the SWF; same error as last time.
Can you try to copy the missing dll in the bin folder besides the java.exe file? (copy, no move it)?
I've tried that already, but it still gives the same error.
Can you check that he pathanme to the JDK is present in the PATH of your machine?
The files are in the folder that they're supposed to be in, in both the x86 program files and the program files folders. Is this what you mean?
No mean open a DOS window and display the PATH, which should contain the pathn to the JDK...
How would I do that?
Go in your Start menu/Accessories folder and choose Command Prompt (dont know the name in English version of Windows). The icon shows a black commane line with "c:\"
Type PATH <enter>
This should display the path.
Look if the JDK is listed here.
If I type "PATH" into command prompt, I get the following: C:\Windows\system32;C:\Windows\System32\Wben;C:\Wi ndows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\
How would I get it to list the JDK? I've also tried installing the JDK for both 32 and 64-bit machines (one in C:\Program Files\, and one in C:\Program Files (x86)\), but that didn't make a difference.
Try this -
Open the Control Panel
Run the System utility
Select the Advance Tab
Click on Environment Variables
Add the following to the end of the path variable (including the semicolon):
;c:\Program Files\Java\jdk1.7.0\bin (your version number may be different)
Click on the OK button three times. Save your settings
Marv
I get a "Could not find a JVM" error if I include the \bin on the end of the environmental value, but then if I remove that \bin path, I get the same error as before even though jvm.dll is definitely there :(
Well fudge. Need some help from a higher power
Marv
I have found a couple of solutions on the net :
http://www.windowserrorhelps.com/err...ror-instantly/
http://stackoverflow.com/questions/1...-getting-error
http://googolflex.com/?p=122
If you do modifcations to the directories and files, make a backup first!
Still no luck. I tried the following:
1. Create C:\flex2\.
2. Copy the 32-bit jre folder to the flex2 directory.
3. Change the java.home parameter in the jvm.config to be C:/flex2/jre.
4. This gave me an error in MMF2 when building:
Error loading: C:/flex2/jre\bin\client\jvm.dll5. I changed the forward-slashes (/) in the java.home parameter to back-slashes (\).
6. I then got another error in MMF2 when building:Error: could not find a JVM.
The jvm.dll definitely exists in the correct folder. I've also tried using the 64-bit version of the jre with all of the above configurations.
:(
Argh. I have found this page in the official Java site. It is in French, use google translate to make it English.
They are talking about this very problem.
What page is it? There was no link in your post.
Did they find a fix for it or anything?
P.S Happy birthday :)
Sorry for that. My brain is playing with me.
http://java.com/en/download/help/error_mainclass.xml
I also have found that :
http://pcsupport.about.com/od/findby...sing-error.htm
I am having a similar problem. My error message is "Error loading: C:\Program Files\Java\jre7\bin\client\jvm.dll". The file does exist there, I can run Java normally, and I have just uninstalled everything with "Java" in its name and reinstalled JDK 7 Update 5 32bit, restarting after every step. I'm using a Windows Vista 32bit machine.
In the past I have tried several fixes and none have worked. I was able to export to Flash at one point but I can't any longer. I have read the information in the links above and tried the offline installer and I don't believe this is a hardware problem.
Happened to me in the past, i used this link
http://java.com/en/download/help/err...allhotspot.xml
did the suggestion and made a fresh install from an offline download and fixed
hope it help
Sadly it didn't help :(
Try add the JDK (or JRE) path at following section in Data\Runtime\Flash\Flex\bin\jvm.config
java.home=
Maybe you installed the Eclipse?
It is blank, I have tried setting it to several paths ([...]\Java\, [...]\Java\jre7\, [...]\Java\jre7\bin, [...]\Java\jre7\bin\client\[jvm.dll]) but it always says it is unable to find a JVM. When I leave it blank it uses the error above.
Interestingly, if I use forward slashes as in the documentation with the path "C:/Program Files/Java/jre7", it gives this error message:
Error loading: C:/Program Files/Java/jre7\bin\client\jvm.dll
However if I use backslashes:
Error: could not find a JVM.
So I am rather confused. In all cases where it finds a path the path is correct but it fails to load jvm.dll even though it is there and correct and works for other programs. :\
The "Error loading: C:/Program Files/Java/jre7\bin\client\jvm.dll" error occurs when the 32-bit version of the JRE is not installed on your machine. The SWF exporter doesn't work if only the 64-bit version is installed. The next update of MMF2 will display a message in this case. Install the 32-bit version of the Java Runtime Environment (JRE) (or the JDK if you want as it contains the JRE, but the JDK is not required for the SWF exporter) and then retry. That should work.
I should have asked Yves to come on this thread sooner. Sorry for that.
Try version 6. Version 7 sucks.
Marv
JDK7 installes for me (which is odd because it said it would uninstall Java 6) JRE6. And, as a programmer, Java 7 doesn't suck - it introduces some excellent new language features.
I tried paths with java 6 but the problems are the same.
ok
Marv
OK, I've tried what you said.
1. I've uninstalled all the versions of Java, installed 32-bit JDK7.
2. I've tried with the latest version of MMF2 (that you haven't yet unless you are an HTML5 beta tester) => worked fine.
3. I've installed the official build 255 => same error as you (weird, I thought I had tested this case...)
4. I've added a JAVA_HOME environment variable and set it to C:\Program Files (x86)\Java\jdk1.7.0_05 => this solved the issue.
So try adding this variable or verify its value if it already exists.
I'll post a beta version of the next build asap in the SWF exporter owner lounge forum. This version allows you to select different versions of Java for each exporter (as JDK7 is not compatible with the Android exporter for example) and temporarily sets the JAVA_HOME and PATH environment variables when you build an application.
I have created the JAVA_HOME environement variable with this value as it didn't exist:
C:\Program Files\Java\jdk1.7.0_05
I still get the error unfortunately:
Error loading: C:\Program Files\Java\jdk1.7.0_05\jre\bin\client\jvm.dll
The path is correct and I can still run Java just fine, including from the command line as "java -help". I have MMF2 build 255 with the Flash exporter and that's it.
"C:\Program Files\Java\jdk1.7.0_05" is the path of the 64-bit version of the JDK, unless you use a 32-bit machine?
Yes I have a 32-bit Windows Vista machine.
Bumping this thread to see if anybody has made progress in this or if anyone has resolved it themselves