Vassal cannot find Java 1.8.0_241

Operating System: Windows 10 Home
CPU: i7-9700K
Memory: 16 GB
Video Card Nvidia GeForce RTX 2070 SUPER
Vassal version: 3.2.17-windows
Java version: 1.8

When i attempt to install Vassal, it claims that “installer has not found a JRE installed on your computer” but i can view C:/ProgramFiles/Java/jre1.8.0_241/bin using file explorer. I have no other java runtimes installed on my machine.

Thus spake Hawkfrost000:

Operating System: Windows 10 Home
CPU: i7-9700K
Memory: 16 GB
Video Card Nvidia GeForce RTX 2070 SUPER
Vassal version: 3.2.17-windows
Java version: 1.8

When i attempt to install Vassal, it claims that “installer has not
found a JRE installed on your computer” but i can view
C:/ProgramFiles/Java/jre1.8.0_241/bin using file explorer. I have no
other java runtimes installed on my machine.

What happens when you run ‘java -version’ in a command window?


J.

C:\Users\grayv>java -version java version "1.8.0_241" Java(TM) SE Runtime Environment (build 1.8.0_241-b07) Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)

Thus spake Hawkfrost000:

Code:
C:\Users\grayv>java -version
java version “1.8.0_241”
Java™ SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot™ 64-Bit Server VM (build 25.241-b07, mixed mode)

This shows that java.exe is on your PATH, which is a good sign.

My guess is that the installer isn’t spotting the registry keys which
indicate where your Java installation is. The easiest way to reset the
registry keys for Java is to uninstall and reinstall it. (Normally I
advise against uninstalling and reinstalling Java because it won’t
solve the problem, but you’ve hit one of the few circumstances where
doing so is appropriate.)


J.

I have the same issue

java -version
openjdk version “11.0.5” 2019-10-15 LTS
OpenJDK Runtime Environment Corretto-11.0.5.10.1 (build 11.0.5+10-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.5.10.1 (build 11.0.5+10-LTS, mixed mode)

Registry keys is very old-hat.

I have JAVA_HOME=C:\Development\corretto\jdk11.0.5_10 as well as the bin and lib directories in my PATH

Not sure how this is solved.

Thus spake “paul.garnham”:

I have the same issue

No, you don’t have the same issue. See below.

java -version
openjdk version “11.0.5” 2019-10-15 LTS
OpenJDK Runtime Environment Corretto-11.0.5.10.1 (build 11.0.5+10-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.5.10.1 (build 11.0.5+10-LTS,
mixed mode)

Your problem is that you’re trying to run VASSAL 3.2 with an incompatible
version of Java. The newest Java you can use with VASSAL 3.2 is Java 8.

VASSAL 3.3.0 will be compatible with Java 9 and later, but isn’t ready
for release yet.

The solution to your problem is to install Java 8.


J.

Have Java 8, update PATH and JAVA_HOME

I dont have a registry entry.

java -version
openjdk version “1.8.0_242”
OpenJDK Runtime Environment Corretto-8.242.07.1 (build 1.8.0_242-b07)
OpenJDK 64-Bit Server VM Corretto-8.242.07.1 (build 25.242-b07, mixed mode)

I uninstalled and reinstalled java, but there was no change in the installer’s behavior.

However! When i do a custom installation and just dont try to install a java package, everything else installs and runs properly (or at least the program starts, i havent added a module and run the module yet). So its just the installer that wasnt able to find my java.

Thus spake Hawkfrost000:

I uninstalled and reinstalled java, but there was no change in the
installer’s behavior.

However! When i do a custom installation and just dont try to install a
java package, everything else installs and runs properly (or at least
the program starts, i havent added a module and run the module yet). So
its just the installer that wasnt able to find my java.

Oh! I hadn’t spotted that you installed a JDK instead of a JRE. That’s
going to be the reason the installer didn’t find the registry keys it
was looking for.

This will cease to be a problem with the 3.3.0 release as we’re bundling
Java with VASSAL from that point on.


J.