John VanDyk has been innovating with information technology for more than 20 years. Read more...
Solution for "Could not create the Java Virtual Machine"
The problem: we wanted to give more memory to Blast2GO running on Windows 7 x64, but we kept getting the error *beep* "Could not create the Java Virtual Machine".
Looking at the makeJnlp.php file that the Blast2GO website gives you, I noticed the max-heap-size line:
<jnlp spec="1.0+" codebase="http://bioinfo.cipf.es/blast2go/webstart" href="http://bioinfo.cipf.es/blast2go/webstart/makeJnlp.php?mem=2048">
<vendor>CIPF - UPV - IVIA</vendor>
<description kind="short">Blast2GO 2048M</description>
<j2se version="1.5+" initial-heap-size="64m" max-heap-size="2048M"/>
When I removed the max-heap-size assignment the JNLP file started just fine with Java Web Start (javaws.exe). Conclusion: somehow the machine could not actually allocate the amount of heap space we were asking for.
Sure enough, further investigation showed that the 32-bit version of Java had been installed instead of the 64-bit version.
After installing the 64-bit version and running the JNLP file with 64-bit javaws.exe, everything was fine.