Results 1 to 2 of 2
Thread: java web start not working
- 07-13-2011, 07:18 PM #1
Member
- Join Date
- Jun 2010
- Posts
- 86
- Rep Power
- 0
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:
MazeMania.html
MazeMania.jar
MazeMania.jnlp
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:Java Code:<html> <head> <title>Maze Mania</title> </head> <body> <script src="http://www.java.com/js/deployJava.js"></script> <script> // using JavaScript to get location of JNLP file relative to HTML page var dir = location.href.substring(0, location.href.lastIndexOf('/')+1); var url = dir + "MazeMania.jnlp"; deployJava.createWebStartLaunchButton(url, '1.6.0'); </script> </body> </html>
The jar file was created with the following command:Java Code:<?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 #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Similar Threads
-
web start in java
By prabhug1987 in forum NetBeansReplies: 3Last Post: 04-28-2011, 10:39 AM -
Start Swing GUI program by Java Web Start with IE in Eclipse debug mode
By albertkao in forum EclipseReplies: 1Last Post: 01-18-2011, 06:27 PM -
How do you start a Java program from the "Start" menu under Windows?
By ScottVal in forum New To JavaReplies: 5Last Post: 03-20-2009, 10:04 PM -
Java Web Start
By hitmen in forum New To JavaReplies: 0Last Post: 03-11-2009, 11:42 AM -
Java mail problem(working in intranet,but not working in iternet)
By sundarjothi in forum Advanced JavaReplies: 8Last Post: 05-28-2008, 07:00 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks