It's not a secret anymore!*
The moose likes IDEs, Version Control and other tools and the fly likes creating a GUI desktop app with Eclipse withOUT using Eclipse' RCP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "creating a GUI desktop app with Eclipse withOUT using Eclipse Watch "creating a GUI desktop app with Eclipse withOUT using Eclipse New topic
Author

creating a GUI desktop app with Eclipse withOUT using Eclipse' RCP

Stuart Rogers
Ranch Hand

Joined: Oct 02, 2008
Posts: 140
Greetings all,

using Eclipse Galileo under XP

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?

TIA,

Still-learning Stuart
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating a GUI desktop app with Eclipse withOUT using Eclipse' RCP