JarFile attributes?

K

Knute Johnson

Does anybody know if you can get the classpath out of the manifest file
from an executable jar by using the attributes?

Thanks,
 
R

Roedy Green

Does anybody know if you can get the classpath out of the manifest file
from an executable jar by using the attributes?

JarFile.getManifest().getMainAttributes will get you a Map of
attributes.
Try dumping it out to see what is in there.
 
K

Knute Johnson

Roedy said:
JarFile.getManifest().getMainAttributes will get you a Map of
attributes.
Try dumping it out to see what is in there.
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Thanks Roedy, that's exactly what I was looking for. It just wasn't
obvious.
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top