Two Laptop Bag*
The moose likes Java in General and the fly likes Exception with specifying properties file path in application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

Exception with specifying properties file path in application

Danny Tran

Joined: Mar 02, 2003
Posts: 8
I have a properties file "" and i put it in config directory from the application root (web-inf/classes/config/ and deploy the application in weblogic 7.0.2
in the same directory (config) i have a Configurator class (Congurator.class) that tries to read this file. however i could not figure out how to specify the path for the properties file
currently i have:
properties.load(new FileInputStream("/config/"));
but this returns FileNotFoundException. i tried with other path ("") but it return the same exception.
if anyone know how to fix this, please help me.. this one really drives me crazy =(
many thanks.
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Danny, please don't post the same question in multiple forums. It wastes time for evceryone involved if they aren't aware of other answers that have been posted. Please post follow-ups here. Thanks.

"I'm not back." - Bill Harding, Twister
It is sorta covered in the JavaRanch Style Guide.
subject: Exception with specifying properties file path in application
Similar Threads
multiple message resource file for multiple struts-config.xml
unusual exception with properties file path --- please help
help me with specify properties file please
referencing folders from within build.xml
FileNotFoundException with specifying Properties file