- Изменено
Could Not Create The Java Virtual Machine
So I just installed Spine and have java installed on my computer, but attempting to run Spine produces a "Could not create the Java Virtual Machine" error. The "Program will exit," never showing anything. Is there something else I'm supposed to install to be able to run the software?
(Wasn't sure where else to put this)
Which version of Java do you have installed ?
I'm pretty sure the java version he has installed doesn't matter, I believe spine uses it's own java files. This probably won't help but try running it as an administrator? Sorry can't be of much help though...
Nope, running as an administrator isn't making any difference. And just after encountering the error, I re-installed the default latest rendition of both Java and the JVM software (thinking that maybe if I had downloaded something about the Java Virtual Machine from Java's website, it would make a difference). Still have no results.
A version of Java is included with Spine. For some reason that is unable to run. Anything in your spine.log file in your user directory/Spine? Check Console.app if on Mac. You can also try running the Java bundled with Spine from the command line just to see if it works.
Ok, I found the .log file, and it says it detected 64 bit Java installed, requiring the 32 bit Java.
Is it possible to have 64 bit and 32 bit versions both installed, but direct Spine to only try and use the 32 bit one?
I have since uninstalled all versions of Java and reinstalled the Java 7 Update 60 offline 32-bit version. When attempting to launch Spine, I get the same error, and the .log file hasn't updated since 7/2/2014, 5 days ago. Not sure how to get it to work. Will I have to re-install Spine?
Sounds like you have an old Spine launcher. Try reinstalling Spine.
Okay, I uninstalled the program, went back to my email, re-opened the link to the download, clicked on "Windows" (using Windows 8.1), downloaded new copy of SpineSetup.exe, and installed it again, choosing "Run Spine" at the end of the installation process. Same error occurs.
Strange. Can you post your spine.log? Delete it before running Spine to make sure it is being written. Does running as admin work with the new launcher?
Running as an administrator is causing the same error. And I checked under my User/[name] folder for the Spine subfolder and it isn't there anymore (after the initial uninstallation). It isn't reappearing as a result of clicking the executable file.
Figuring a new test might be helpful, I went to Program Files (x86)/Spine/launcher/jre/bin and clicked on javaw.exe (not sure if this will really tell you guys anything), and it pops up with this error window:
[Java Virtual Machine Launcher]
Error: missing 'client' JVM at 'C:\Program Files(x86)\Spine\launcher\jre\bin\client\jvm.dll'.
Please install or use the JRE or JDK that contains these missing components.
Need to run "javaw.exe -server" from a command line to get past that client jvm error.
It makes sense the Spine folder isn't being created in your user directory
Java can't launch so nothing in Spine actually runs. I don't know why Java would be unable to launch. Maybe -server will shed some light.
Try this (just hopping it will help no idea if it will specially since there shouldn't be a problem with the dll), first if the dll exists in the folder copy it to a safe place (so that you can always go back) then try replacing with the jvm.dll that's used in your java installation (again just copy don't del or overwrite anything, to be safe). I hope this helps at least a bit...
Ok, I opened the Command Prompt, used "cd" to maneuver to the bin folder, and then entered [javaw.exe -server]. What resulted was the same error about a failure to open the java virtual machine.
As for identifying/copy and replacing the jvm.dll, I'm not sure exactly where the stuff should go. As it stands, Spine's jvm.dll is inside the bin/server subfolder whereas the java installation's jvm.dll is in a "client" subfolder. Are you suggesting I copy/save Spine's "server" one, and then copy and replace it with Java's "client" one? Or should I instead skip all of that and maybe move the file out of the server subfolder into the bin folder directly? Would that make a difference?
Just out of curiosity, are you able to run any other Java based applications?
Uhh, not sure? What's an example of one? I can run it / download and run it to check and see.
Try grabbing Minecraft, I believe there is a free version of it and it uses lwjgl which Spine does as well.
Well, I was able to download and run the demo version of Minecraft (never played it). Killed a sheep. Then exited. So that works fine as far as I can tell.
Well, if no one is able to figure out the issue with this, then I basically paid 60 bucks for nothing...is there any way I can get my money back? [Latter section posted 7/20/2014]
Sorry you are still having trouble, I'm super behind on forum posts. If you like, send us an email and we can provide a refund.
javaw.exe -server
failing proves the Java that comes with Spine won't run on your computer (OpenJDK on Windows). I don't know why. You can try running Spine with the system Java:
java -jar launcher\launcher-full.jar
If that works you can use javaw
instead so you can close the command prompt (or you can make a .bat file). Sorry again for the trouble!
I'm still open to using the second "java -jar" etc. example you provided (cause I'd like to use your program), but I'm not sure "where" I'm supposed to run it. I opened the command prompt for Admin, but I don't know which folder I should navigate to. I'm guessing I go to [Program Files (x86)\Java\jre7\bin]. When I executed it there, I got the following error.
Error: Unable to access jarfile launcher\launcher-full.jar
Perhaps it might be stored elsewhere? I just installed using the default settings for both Java and Spine, so...
Sorry, I should have been more explicit. Run the command from the Spine installation folder, eg:
cd C:\Program Files (x86)\Spine
java -jar launcher\launcher-full.jar
If Java is not in your command shell path, you'll need to specify the full path to it, eg:
cd C:\Program Files (x86)\Spine
"C:\Program Files (x86)\Java\jre7\bin\java" -jar launcher\launcher-full.jar
Note the quotes are needed because the path to java.exe
has spaces in it.
Yeah, doing that results in the following text still...
Error: Unable to access jarfile launcher\launcher-full.jar
If there aren't any other methods you can think of, then I'll just have to email you for a refund. Sorry for all the trouble. Wish it could have worked. :-/
Could it just have something to do with permissions? Since it says it is "unable to access", there must be something preventing me from running it...
It could be permissions, though "Unable to access jarfile" is also what you get if Java just can't find the JAR file. Can you check there is indeed a launcher-full.jar
file in the C:\Program Files (x86)\Spine\launcher
directory?
You can run this command to make sure it is not a permissions problem:
icacls "C:\Program Files (x86)\Spine" /grant Everyone:(OI)(CI)F
launcher-full.jar is present in the directory you mentioned.
Results of running the command line instruction:
C:\Program Files (x86)\Spine: Access is denied.
Successfully processed 0 files; Failed processing 1 files
:o Hmm, maybe it is a permissions problem. Try pressing Windows + R, type cmd
, check run as admin, then press OK and try the icacls
command again.
I was getting the "Could not create the Java VM" error as well while starting Spine (only after restoring the PC from hibernation) and this recommended solution did the trick for me: http://www.tomshardware.co.uk/faq/id-1761312/fix-create-java-virtual-machine-issue.html
Okay Nate, finally got around to running what you said. Results took longer this time, and it worked, I think?
processed file: C:\Program Files (x86)\Spine
Sucessfully processed 1 files; Failed processing 0 files
What does that mean I need to do? Cause I already previously tried running Spine as an administrator
Okay, so I just tried what Mnemonic suggested, and it finally worked! Thank you very much, to all of you (especially Nate and Shiu for working with me for so long).
Glad to hear you got it working. And thanks Mnemonic for finding the solution!
Had the same error!
Strangely it worked the first time, second time starting Spine got that error.
Thanks for the solution!
I have this error on occasion ( I'm running Windows 8. ).
Not sure what my Java setup is, but the following just worked for me:
1.) Find "launcher-full.jar" in your spine installation directory.
2.) Double click it .
==> Tadaa! Spine runs.
( Just thought I'd put it here in case in might help someone else ...) :think:
I had this same issue and resolved it by simply closing any open Chrome browser windows.
Open up Windows' System Properties from the control panel and hunt down the environment variables section:
- Add a JAVA_HOME entry pointing to the directory where the JDK is installed (e.g. C:\Program Files\Java\jre6)
- Find the Path entry and add the following onto the end ;%JAVA_HOME%\bin
- OK the changes
- Restart, so that it is aware of the new environment
Most Java tools will now be able to find your Java installation either by using the JAVA_HOME environment variable or by looking for java.exe / javaw.exe in the Path environment variable.
More about....Java Virtual Machine
http://net-informations.com/java/intro/jvm.htm
Jomy
That is true, but Spine comes bundled with it's own version of Java and doesn't use JAVA_HOME (or the other mechanisms, like the Windows registry) to find the system Java installation.