I have a jar. This jar has code in it similar to this:
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, [ March 28, 2002: Message edited by: Jason Kretzer ]
Jason R. Kretzer<br />Software Engineer<br />System Administrator<br /><a href="http://alia.iwarp.com" target="_blank" rel="nofollow">http://alia.iwarp.com</a>
Jason, I haven't tried it but if you have the JarFile object, the getName() method that is inherited from java.util.ZipFile might help.
Ivor Horton<br />Author of the Beginning Java Series including the new <a href="http://www.amazon.com/exec/obidos/ASIN/1861005695/ref=ase_electricporkchop" target="_blank" rel="nofollow">Beginning Java 2 SDK 1.4 Edition</a>