aspose file tools*
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
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
Similar Threads
Appending command object to properties in properties file and throwing an error
Windows ME and Classpath
Reading properties file in classpath
Unable to register Derby driver
Ant's classpath vs Eclipse's classpath