Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

properties File Is Not in My Classpath

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a java class ParamOptions.java. 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:'website_utility_ParamOptions.properties'. Make sure the file is in your CLASSPATH

1. I put website_utility_ParamOptions.properties at my application root; i.e. MyApplication/website_utility_ParamOptions.properties
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
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your classpath include the 'dot' entry?
eg CLASSPATH=.;c:/the/rest

Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic