The last thread on this topic seems to have been locked.and I didn't see a resolution.? I installed JMRI and Azul Java 17 in January on a Windows 11 laptop that was a couple months old.? It worked fine then.? Today I? got the dreaded cannot create the Java virtual machine.
I could not find anything helpful here except type JAVA -version into the command prompt. ? That got me not the version but this:
extensions mechanism no longer supported; Use -classpath instead.
I tried repairing JAVA, I deleted it and reinstalled it with reboots between each step.?? No success
?
I consulted GROK.? Eventually it had me search for:
JAVA_HOME>JRE/LIB/EXT
I had a heck of a time finding it, because AZUL doesn't install a file called JAVA. Nor did I ever find a JAVA_HOME.? I did find JAVA files in my ThinkorSwim directory (a stock market program)? Eventually I discovered the lib file; it is in the Program Files in the ZULU directory.? I tried renaming the LIB file to old LIB, but that didn't work.?? GROK had me change it back to LIB and look for files with the .jar extension in the EXT folder.?? I moved that single file to a new file on the desktop as well as one that was in the LIB directory.? That still didn't solve my problem.? GROK told me to change? EXT to old EXT.?? That worked.? Decoder Pro works and so does Thinkorswim.
ThinkorSwim, unbeknownst to me also uses Java.? I reinstalled it after I installed DecoderPro and Zulu's maybe that cause my problem?
For you JAVA geeks here is my whole conversation with GROK.? It is long because I am the opposite of a JAVA geek and it started with what is -classpath. ?
Hopefully it helps someone.
--
Henry S,