Skip to Main Content

Java Development Tools

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!

Java Standalone App: cannot find property file

slsam01Dec 19 2007 — edited Dec 20 2007
I have a Java Standalone application. I created a Project in JDeveloper (10.1.3.3) J2EE Edition.

The Main class com.mycom.MainEntry.java needs to read a property file config/conf.properties. In the Java class, the file path is "config/conf.properties".
But when I run the class, I got error: file config/conf.properties cannot be found:
The files are in the following folders:

C:/sandbox/project1/com/mycom/MainEntry.java
C:/sandbox/project1/config/conf.properties

I created a project project1 in JDeveloper and the Java class was compiled and located under folder
... jdev/mywork/application1/project1/classes/com/mycom/MainEntry.
I also copied the property file to:
... jdev/mywork/application1/project1/classes/config/conf.properties

Can someone tell me where I should put the property file or how to configure the JDeveloper's project properties, so that the Java class can find the property file?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2008
Added on Dec 19 2007
5 comments
988 views