Page 1 of 1

"Windows error 2 " Protege Error Solved

Posted: 17 May 2016, 19:30
by timothydilks
I was getting the below error message when I started up Protege_3.5
"Windows error 2 occured while loading the Java VM"
The root cause appears that in Protege there is a file called "Protege.lax" which contains the properties by which Protege launches and uses Java. In it there is the following part:
# LAX.NL.CURRENT.VM
# -----------------
# the VM to use for the next launch

lax.nl.current.vm=C:\\Program Files\\Java\\jre1.8.0_60\\bin\\java.exe
and as you can see from the last line it points to the install path of Java with the version. Apparently I had forgotten that I had installed a different version since then, which was causes the error. A simple edit to the correct version on that line enabled it to start up properly

Re: "Windows error 2 " Protege Error Solved

Posted: 23 May 2016, 09:03
by jonathan.carter
Thanks for posting this!

Using a separate JVM (as you are) from that which is included in the Protege distribution is a good idea, too pick up all the latest patches and updates.

Thanks again for sharing.

Jonathan