private static void getInputStreamFromResources() { InputStream is = App.class.getClassLoader() .getResourceAsStream("myfile/TestFile.properties"); System.out.println(is); }