A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
can't find correct classpath for the required properties file
Joined: Mar 09, 2006
Aug 01, 2007 02:55:00
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?
Joined: Apr 11, 2007
Aug 01, 2007 03:46:00
try something like
to know where you program is trying to read the file from.
[ August 01, 2007: Message edited by: Gaurav Faujdar ]
subject: can't find correct classpath for the required properties file
Unable to load properties file in Java using eclipse
Reading usersnames/passwords from file for database access
difference b/w absolute path and relative paths
how to call property file ?
I want to use java properties from an interface
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014