import java.io.IOException; import java.util.Properties; public class Test { public void run() { Properties props=new Properties(); try { props.load( this.getClass().getClassLoader().getResourceAsStream("build.properties")); } catch (IOException e) { e.printStackTrace(); } } public static void main(String[] args) { new Test().run(); } }