ClassLoader.class.getResourceAsStream("/path/to/your/xml")
and make sure that your compile script is copying the xml file to where in your CLASSPATH.
Read full article from java - Getting the inputstream from a classpath resource (XML file) - Stack Overflow
No comments:
Post a Comment