Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I decompile a .jar file? [duplicate]

Possible Duplicates:
Where can I find a Java decompiler?
How to decompile a whole Jar file?

I have a .jar file. Its a single file, but I want to "decompile" it to get at the original java code (or at whatever would be closest to the Java code - something I could understand, and edit). I believe my file is (specifically) a java applet, but its saved as an executable jar file (.jar).

How would I do such a thing?

like image 832
Alper Avatar asked Aug 06 '11 02:08

Alper


1 Answers

Take a look at Java Decompiler.

It allows you to decompile jar files with the JD-GUI and browse the class files as source.

Here is another stackoverflow question.

like image 82
Kal Avatar answered Sep 21 '22 14:09

Kal