Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

current directory in Tomcat

843838Oct 10 2005 — edited Oct 13 2005
Hi,
I have a webapp on Tomcat on Linux. In one of my classes I want to read from some file, but the current direcory seems to be /root. I don't want to use an absolute path. Is there a way to change the current tomcat working directory? How to do it?
Thanks a lot for your help :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 10 2005
Added on Oct 10 2005
8 comments
495 views