Results 1 to 2 of 2
Thread: java web start not working
- 07-13-2011, 07:18 PM #1Member
- Join Date
- Jun 2010
- Rep Power
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:
<?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http://www.shahspace.com/JWS/MazeMania" href="MazeMania.jnlp"> <information> <title>Maze Mania</title> <vendor>Gibran shah</vendor> </information> <resources> <!-- Application Resources --> <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/> <jar href="MazeMania.jar" main="true" /> </resources> <application-desc name="Maze Mania" main-class="classes.Main"> </application-desc> <update check="background"/> </jnlp>
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.
- 07-13-2011, 08:34 PM #2Moderator
- Join Date
- Apr 2009
- Rep Power
- By prabhug1987 in forum NetBeansReplies: 3Last Post: 04-28-2011, 10:39 AM
- By albertkao in forum EclipseReplies: 1Last Post: 01-18-2011, 06:27 PM
- By ScottVal in forum New To JavaReplies: 5Last Post: 03-20-2009, 10:04 PM
- By hitmen in forum New To JavaReplies: 0Last Post: 03-11-2009, 11:42 AM
- By sundarjothi in forum Advanced JavaReplies: 8Last Post: 05-28-2008, 07:00 AM