• Bugs
  • Could Not Create The Java Virtual Machine

Related Discussions
...

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.

11 days later

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...