I have the following line of code:
URL schemaLocation = ClassLoader.getSystemResource("resources/Metrics.xsd");
I have the Metrics.xsd in a JAR in the folder resources.
When I run my app in java it works fine. When I run my app from ANT null is returned.
Does anyone know why this could be happening? Does ant use a different classloader? If so how can I make this work when I run from java -jar OR start the app through ANT?
Thanks,