[tut] how to decompile jars

Newbie Spellweaver
Joined
Mar 24, 2009
Messages
65
Reaction score
0
Cavaj:
winrar:

Ok lets start..

First of all open your .jar file with winrar and take out the class file you want to decompile.

When you normally open a .class file they'll have things like @#$%@||||

But im going to show you how to simply bypass this.
Firstly we are going to download the program called Cavaj, i have inserted a download link above.

Once opened, at the top left of it, you will see "File".
Click that, then goto "Open".
Then you will see a window like the one shown below.

Ok i opened "Applet_Sub1.class" and i am now able to see all the text decrypted in that CLASS file.

If you want to change something, it now gets a little tiny bit more difficult.
Change what you want in that window, then copy ALL the text shown. (Just do CTRL+A)..
Once it's all selected, you must now paste it into a new Notepad file.
Save the Notepad file as Applet.java Or whatever your using, to the DESKTOP!
(Dont overwrite the old one)

Ok now we have that done, we are going to compile it to turn it into a CLASS file.
So simply goto "C:\Program Files\Java\jdk1.6.0_11\bin" (Thats where mine is)
and in there will be a Application called JAVAC.
We are going to use this to compile, its really easy to do.

Once we are ready to compile, DRAG the Applet_Sub1.java into the directory where your JAVAC is and goto CMD. (I recommend you actually drag ALL files to your client files there, so you can compile without errors....)

Ok then goto CMD and LOCATE to the Place where javac is.. "C:\Program Files\Java\jdk1.6.0_11\bin"
If you dont know how to use CMD then Google it..

Once you have located it, do JAVAC Applet_Sub1.java or whatever yours is called, it will then start compiling and hopefully without errors....

Once compiled, you will see the file Applet_Sub1.CLASS somewhere in that directory.
Then copy and replace it with the other one in the original client files..
 
Cavaj:
winrar:

Ok lets start..

First of all open your .jar file with winrar and take out the class file you want to decompile.

When you normally open a .class file they'll have things like @#$%@||||

But im going to show you how to simply bypass this.
Firstly we are going to download the program called Cavaj, i have inserted a download link above.

Once opened, at the top left of it, you will see "File".
Click that, then goto "Open".
Then you will see a window like the one shown below.

Ok i opened "Applet_Sub1.class" and i am now able to see all the text decrypted in that CLASS file.

If you want to change something, it now gets a little tiny bit more difficult.
Change what you want in that window, then copy ALL the text shown. (Just do CTRL+A)..
Once it's all selected, you must now paste it into a new Notepad file.
Save the Notepad file as Applet.java Or whatever your using, to the DESKTOP!
(Dont overwrite the old one)

Ok now we have that done, we are going to compile it to turn it into a CLASS file.
So simply goto "C:\Program Files\Java\jdk1.6.0_11\bin" (Thats where mine is)
and in there will be a Application called JAVAC.
We are going to use this to compile, its really easy to do.

Once we are ready to compile, DRAG the Applet_Sub1.java into the directory where your JAVAC is and goto CMD. (I recommend you actually drag ALL files to your client files there, so you can compile without errors....)

Ok then goto CMD and LOCATE to the Place where javac is.. "C:\Program Files\Java\jdk1.6.0_11\bin"
If you dont know how to use CMD then Google it..

Once you have located it, do JAVAC Applet_Sub1.java or whatever yours is called, it will then start compiling and hopefully without errors....

Once compiled, you will see the file Applet_Sub1.CLASS somewhere in that directory.
Then copy and replace it with the other one in the original client files..


Craps its very old
i got one touch decompile
 
Back