I have a JNLP file which is generated by a servlet dynamically . The JNLP generated is:
<jnlp spec="6.0+" href="launch?param1=Hooolas">
<information>
<title>JSGD</title>
<vendor>evconsul</vendor>
<homepage href=""/>
<description>JSGD</description>
<description kind="short">JSGD</description>
<offline-allowed/>
</information>
<update check="background"/>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.8+"/>
<jar href="http://192.168.0.17:8080/Secu/huella/JSGD.jar" main="true"/>
</resources>
<application-desc main-class="jsgd.JSGD">
<argument>Hooolas</argument>
</application-desc>
</jnlp>
The error in a client machine:
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)
Missing Application-Name manifest attribute for: http://192.168.0.17:8080/Secu/huella/JSGD.jar
#### Java Web Start Error:
#### null
I have packed all libraries in one jar called JSGD.jar its struct is:
JSGD.jar
-jsgd
-META-INF
-org
-SecugenLib
The URL of my jar is: http://192.168.0.17:8080/Secu/huella/JSGD.jar
I have packed my app via on Netbeans 8.1 Files->/buil.xml right click Run Target->Other Targets->package-for-store. This generates a jar inside in Store folder. This jar has the struct described above.
In my machine runs ok(when codebase attribute is: codebase="http://localhost:8080/Secu/" of course! ). What would be the problem? JRE version 1.7.0_79-b15(Client Machine) I use Netbeans 8.1
DETAILS:
I have overwritten build.xml adding the next lines; to pack all classes in one jar:
<target name="package-for-store" depends="jar">
<!-- Cambien el valor de esta propiedad para dar el nombre al JAR,
sin la extensión .jar. No debe tener espacios.
<property name="store.jar.name" value="NombreDelJar"/>
-->
<property name="store.jar.name" value="JSGD"/>
<!-- No editar nada después de esta línea -->
<property name="store.dir" value="store"/>
<property name="store.jar" value="${store.dir}/${store.jar.name}.jar"/>
<echo message="Packaging ${application.title} into a single JAR at ${store.jar}"/>
<delete dir="${store.dir}"/>
<mkdir dir="${store.dir}"/>
<jar destfile="${store.dir}/temp_final.jar" filesetmanifest="skip">
<zipgroupfileset dir="dist" includes="*.jar"/>
<zipgroupfileset dir="dist/lib" includes="*.jar"/>
<manifest>
<attribute name="Main-Class" value="${main.class}"/>
<attribute name="Application-Name" value="JSGD"/>
<attribute name="Trusted-Only" value="true"/>
<attribute name="Permissions" value="sandbox"/>
<attribute name="Codebase"
value="http://192.168.0.17 http://localhost"/>
</manifest>
</jar>
<zip destfile="${store.jar}">
<zipfileset src="${store.dir}/temp_final.jar"
excludes="META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA"/>
</zip>
<delete file="${store.dir}/temp_final.jar"/>
</target>
Update
Following the advices from @mosquito-x, seems the thing goes better, but Java 7(I'm trying in jre-8u91 too) block it. The message is:
Application Blocked by Java Security.
Name: JSGD
From: http://192.168.0.17
Reason: The Java Security Settings have this application from running. You may change this behavior in Java Control Panel.
In Java control panel Site list. I have added these sites:
http://192.168.0.17:8080
http://192.168.0.17:8080/Secu
http://192.168.0.17:8080/Secu/huella
http://192.168.0.17:8080/Secu/launch
Thanks in advance!