I'm new to both Java and the Eclipse IDE, and I'm trying to create a
simple SWT application using the Visual Editor. Everything is fine when
running the app from within the editor, but when I export it to an
executable jar file, double-clicking the jar from explorer give me the
error "Could not find the main class. Program will exit."
I've also tried running from the command line with the following command:
java -classpath C:\swt\swt.jar;C:\SWTTest\SWTTest.jar
-Djava.library.path=C:\SWT SWTTest
where SWTTest is the name of the main class. I get the exception
"java.lang.NoClassDefFoundError: SWTTest".
The manifest file inside the jar file is as follows:
Manifest-Version: 1.0
Main-Class: my.pkg.SWTtest
Everything looks right, but it just won't run... I'm about at my wit's
end, so any help would be appreciated.
btw, I'm running Eclipse 3.1.1 on a WinXP machine, and this project is
basically just a shell.. nothing fancy.