File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Decompling class file to java file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Decompling class file to java file" Watch "Decompling class file to java file" New topic

Decompling class file to java file

Bikash Paul
Ranch Hand

Joined: Dec 04, 2001
Posts: 342
Hi all friends,
Is there any way for decompling .class to .java file.plz help me it is very urgent.Any help will be highly appreciated.
Bikash :roll:
Kaustubh Patil
Ranch Hand

Joined: Aug 13, 2001
Posts: 164
There are lot of utilities that decompile a .class file. But almost all of them use a basic utility called "jad.exe"
Give the java file name as argument to the program on the command prompt.
When you do that jad generates a .jad file which is the decompiled file.
You can then view it as a txt file or rename it to .java

Kaustubh. Mumbai, India.
Mahesh Mamani
Ranch Hand

Joined: Jun 25, 2001
Posts: 110
U can download the jad.exe file from the URL


It is sorta covered in the JavaRanch Style Guide.
subject: Decompling class file to java file
It's not a secret anymore!