7

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.

Govind Gupta
  • 1,555
  • 4
  • 15
  • 24
  • If you are on a *nix machine you could write a shellscript using the `rename` utility, on windows it is probably also possible with batch. – redxef Jun 09 '16 at 13:16

2 Answers2

6

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.

Community
  • 1
  • 1
Hosseini
  • 547
  • 3
  • 15
2

jd-cmd

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

works fine for decompiling. I used it to convert whole jars into source code. Look up the command line options for more details, e.g. --outputDir for specifying a directory for the generated source code.

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142