• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jar files

 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to convert jar into class files and then to Java files

Thanks,
Angela
 
Fred Abbot
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A jar file is similar to a zip file where it holds other files so what you have to do is extract the .classs files from the jar
then decompile them into .java files
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which command or tool I should use to extract .class files from jar file.
Thanks
Angela
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WinZip or any other un-zipping program works fine...

You can also use the jar command, but it is much more difficult...

-Nathan
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to all.
I extracted class files from jar file. Now I have one decompiler tool called jad. But I don't trust enough in this tool. do you know best way to decompile class files into java files.
Thanks
angela
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic