The man page says
I have java 18 installed, why is javavm insisting on using the ancient java 1.8 by default? The man page says it uses the latest version by default. I even tried removing 1.8 from /usr/local/etc/javavms, but it's still using it.
What am I doing wrong? (I only have 1.8 installed at all because javaservicewrapper package requires it as a dependency for some reason.)
Code:
By default, [B]javavm[/B] will select the most "native" and up to date version
of the Java VM when a given symbolic link is used, invoking and passing
the arguments to the matching executable within the chosen Java VM.
Code:
# pkg version | grep jdk
openjdk18-18.0.2+9.1_1 =
openjdk8-8.352.08.1_1 <
Code:
# java -version
openjdk version "1.8.0_352"
OpenJDK Runtime Environment (build 1.8.0_352-b08)
OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode)
I have java 18 installed, why is javavm insisting on using the ancient java 1.8 by default? The man page says it uses the latest version by default. I even tried removing 1.8 from /usr/local/etc/javavms, but it's still using it.
What am I doing wrong? (I only have 1.8 installed at all because javaservicewrapper package requires it as a dependency for some reason.)