• 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

eclipse: export tool

 
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

i want to include neccessary jars into my main application. eclipse offers Export->Jar for that. my aim is to deliver one jar, where the user does not need to include any jars into classpath.

eclipse export therefore packs used libraries into lib/ directory, but it does not put any classpath entries into MANIFEST.mf, so the libraries are not included into the classpath.

am i doing something wrong through the export dialog or do i need to add included libraries into MANFIEST.mf manually?

thanks.
 
manuel aldana
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i just read that unless you implement a special classloader other jars inside a jar you cannot use these libs.

it seems that eclipse doesn't offer Class-path: option for it does not know where to find these jars in production delivery anway.
so i need to type in long ugly .jar names in a custom MANIFEST.MF .
 
So I left, I came home, and I ate some pie. And then I read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic