Program 3

Program description:

This program deals with Java reflections. You will read a .jar file (name of the .jar file will be passed as an argument to your driver program) and reverse engineer the content of the .jar file. A .jar file is a jar of one or more .class files (each .class can represent an interface or a class).

What is a reverse enginnering of a .jar file? It means that for each .class file you need to emit the necessary information such as:

...

You may use java.util.jar (JarFile, ...) and other packages to extract the .jar elements and the use the Java's reflection classes/interfaces to reverse engineer the elements.

To see the table of contents of a .jar file:


	jar t < file.jar

Grading Policy

Your program will be graded based on:

Input .jar File

Input .jar File will be provided on Tuesday, October 21, 2003. You may test your program with other .jar files.