I am using the method getclass().getResourceAsStream() to get my Properties file. Actually at first I was trying to get the file through file reader, and it was working good