toolbox4minecraft / amidst

Advanced Minecraft Interface and Data/Structure Tracking
GNU General Public License v3.0
2.15k stars 240 forks source link

Cannot install amidst-v4.*.exe with OpenJDK/JRE 8 #566

Open UrsBeeli opened 4 years ago

UrsBeeli commented 4 years ago

Windows 10 64 bit

I have openjdk-8u232-b09 installed on my machine and I have set JAVA_HOME to point to C:\Program Files\Java\openjdk-8u232-b09\jre. If I open cmd.exe I can start java without trouble: > java -version openjdk version "1.8.0_232" OpenJDK Runtime Environment (build 1.8.0_232-09) OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)

However, if I double click on amidst-v4-2.exe or amidst-v4-3.exe they both fail with a popup window telling me:

Error in Launcher: This application requires a Java Runtime Enivronment 1.8.0

When I click the OK button, my browser opens the Oracle JRE download page.

Is there any way to run Amidst using the JRE that comes with the OpenJDK?

moulins commented 4 years ago

It seems the Java launcher doesn't check JAVA_HOME to find the installed JRE, and use registry keys instead (see: https://sourceforge.net/p/launch4j/feature-requests/127).

Make sure that the registry keys mentioned in the above link (HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion and HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\<java version>\JavaHome) are correctly set.

ghost commented 4 years ago

You can also run Amidst using OpenJDK with the following command: java -jar amidst-v4-3.exe