This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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...
 
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
The absolute uri: http://java.sun.com/jstl/core cannot be resolve
MultipartRequest cannot be resolved to a type
Run jar file from eclipse