Java – JDK 14.0.1 installed and “No Java runtime present, requesting install”

javajava-web-start

I found similar issues but none addressing the issue recently.

In a fresh installed Java, for the record:

java -version
openjdk version "14.0.1" 2020-04-14
OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.1+7)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.20.0, JRE 14 Mac OS X amd64-64-Bit Compressed References 20200416_40 (JIT enabled, AOT enabled)
OpenJ9   - 05fa2d361
OMR      - d4365f371
JCL      - 5757187cae based on jdk-14.0.1+7)

I'm trying to execute a simple:

javaws

And getting a

No Java runtime present, requesting install.
Unable to locate a Java Runtime to invoke.

In the aforementioned similar problems, the people correlated this to the lack of JAVA_HOME, which is not the case here:

echo $JAVA_HOME
/Users/fbarbeiro/.sdkman/candidates/java/current/bin/java

I'm using a MacOS High Sierra version 10.13.3which I cannot update due to external dependencies.

Any clue in what could have been causing the No Java runtime present, requesting install. Unable to locate a Java Runtime to invoke.?

Thanks

Best Answer

javaws is the command to start the Java Web Start launcher.

Java Web Start was deprecated in Java 9 and removed in Java 11. You can downgrade from 14 to 10, or look for alternatives. I found this with an Internet search: https://openwebstart.com/