Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JInternalFrame not opening in JAR file, but works when not in JAR

843805Mar 23 2007 — edited Mar 25 2007
I have a folder that contains multiple .class files. I make all the class files into one jar file with this command:

jar cmf mainClass.txt myapplication.jar *.class

The mainClass.txt contains the following:

Main-Class: myapplication
class-path: myapplication.jar

The myapplication.class opens up a JDesktopPane inside a JFrame. It also contains a start menu, which again has elements that opens up misc JInternalFrames inside the JDesktopPane. The problem is this:

When I run the application from a .bat file, everything works fine. However, after making the JAR Executable file, everything works except 1 JInternalFrame. Now, the code for this JInternalFrame is far too much to post, so I'll have to ask as follows;

Are there any reason why a JInternalFrame would not work from inside a JAR Executable, but work when not in the JAR file? Especially when other JInternalFrames are working? What can make 1 JInternalFrame different from the others in this regard?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 22 2007
Added on Mar 23 2007
3 comments
218 views