getResourceAsStream will locate the files relative to the "root" of the classpath
initFile - File Location:
init file can also be packed as a part of war with a relative location.
Properties props = new Properties(); InputStream uin = this.getClass().getResourceAsStream(initFile); InputStreamReader isr = new InputStreamReader(uin); BufferedReader in = new BufferedReader(new InputStreamReader(uin)); props.load(uin);