Reading an XML in a differnt jar

Joined
Feb 1, 2011
Messages
1
Reaction score
0
This is an odd scenario, but i need to access an xml that is stored in a different jar file that the one that contains the java code that needs the xml.

Everywhere I look, i keep seeing code like this:getClass().getClassLoader().getResourceAsStream("/path/file.xml"); But that only works if you are pulling from the same jar file that the java came from. Anyone have any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,815
Latest member
treekmostly22

Latest Threads

Top