I am using the following code to read a properties file:
Properties pro = new Properties(); InputStream is = Thread.currentThread().getContextClassLoader().
I had this problem with a third-party program and it turned out that I needed to include . in the classpath so that the program could read a local properties file in the current working directory.
.