Eclipse: How Do I decompile jar and load it as a project?

前端 未结 2 869
野的像风
野的像风 2021-01-12 04:27

how can I decompile a jar and load it as a project in my Eclipse so I can modify the code ?

fyi I have googled jar decompiler. Looking for a guide or any insight on

2条回答
  •  清酒与你
    2021-01-12 05:17

    I've used the Cavaj decompiler and it worked pretty well for me. You can just open up the jar file with any unzipping program like 7zip, .jar files are really just zip files. Then all you need to do is feed the .class files to Cavaj. The .class files are organized by package, so com.foo.Bar will be com/foo/Bar.class inside the .jar

    Like Danny said, legality might be questionable depending on the situation. I've only ever used it to look at the source for an older version of an application I wrote but no longer had the source for.

提交回复
热议问题