I recently upgraded my computer and reinstalled windows. When I setup my new computer I installed AdoptOpenJDK instead of the oracle one. This has worked fine with other java programs I have run.
When I double click on MegaMekLab.exe I get a pop-up saying "This Application requires a Java Runtime Environment 1.8.0" then when I click OK it takes me to the oracle download site.
If I open a command prompt, I can cd to the MML directory and run MML manually, via "java -jar MegaMekLab.exe" and it works fine.
In the command prompt, I can type "java -version" I get
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9)
OpenJDK Client VM AdoptOpenJDK (build 11.0.10+9, mixed mode)
when I run "echo %JAVA_HOME%" I get
C:\Progra~2\AdoptOpenJDK\jre-11.0.10.9-hotspot\
When I type "path" I get
PATH=C:\Program Files (x86)\AdoptOpenJDK\jre-11.0.10.9-hotspot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\AOMEI\AOMEI Backupper\6.5.1;C:\Users\<MY USER>\AppData\Local\Microsoft\WindowsApps;
To me, it looks like my environment variables are set up correctly. Is there one I missed? Or will MegaMekLab.exe strictly only launch from an oracle install?