File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Jar files and manifest classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Jar files and manifest classpath" Watch "Jar files and manifest classpath" New topic

Jar files and manifest classpath

Aaron Shaw

Joined: Jan 19, 2007
Posts: 9
I posted this in the beginner section, but have had no responses at all. I've posted again here incase different people read different forum areas.


Hi all.

Here's what i want to do...

Have my entire program contained in an executable jar file.
Have the external library jars referenced in the manifest's classpath.
Have configuration files, referenced in the manifest classpath, outside the jar file in a folder named 'config'.
These configuration files (application-context.xml etc, should be un-jared and editable on the classpath.

Here's the problem....

I can only get the config files accessible from the manifest classpath if i put them in a jar.
For example, how can i configure log4j for use from within the executable jar, without having to jar up the .properties files?

Thanks for any help !
I agree. Here's the link:
subject: Jar files and manifest classpath
It's not a secret anymore!