Page 1 of 1

openwebstart - unable to load the jnlp

Posted: 02 Jul 2024, 09:57
by cormanstnl

We plan to remove JRE 1.8 from our network and for that I uninstalled JRE 1.8 from my laptop.
Yesterday, I tried to start a software who use JNLP file : Minosweb;

This tools are a 5250 emulator for AS/400.

And when I try to run the jnlp, I get :

net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. The application has not been initialized, for more information execute javaws from the command line.
at net.sourceforge.jnlp.Launcher.createApplication(
at net.sourceforge.jnlp.Launcher.launchApplication(
at net.sourceforge.jnlp.Launcher.access$300(
at net.sourceforge.jnlp.Launcher$
Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Unknown Main-Class. Could not determine the main class for this application.
at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.initializeResources(
at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.<init>(
at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.createInstance(
at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.getInstance(
at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.getInstance(
at net.sourceforge.jnlp.Launcher.createApplication(
... 3 more

So, how can I resolve this problem ?

Re: openwebstart - unable to load the jnlp

Posted: 02 Jul 2024, 10:42
by cormanstnl
I saw a similar post here and I see that the problem the definition of main class.

<application-desc main-class=""> ====> <application-desc main-class="">

But the application won't start because use package removed at JDK 9.
So except if I can add this package on the download JDK from openwebstart, I'm unable to replace JRE 1.8 by openwebstart :-(

Re: openwebstart - unable to load the jnlp

Posted: 02 Jul 2024, 17:30
by Janak Mulani
You can add appropriate --add-modules jvm args in the jnlp file to be able to run your application with Java 11. You can specify which JVM you want to use to run your application in the jnlp file and in the itw-settings.