Hello, I wrote an applet in netbeans and when i try to run it inside netbeans it works beautifully. Now I want to apply it to webstart. So in netbeans I got my project folder eneabled webstart in netbeans, put the code base as http( because it will go on my server and created it. Netebans created 3 files for me, html, jnlp, and jar. I copied these 3 files to my web server and when i type in the url for the html page a nice java launch button comes up. I click it it says it will open with java web start I click okay, then I get an error that it is unable to launch the application. Below are my html, jnlp, and exception error that comes up.
And this is the error, I notice it says unkown mainclass, but applets don't have main classes right?
[/code]
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <jnlp codebase="http://192.168.0.5/webstart" href="launch.jnlp" spec="1.0+"> <information> <title>JavaApplication17</title> <vendor>JOE<vendor> <homepage href=""/> <description>JavaApplication17</description> <description kind="short">JavaApplication17</description> <offline-allowed/> </information> <update check="background"/> <resources> <j2se version="1.7+"/> <jar href="JavaApplication17.jar" main="true"/> </resources> <application-desc main-class=""> </application-desc> </jnlp> [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Test page for launching the application via JNLP</title> </head> <body> <h3>Test page for launching the application via JNLP</h3> <script src="http://java.com/js/deployJava.js"></script> <script> deployJava.createWebStartLaunchButton("launch.jnlp") </script> <!-- Or use the following link element to launch with the application --> <!-- <a href="launch.jnlp">Launch the application</a> --> </body> </html>
And this is the error, I notice it says unkown mainclass, but applets don't have main classes right?
JNLPException[category: Launch File Error : Exception: null : LaunchDesc: <jnlp codebase="http://192.168.0.5/webstart" href="launch.jnlp" spec="1.0+"> <information> <title>JavaApplication17</title> <vendor>Joevendor> <homepage href=""/> <description>JavaApplication17</description> <description kind="short">JavaApplication17</description> <offline-allowed/> </information> <update check="background"/> <resources> <j2se version="1.7+"/> <jar href="JavaApplication17.jar" main="true"/> </resources> <application-desc main-class=""/> </jnlp> ] at com.sun.javaws.LaunchDownload.getMainClassName(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)
[/code]