|
I have a jar. This jar has code in it similar to
this:
========================================================
JarFile studyJar = new JarFile(studyID+"."+studyVersion+".jar"); Enumeration enum = studyJar.entries(); ========================================================
studyJar is a JarFile representation of the jar
this code is executing in. I get studyID and studyVersion from a text file
located inside the jar.
I need to add the functionality where the jar can
be renamed by end users.
Is it possible for code inside of a jar to get the
name of the jar it resides in? I need its name to instantiate the JarFile
above.
Thanks,
-Jason
************************************************************************************ Jason R. Kretzer Software Engineer Opinion One Email: jason@opone.com Phone: (513) 361-2771 Website: http://alia.iwarp.com "Make visible what, without you, might perhaps never have been seen." --Robert Bresson ************************************************************************************ |