This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic