Forums Register Login

How to Find path of a file inside a jar file????

+Pie Number of slices to send: Send
Hi,
I have a jar file which contains an xml file. How to find out the path of the xml file since one of my class (which is also inside the jar) will read the content of the jar. And the jar file can be put in any directory and will be included to the client application either through the IDE or -classpath option. Pls guys!! help me to find out this, this is an urgent requirement....... Thanks in advance..
+Pie Number of slices to send: Send
Class.getResource() or Class.getResourceAsStream() will do the trick.
We're all out of roofs. But we still have tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1208 times.
Similar Threads
javax.comm
XML Schema in a jar file?
Executable jar file problem
Jar file problems
Project distribution jar file issue.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:33:31.