searching a .class file-Please Help
Hi - I'm new to working in java, and I don't know exactly where this should be posted, I've spent the last week trying to figure this out. So I have the .class or .jar files of a program, what I want to be able to do is figure out which ones contain the static void main method, so that I know which files are runnable, in that same vain I also ant to be able to pull out the package name.
I've already tried to just do it by looking at the .java source files, but that didn't leave much room in terms of error checking. IE the programer accidently added a main method to a .java file and didn't recompile. or its incased in comments. or the source files aren't on the $CLASSPATH.
Please, any ideas, places to look, etc. would be very helpful.
Oh, I"ve been reading the specs for the VM, cause that seemed like a plossible way to go about searching the .class files, but I don't quite fully understand how to impliment searches of the information im looking for using the data in the VM specs.
Thanks again in advanced...
-Hux

