简体   繁体   English

在eclipse中反编译类文件

[英]Decompile class file in eclipse

I have configured the JadClipse plugin in Eclipse Kepler. 我已经在Eclipse Kepler中配置了JadClipse插件。 I can decompile any class within a jar in eclipse. 我可以在Eclipse的jar中反编译任何类。 But how can I decompile a class, that is not in a jar, in eclipse? 但是,如何在eclipse中反编译不在jar中的类呢?

Just like in command prompt the jad -sjava HelloWorld.class command decompiles a standalone class(that is not within a jar file), how can I achieve this in eclipse? 就像命令提示符中的jad -sjava HelloWorld.class命令反编译一个独立的类(不在jar文件中)一样,如何在eclipse中实现呢?

EDIT 编辑

I added a standalone class file to my project build path using Add External Class Folder . 我使用“ Add External Class Folder将独立的类文件添加到项目构建路径。 Now if I hit F3, it is not decompiling. 现在,如果我按F3,则不会反编译。 Rather it is showing Resource not found . 而是显示Resource not found

Can you add that class file to you build path and try to open it. 您可以将该类文件添加到构建路径并尝试打开它吗? That should work. 那应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM