• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can't find correct classpath for the required properties file

 
Max Bean
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I've been trying to make something like:

FileInputStream propFile = new FileInputStream("src/props/myProperties.txt");

but the compiler keeps complain:

Caused by: java.io.FileNotFoundException: class path resource [src/props/myProperties.txt] cannot be opened because it does not exist

Any suggestion about the thing/article/stuff to read on, and then I can obtain sharp understanding to get it done myself?

Thnx
Mr Newbie
 
Gaurav Faujdar
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try something like

to know where you program is trying to read the file from.
[ August 01, 2007: Message edited by: Gaurav Faujdar ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic