• 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

JAR problem

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

I have created an app which is bundled in a JAR file. This app depends upon other jars, whose names I have provided in the Class-Path header in the MANIFEST file.

Currently, whenever I have to invoke this app, I have to make sure that the dependant jars are also in the same directory. This is quite irritating as there are lots of such dependant jars.

Is there some way I can mention in my MANIFEST the absolute path of dependant jars? Alternatively, if I can define a variable in MANIFEST which can be set when I invoke the jar (say by a command-line option), I can use it to set the jars location.

Thx.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This does not help but maybe you should read this :

http://java.sun.com/developer/Books/javaprogramming/JAR/basics/manifest.html

With this header, the classes in the files servlet.jar, infobus.jar, and acme/beans.jar will serve as extensions for purposes of the applet or application. The URLs in the Class-Path header are given relative to the URL of the JAR file of the applet or application.
reply
    Bookmark Topic Watch Topic
  • New Topic