Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

tomcat - read external properties file from jar  RSS feed

 
Quiddo Quitch
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exception are you getting?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!