Page 1 of 1

openwebstart - unable to load the jnlp

Posted: 02 Jul 2024, 09:57
by cormanstnl
Hi,

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(Launcher.java:593)
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:374)
at net.sourceforge.jnlp.Launcher.access$300(Launcher.java:72)
at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:661)
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(JNLPClassLoader.java:753)
at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.<init>(JNLPClassLoader.java:352)
at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.createInstance(JNLPClassLoader.java:425)
at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.getInstance(JNLPClassLoader.java:497)
at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.getInstance(JNLPClassLoader.java:470)
at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:585)
... 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="com.ordirope.mw.minosweb.class"> ====> <application-desc main-class="com.ordirope.mw.minosweb">

But the application won't start because use sun.audio.audiostream... 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.