I'm creating an exe with JSmooth. It builds fine but then says "Could not find the main class: MyProgram. Program will exit". The .jar file runs great. This is it's manifest file (with a new line at the end):
Mainifest-Version: 1.0
Main-Class: MyProgram
In JSmooth I have:
- Set the skeleton to Windowed Wrapper
- Executable binary is "MyProgram.exe"
- Main class field is "MyProgram"
- Then I included the MyProgram.jar file into the "Classpath" section of JSmooth.
Is there something I am missing? My main class in Java is:
public class MyProgram extends JPanel implements ActionListener,
PropertyChangeListener {
This is how I am building the .jar:
jar cmf mainClass MyProgram.jar *.class
My manifest file is "mainClass" and it contains what I first put above.
Thanks.