java web start not working
I know this is the forum for java applets and not JWS, but applets are the closest thing to JWS I could find on these forums. Please accept my apologies and move this to where it belongs if this is inappropriate.
Also, this is a cross-post from here. I'm cross-posting because I need an answer to this ASAP and I don't seem to be getting one fast enough at javaprogrammingforums.com (no offense to them :D).
Anyway, here's the OP from there:
I have a java application uploaded as a JWS program: Maze Mania
Under the MazeMania folder, I have:
I also have a "classes" folder in here with all my un-jarred class files in the appropriate packages (folders), but I don't think they're being used.
My html file looks like this:
My jnlp file looks like this:
var dir = location.href.substring(0, location.href.lastIndexOf('/')+1);
var url = dir + "MazeMania.jnlp";
The jar file was created with the following command:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Application Resources -->
<jar href="MazeMania.jar" main="true" />
jar cvf MazeMania.jar classes
This was just above the classes folder. In the folder was the class file Main.class along with all subfolders containing class files belonging to whatever package was named after that folder. The jar file was then uploaded to my server.
The problem is that when I try to launch this from the website, it says that it cannot find the Main class. Can anyone see why?
P.S. - I tried changing main-class="classes.Main" to main-class="Main" but I get the same error.