Webroot contains folder directory src,WEB-INF, config
My prop file "abc.txt" directory is under config folder
Manifest:
ClassPath: config/abc.txt
Java code:
Properies prop = new Properties();
InputStreamReader in = null;
try {
in = new InputStreamReader(Thread.currentThread()
.getContextClassLoader()
.getResourceAsStream ("abc.properties")));
props.load(in);
} catch (FileNotFoundException e) {
System.out.println("FileNotFoundException: " + e.getMessage()):
}
I keep on getting FileNotFoundException
Originally posted by Nathaniel Stoddard:
Um ... the functions I'm talking about in java.lang.ClassLoader don't throw FileNotFoundExceptions. So, are you really using the right ones? Why don't you tell us the pathname of the property file that's in your WAR, and the code snippet you're using to open it.