jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes Exporting .jars from Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Exporting .jars from Eclipse" Watch "Exporting .jars from Eclipse" New topic

Exporting .jars from Eclipse

Adam Blais

Joined: Dec 02, 2004
Posts: 27
I'm using Eclipse to export a jar file of three classes. I specified that the main class was the one with the main method in it, but when I double click the file it says "Could not find the main class. Program will exit." Is there anything else I need to do to get .jars to work?
Vijay Vaddem
Ranch Hand

Joined: Feb 13, 2004
Posts: 243
Try Fat Jar ...

This is a simple plugin to create executable jar files.

U need to have Eclipse 3.0 or later version...

Steven Bell
Ranch Hand

Joined: Dec 29, 2004
Posts: 1071
I'm not sure if Far Jar will help you out here. The problem may be in your CLASSPATH. Add '.' to it to indicate the current directory and see if that helps.
I agree. Here's the link: http://aspose.com/file-tools
subject: Exporting .jars from Eclipse
It's not a secret anymore!