aspose file tools*
The moose likes Beginning Java and the fly likes Putting un-jarred config files on the manifest classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Putting un-jarred config files on the manifest classpath" Watch "Putting un-jarred config files on the manifest classpath" New topic
Author

Putting un-jarred config files on the manifest classpath

Aaron Shaw
Greenhorn

Joined: Jan 19, 2007
Posts: 9
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, log4j.properties) 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 !
 
wood burning stoves
 
subject: Putting un-jarred config files on the manifest classpath