aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes creating a jar in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "creating a jar in eclipse" Watch "creating a jar in eclipse" New topic
Author

creating a jar in eclipse

miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
i'm using eclipse 3.1 and java5

i try to create a jar for my proj, but at the end of the wizard i get dozens of msgs like:
resource is out of sync with the file system: path to file

what am i doing wrong?

TiA
[ August 16, 2005: Message edited by: miguel lisboa ]

java amateur
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
well, that i fixed ( a refresh on project did it), but now i get a:
could not find the main class. error msg when i click the jar

i created my Manifest.mf:
Manifest-Version: 1.2
Main-Class: gui.Gui


dont know why this is happening...
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
not sure why this is happening. i use eclipse to spin up (and deploy) ad hoc jars with some frequency, but have never touched the manifest file. as a result, manifest content looks like this:



you're trying to make your jar executable, but for now, try leaving the manifest to default, reference the jar in your cp, and invoke the main directly on command line. see what happens...
 
Don't get me started about those stupid light bulbs.
 
subject: creating a jar in eclipse