Jump to content

Recommended Posts

Posted

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. 

 

Posted

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")

Posted

this.class.getClassLoader().getResourceAsStream("ABC.lic")

 

 

even this part failed

Posted

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();

 

×
×
  • Create New...