• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating a jar in eclipse

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic