executible

so i wrote this program with netbeans and it works perfectly. it consist of 3 classes (2 of which are gui's) that are all called within each other. not my problem is that when i click on the .jar file that the complier gives me, on of the gui's pop up, not the other, and the program will not work like it did when ran in netbeans. if anyone could help me figure this out, id be thankful. I can post the code if needed, but its a bit lengthy. Thanks!

[459 byte] By [frostbytesa] at [2007-11-27 6:17:31]
# 1

The code, in and of itself, may not help*. What matters it what went into the jar file, how it was arranged within the jar file, and what manifest the jar file was provided with.

Step away from the ide, have a read of http://java.sun.com/docs/books/tutorial/deployment/jar/index.html, then create the jar archive (with all the necessary class and resource files) yourself.

* One thing to watch for though is resources like images etc that you acess as files. Although they can be placed within the archive, they will no longer be files and must be accessed using the Class method getResource(), rather than File.

pbrockway2a at 2007-7-12 17:30:28 > top of Java-index,Java Essentials,Java Programming...
# 2
thanks man, sorry for the long delay, ive been swamped at work. Ill try that and let you know how it goes...again, thanks alot
frostbytesa at 2007-7-12 17:30:28 > top of Java-index,Java Essentials,Java Programming...