wood burning stoves 2.0*
The moose likes Java in General and the fly likes tomcat - read external properties file from jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "tomcat - read external properties file from jar" Watch "tomcat - read external properties file from jar" New topic
Author

tomcat - read external properties file from jar

Quiddo Quitch
Ranch Hand

Joined: Apr 21, 2008
Posts: 38
I created a jar (myjar.jar) file that I placed in the lib directory of my webapp. The jar file I created needs to read from a properties file that is in a different directory. When I try to specify the path to this properties file I am getting an exception.

The code I am using



Dir structure below

How can I specify the correct path?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19684
    
  20

What exception are you getting?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
 
subject: tomcat - read external properties file from jar