Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exporting .jars from Eclipse

 
Adam Blais
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try Fat Jar ...

This is a simple plugin to create executable jar files.

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

Vijay
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic