Due to the new license of OracleJDK8, I have to use OpenJDK8.
I have installed AdoptOpenJDK8 from Homebrew and it works well.
The problem is that I have to launch a Java application from a JNLP link, what is called Java Web start. The problem is that this feature is not included in the OpenJDK8.
Java Web Start is implemented in the project IcedTea-Web but I cannot find any binaries for macOS and find I try to build it, I obtain the message:
configure: error: "OS darwin18.2.0 is not supported"
My question is : How can I run a JNLP file with OpenJDK 8? Do I need to use IcedTea-Web and if yes how to build it?
Best Answer
IcedTea-Web is a project that:
but there is no build for macOS. However the important part of this application is written in Java so we can run it directly on macOS. Here is how:
Get the Debian build from the stable release:
Extract the deb file:
Extract the archive
data.tar.xz
which is inside the deb file:Go to the directory where the main jar file is:
and just run your jnlp file:
Depending on your application you could have to change options. You can list them with:
which result in:
Update
In the future, you should be able to use Open Web Start which is an open source reimplementation of the Java Web Start technology. But for now the macOS installation is not ready. Check the corresponding GitHub issue for details.