• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

creating a jar in eclipse

 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
reply
    Bookmark Topic Watch Topic
  • New Topic