Oliver Brinzing wrote:
Hi Robert,
.xsd is in the same .jar file as your extension? If yes,
yes it's inside the extension ...
getClass().getResource( "/path/in/my/jar/something.xsd" ) should work.
i just found:
InputStream is =
this.getClass().getClassLoader().getResourceAsStream(file);
anyway, i still do not understand why ClassLoader.getSystemResource(file);
does not work inside an extension ...
To quote
<http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html#getSystemResource(java.lang.String)>:
"This method locates the resource through the system class loader
[...]." And the system class loader does not know anything about your
extension jar, as that is loaded with another class loader.
-Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]