posted 20 years ago
Hi,
need to know whether a particluar class ex: Person is present in the ear file or not ?
Actually Person class is present in a jar file within the ear file.
I tried to use java.util.jar package which has a class called JarFile which gives me the list
like this
META-INF/
META-INF/MANIFEST.MF
lib/
lib/cglib-2.0-rc2.jar
META-INF/application.xml
META-INF/sun-j2ee-ri.xml
abc.jar
Actually the Person class is present in abc.jar. The problem is how do I come to know whether Person class exists in abc.jar..
Any suggestions ??( I have to do this programatically not through command prompt)
Regards
Atul