Page 1 of 1

Launch Error: Could not launch JNLP file

Posted: 17 Apr 2023, 14:12
by thomas.trippmacher
When we run the Java application with the JNLP file on the remote computer, we always get this error message. Can anyone tell us what the problem is ?

Waiting for exception dialog to be closed
Launch exception
netx: Launch Error: Could not launch JNLP file. ( ( (Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @7f38a5)))
Class-Path attribute cleared for C:\Users\reic1\.cache\icedtea-web\cache\0\21\basis.jar
-s
Start!

Re: Launch Error: Could not launch JNLP file

Posted: 18 Apr 2023, 06:59
by Janak Mulani
Please attach the log files. Please don't copy and paste logs as it is difficult to read long logs.

It could be that the jar file is corrupt or you need to provide the jvm arg in jnlp for the module in which the class iss.

Re: Launch Error: Could not launch JNLP file

Posted: 25 Apr 2023, 09:03
by thomas.trippmacher
Here are the log files as requested

Re: Launch Error: Could not launch JNLP file

Posted: 26 Apr 2023, 08:38
by Janak Mulani
On line 308 In the Stage 2 log, OWS is Starting your application and invoking the main method of your application.

After that there is an exception in your app:

Code: Select all

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @82d4e9
Please see https://stackoverflow.com/questions/412 ... cessible-m

You may need to specify the following jvm args in your Jnlp file:

Code: Select all

<j2se version="1.8+"     java-vm-args="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED"/>