• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

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

Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?


Still-learning Stuart
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic