Problem: how to create an executable jar-file that will run by double-clicking on it?
 
I have tried the following on the HelloUniverse example:
 
1. Create a manifest.mf file containing the line: "Main-Class: HelloUniverse"
2. Run "jar cvfm SimpleUniverse.jar manifest.mf *.class"
 
If I double-click on SimpleUniverse.jar the JVM tells me it could not find the main class. However I am able to run the same jar by typing "java -jar HelloUniverse" from a command prompt, but this is not very friendly to use for my users. Note that this problem does not occur with non-J3D applications or any of the Java2 demo's because they run just fine by double-clicking on it. Any ideas?
 
- Rudolf
 
PS. I am using JDK 1.3 beta and J3D 1.2 alpha on Windows 98.

Reply via email to