MysorePak Posted April 21, 2015 Author Report Posted April 21, 2015 this.class.getClassLoader().getResourceAsStream("lib/ABC.lic") ekkada lib/ABC.lic no stream ani null value throw chesthundhi em error vasthundhi?? if its file not found, check the path in debug mode or print the path once.
chandu1987 Posted April 21, 2015 Report Posted April 21, 2015 this.class.getClassLoader().getResourceAsStream("lib/ABC.lic") ekkada lib/ABC.lic no stream ani null value throw chesthundhi okk, can you try this and let me know this.class.getClassLoader().getResourceAsStream("/lib/ABC.lic")
afuser Posted April 21, 2015 Report Posted April 21, 2015 this.class.getClassLoader().getResourceAsStream("ABC.lic") even this part failed
chandu1987 Posted April 21, 2015 Report Posted April 21, 2015 if the above thing doesn't work, print the path using below code and check if your file location matches to that URL url = clazz.getResource(""); String classLocation = url.getFile();
Recommended Posts