tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Stor <>
Subject properties file confusion
Date Thu, 10 Apr 2003 06:21:24 GMT
Hi all,

I have got a class that depends on external properties in a properties
file. The class references that file through new File("").
That is fine as long as I'm working in the closed IDE environment and
the file is placed in the project root folder.
I've now packaged the class into a JAR file and placed it into
%CATALINA_HOME%\webapps\myApp\WEB-INF\lib. The class now tries to locate
the file in the windows\system32 folder. Why is that? I would like to
place it in WEB-INF or WEB-INF\lib or even myApp\. How should I
reference it then inside my class?
The class is neither a servlet nor is it web app specific, so the way I
locate the properties file should also be applicable if it is used by a
destop application.

Thanks for all your help.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message