JInternalFrame not opening in JAR file, but works when not in JAR
843805Mar 23 2007 — edited Mar 25 2007I 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?