Unable to locate a Java Runtime that supports javaws although Java 8 is installed
Asked Answered
H

1

8

On my Mac, I cannot open JNLP files. Double-clicking them opens a pop-up with the message:

The operation couldn’t be completed. Unable to locate a Java Runtime that supports javaws. Please visit http://www.java.com for information on installing Java.

And from a terminal:

$ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_333.jdk/Contents/Home/
$ /usr/bin/java -version
java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)
$ /usr/bin/javaws 
The operation couldn’t be completed. Unable to locate a Java Runtime that supports javaws.
Please visit http://www.java.com for information on installing Java.

I know Java Web Start was deprecated in Java 9 and removed in Java 11. But this is an Oracle JDK 8. I believe it should provide Java Web Start. So what is going on?

Had answered 15/6, 2022 at 16:22 Comment(0)
H
1

If anyone is facing the same issue, this was a permission issue, although the error message is misleading.

In System Settings > Java > Security, make sure “Enable launching Java Web Start applications from the browser” is enabled, even when launching them without a browser.

“System Settings” is the native macOS configuration app.

Had answered 15/6, 2022 at 16:22 Comment(3)
in the majority of those cases the JNLP doe not open , how can I a person configure the security paramsGeometrize
Is system preference found in android studio?Gadmann
System Settings > Java > Security this is not the case on Sonoma 14.4.1. Haven't found a solution yet either.Kit

© 2022 - 2024 — McMap. All rights reserved.