How to convert all .class files into .java file from a .jar file

Govind Gupta picture Govind Gupta · Jun 9, 2016 · Viewed 22.5k times · Source

I have a .jar file and When I extract it, It gives me all the .class files present in that jar file.

I have decompiled all the .class files using http://jd.benow.ca/ tool but i want that all the .class files should save into .java files.

Right now i can see only the code but extension is not converting to .java.

Anybody Please help me in this.

Answer

Hosseini picture Hosseini · Jun 9, 2016

you can use javadecompilers and its works perfectly

enter image description here

and in the next step you decompile with Upload and Decompileand this page be showing

enter image description here

and thats is just copy the package folder from the jarname.zip and paste it in you project.

i tested its work for me .

enter image description here

you can see this answer for more.