Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to scan .class files in java

Status
Not open for further replies.

goosecool

Junior Member level 3
Junior Member level 3
Joined
Jul 29, 2005
Messages
28
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,283
Activity points
1,484
Hi,
I have a .jar file which when "unjar'ed" gave me a bunch of class files. How can I find which of those class files had a main method?

Thanks.
 

When you extract the JAR file, you get to see the "META-INF" folder inside which you have the manifest file. Inside the manifest file, there is a 'Main-class' property which tells you the entry point ( the class that has the main method). It might look something like this...

Manifest-Version: 1.0
Main-Class: archsoft.testcases.VideoPlayer

hope this helps!

Good day
 

Ji

Use java decompiler called jad

then use

jad -sjava *.class


tnx
 

    goosecool

    Points: 2
    Helpful Answer Positive Rating
yup ... java decompiler helped .. thanks
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top