wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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

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?

[ 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...
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...
I agree. Here's the link: http://aspose.com/file-tools
subject: creating a jar in eclipse
Similar Threads
Include Hibernate in Eclipse
ClassNotFoundException -->FilterDispatcher
MultipartRequest cannot be resolved to a type
The absolute uri: http://java.sun.com/jstl/core cannot be resolve
Run jar file from eclipse