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

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?

[1012 byte] By [alienchilda] at [2007-11-26 22:42:56]
# 1

Perhaps the problem lies somewhere else.

Obviously if other JInternalFrames are working then there is a difference in the one missing internal frame that causes it not to show up.

My guess is that perhaps you are missing one or two classes in your JAR that are used by that JInternalFrame and that an exception is being thrown causing it not to show.

Double check the contents of your JAR and make sure that all the classes are present and that they are the right versions.

maple_shafta at 2007-7-10 11:58:53 > top of Java-index,Desktop,Core GUI APIs...
# 2
if I extract the JAR file to its own directory, I can run the application fine :(
alienchilda at 2007-7-10 11:58:53 > top of Java-index,Desktop,Core GUI APIs...
# 3
looks like the only solution I have is to build the application up from scratch, and test it as .jar compile by compile. If I encounter the bug again, I will post the solution here for future reference.
alienchilda at 2007-7-10 11:58:53 > top of Java-index,Desktop,Core GUI APIs...