pTutorial

New way to learn Programming

How to view code of java class file

Java class file (.class) is the compiled version of java program (.java) it’s also known as byte code it can be executed by the JVM (java virtual machine). You cannot understand the byte code because its compiled form of java program so you need to decompile first then you read.

How to decompile the java class file

  1. First you have to download the java de-compiler (you may download from here jad tool ).
  2. Now set the path of this java de-compiler or paste it into the bin folder. C:\Program Files\Java\jdk1.8.0_05\bin
  3. Suppose we have First.class file in C:\java program folder.
  4. Open cmd and go to the class file location.
  5. Type jad First.class
  6. After that you can see the file First.jad in the same folder.
  7. Right click on that file and open with notepad.
How To View Code Of Java Class File

Decompile class


See Also


QUOTES OF THE DAY

Goal is tired by fire, brave men by adversity.

LIKE ON FACEBOOK

+1 ON GOOGLE

SHARE ON TWITTER