I started out small, building the canonical "Hello World" program within Eclipse as a Java Project.
Then I grew the program with Hibernate.
Then I added on a GUI front-end based on the examples at www.java2s.com (thanks!)
The code does not import any org.eclipse.* packages. It does import some org.hibernate.* packages as well as the usual Java stuff, and stuff for AWT and Swing.
All works great when I execute the program from within Eclipse.
I was successful at creating a executable jarfile. I made sure to click the "extract required libraries into jar" button while doing so.
Double-clicking the executable jarfile does start up the program, the GUI appears, I can click JButtons, fill in JTextFields, etc. But the program stalls when my "Execute" JButton is clicked which calls doRealWorkNow() .
My guess is the program actually stalls when it hits the first Hibernate-related statement within doRealWorkNow() , which implies not everything necessary for execution got stored within the jarfile.
So, how can I create an executable jarfile from within Eclipse (Galileo) and have it actually work? Searching the 'net reveals mentionings of a manifest.mf file but doesn't say where to place it within the Java Project or what to put in it. what's the trick?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: creating a GUI desktop app with Eclipse withOUT using Eclipse' RCP