File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes properties File Is Not in My Classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "properties File Is Not in My Classpath" Watch "properties File Is Not in My Classpath" New topic

properties File Is Not in My Classpath

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I have a java class In that class, I use a properties file:

I got an error message:

org.apache.artimus.message.utility.ParamOptions: Can't read the properties file:''. Make sure the file is in your CLASSPATH

1. I put at my application root; i.e. MyApplication/
2. I have checked the spelling of this properties file
3. The Windows Explorer indicates that this is a PROPERTIES File

Why the error message says that "cannot read the properties file"?
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Does your classpath include the 'dot' entry?
eg CLASSPATH=.;c:/the/rest

I agree. Here's the link:
subject: properties File Is Not in My Classpath
It's not a secret anymore!