I am trying to read a xsd file kept in a jar using java code kept inside the same jar. I am using the following code.
URL tmpurl = ClassLoader.getSystemResou
Hava you tried?
getClass().getClassLoader().getResource()
Also your classpath in manifest file in jar does matter.
classpath
Please, take a look at accepted answers in here:
Class.getResource and ClassLoader.getSystemResource: is there a reason to prefer one to another?
Loading files with ClassLoader