Wednesday, April 29, 2020

Conversion process- [JAVA .class file into back to SOURCE code]

Step 1: Download JAD tool from https://bit.ly/2XuRzT5
Step 2: Extract the zip file and get jad.exe.
Java Decompiler
Step 3: Create a .java file (DecompilerDemo.java) in the same folder in which you have extracted the zip file.
Step 4: Compile and run the .java file. It will generate a .class file in the respective folder.
Java Decompiler2
Step 5: Now move the .class file and jad application to another folder.
Java Decompiler3
Step 6: Type the command: jad DecompilerDemo
Java Decompiler4
Above command generates a .jad file in the respective folder.
Java Decompiler5
Step 7: Type the command: jad ?s java DecompilerDemo
Java Decompiler6
It generates the .java file in the same folder.
Java Decompiler7
Open the DecompilerDemo.java we get the following code:


JAVA class Decompiler

Options
With javap command, many options are available. Some of them are:
  • -c: It prints disassembled code.
  • -p: It shows all classes and members.
  • -s: It prints internal type signatures.
  • -constants: It shows static final constants.

No comments:

Post a Comment

Python Challenges Program

Challenges program: program 1: #Input :ABAABBCA #Output: A4B3C1 str1="ABAABBCA" str2="" d={} for x in str1: d[x]=d...