Skip to Main Content

Java Programming

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!

how to dynamically set location of properties file

807569May 17 2006 — edited May 18 2006
I am creating a java application (something with a main method in it, this is not a servlet) and I have a properties file that I want to use. This all works great on my development PC, but when I go to deploy the app to my test server or my production server, I have to change the location of where the properties file is, because the file systems do not match.

How does one use the properties.load method without specifying the absolute path to the properties file?

Thanks in advance
Dean-O
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 15 2006
Added on May 17 2006
3 comments
1,292 views