java 反编译jar文件作为intellij中的项目使用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32481345/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 20:16:16  来源:igfitidea点击:

Decompile jar file to use it as a project in intellij

javaintellij-idea

提问by Venkata Ramireddy CH

I have a jar file but not source code. I had some issue with this code which is not working as expected. So I want to decompile it use it as a project in intellij. Could you please let me know how can I do that?

我有一个 jar 文件,但没有源代码。我对这段代码有一些问题,它没有按预期工作。所以我想反编译它用作intellij中的一个项目。你能告诉我我该怎么做吗?

回答by Jkike

You need a java decompiler, like jd-gui http://jd.benow.ca/

你需要一个java反编译器,比如jd-gui http://jd.benow.ca/

回答by Deepak Jangid

use jd-gui and copy the source code in intellij. also normally with decomiplation your code will have multiple localobject and you have to deal with it

使用 jd-gui 并复制 intellij 中的源代码。通常,通过反编译,您的代码将有多个本地对象,您必须处理它