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

I have a .jar file, and when I extract it, it gives me all the .class files present in this jar file.

I decompiled all .class files using http://jd.benow.ca/ , but I want all .class files to be saved in .java files.

Now I see only the code, but the extension is not converted to .java.

Someone please help me with this.

+5
source share
2 answers

you can use javadecompilers and it works great

enter image description here

and in the next step, you decompile with Upload and Decompile , and this page will display

enter image description here

and this is just the copy folder package from jarname.zip and paste in your project.

I checked his work for me.

enter image description here

You can see this answer for more details.

+4
source

Jd-cmd

https://github.com/kwart/jd-cmd

works great for decompilation. I used it to convert whole cans to source code. See command line options for more details, for example. --outputDir to specify the directory for the generated source code.

+2
source

All Articles