GUI app works in NetBeans, doesn't from command line
I'm using NetBeans 6.8, under Windows XP Professional V 2002 SP 2.
I've developed a simple data file editor using the NetBeans graphical GUI Designer. I started by creating a new project and choosing a Java Desktop Application. I have been using the classes that were auto-generated, with all my changes going into the myappView.java class.
This application works just fine when I run it within NetBeans, but does not work when I attempt to run it at the command line using the generated jar file in "dist". I also attempted to write a command line script file. Whether I run this script at the command line, or double-click it in the Windows Explorer window, or run the java command directly, I encounter the same problem.
I've tried the java command listed in the README file NetBeans provides in "dist". I've tried adding a classpath to the java command including the two gui framework libraries that NetBeans includes in the "dist\lib" directory. Nothing works from the command line.
I get a NullPointerException towards the top of the myappView.java class, within the auto-generated code, a couple lines after the "initComponents" method call.
The next two lines of auto-generated code are:
ResourceMap resourceMap - getResourceMap();
int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout") ;
The exception occurs on the second line.
I have not overridden any of the methods provided by the GUI framework.
I've searched this forum and elsewhere and have not found any solutions to this problem.
Thank you in advance for any help you may provide. I am at a loss as to why this does not run from the command line.