NullPointerException when launching web launch application

After the final solution to the problem of signing the gang (thank you all for your help!), Now a new one has appeared.

When I try to launch a web launch application from the launch.jnlp file, the following error occurs:

java.lang.NullPointerException at com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 

If I use a jnlp file pointing to a jar file on my computer, the application works fine, but if I try to use a jar file on a website, I get the above error.

What exactly is the problem?

The jnlp file has the desired format, otherwise why would it work in my local jar file?

Here is jnlp:

 <?xml version="1.0" encoding="UTF-8" standalone="no"?> <jnlp spec="1.0+"> <information> <title>ExcelReader</title> <vendor>Adam</vendor> <homepage href="http://www.appquad.com"/> <description>ExcelReader</description> <description kind="short">ExcelReader</description> <offline-allowed/> </information> <update check="background"/> <security> <all-permissions/> </security> <resources> <j2se version="1.7+"/> <jar href="http://www.appquad.com/ExcelCopyApp/sExcelReader.jar" main="true"/> <jar href="http://www.appquad.com/ExcelCopyApp/lib/jxl.jar"/> </resources> <application-desc main-class="excelreader.ExcelCopyApp"> </application-desc> </jnlp> 
+4
source share
2 answers
+2
source

I ran into a similar problem. When trying to run the application through jnlp:

 java.lang.NullPointerException at com.sun.javaws.JnlpxArgs.execProgram(Unknown Source) at com.sun.javaws.Launcher.relaunch(Unknown Source) at com.sun.javaws.Launcher.prepareResources(Unknown Source) at com.sun.javaws.Launcher.prepareAllResources(Unknown Source) at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source) at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source) at com.sun.javaws.Launcher.launch(Unknown Source) at com.sun.javaws.Main.launchApp(Unknown Source) at com.sun.javaws.Main.continueInSecureThread(Unknown Source) at com.sun.javaws.Main.access$000(Unknown Source) at com.sun.javaws.Main$1.run(Unknown Source) at java.lang.Thread.run(Unknown Source). 

I have jdk 1.7 on my machine and any like any jar in the JRE lib is missing or corrupt. I mounted the JRE and it worked for me. I would suggest defining a jar that does not fall into the jnlp file and does not link them and whether it works.

0
source

All Articles