java JADClipse 不适用于 Eclipse 3.6

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6108607/
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-10-30 14:21:43  来源:igfitidea点击:

JADClipse not working with Eclipse 3.6

javadecompilingeclipse-3.6jadjadclipse

提问by RonK

Does Jadclipsework on Eclipse 3.6?

难道Jadclipse工作的Eclipse 3.6

I have installed Jadclipse 3.3.0on my Eclipse 3.6by copying the jar into the pluginsdirectory and restated eclipse.

我已经通过将 jar 复制到plugins目录并重新声明 eclipse 来安装Jadclipse 3.3.0Eclipse 3.6的。

Now I have the jadclipsemenu under Windows->Preferencesbut when trying to de-compile any class it simply does not de-compile. I get the usual eclipse screen saying the source is unavailable. There are no errors in the Error Log.

现在我在Windows->Preferences下有jadclipse菜单,但是当尝试反编译任何类时,它根本不会反编译。我得到通常的 eclipse 屏幕,说源不可用。错误日志中没有错误。

Any idea?

任何的想法?

回答by RonK

I eventually found the answer here.

我最终在这里找到了答案。

Running eclipse with -cleanswitch and setting the file association between *.classand the jadclipseplug-in solved the problem.

运行与Eclipse-clean开关和设置的文件关联*.classjadclipse插件解决了这个问题。

回答by Subba Reddy Evuri

Set the JAD path correctly in Preferances>Java>Jad. Ex: D:\Jad\jad.exe

在 Preferences>Java>Jad 中正确设置 JAD 路径。例如:D:\Jad\jad.exe

If still not working then,

如果还是不行的话,

Go to File extensions in Preferences. Select JadClipse as default editor for .class and .class with out source.

转到首选项中的文件扩展名。选择 JadClipse 作为 .class 和 .class with out source 的默认编辑器。

回答by arjun kumar mehta

The main reason is that you eclipse have default class viewerconfigured for class file which you have to change to your new class decompiler.

主要原因是您 eclipse为类文件配置了默认类查看器,您必须将其更改为新的类反编译器。

go to preference > editor > choose "class without source" and select your tool and mark as default. will work for you :)

转到首选项> 编辑器> 选择“无源类”并选择您的工具并标记为默认值。会为你工作:)

回答by user3619878

I had the same problem. Just check if the JadEclipse Class File Viewer is the default viewer for "Class without source" in Preferences -> General -> Editors -> File Associations.

我有同样的问题。只需在首选项 -> 常规 -> 编辑器 -> 文件关联中检查 JadEclipse 类文件查看器是否是“无源类”的默认查看器。

回答by kranti

Download jad.exe and then in eclipse there are 2 places to configure.

下载jad.exe,然后在eclipse中有2个地方需要配置。

  1. Window->Preferences->java->JadClipse give the path of jad.exe in Path to decompiler like C:\Users\Documents\xxx\jad.exe. then Apply
  2. Window->Preferences->General->Editors->File Associations. Click on *.class and in below dialog box there should be JadClipse Class File Viewer(default). If not click on Add...
    add JadClipse as default file viewer.
  3. Do the same for *.class without source as well.
  1. Window->Preferences->java->JadClipse 在 Path to decompiler 中给出 jad.exe 的路径,如 C:\Users\Documents\xxx\jad.exe。然后申请
  2. 窗口->首选项->常规->编辑器->文件关联。单击 *.class,在下面的对话框中应该有 JadClipse Class File Viewer(默认)。如果没有点击 Add...
    添加 JadClipse 作为默认文件查看器。
  3. 对没有源的 *.class 也做同样的事情。

回答by Achu22

I had the issues on mac with STS and was able to fix it with below process.

我在使用 STS 的 mac 上遇到了问题,并且能够通过以下过程修复它。

  1. Download JADClipse plugin jar and copy it to plugins folder of Eclipse.

  2. Download JAD decompiler and unzip it into a folder on your mac. Set java decompiler to JAD. Eclipse->Preferences->Java->Decompiler->Select JAD Eclipse->Preferences->Java->JADClipse->Path to decompiler (/Users/test/Desktop/JavaDecompiler/jad158g.mac.intel/jad)

  1. 下载 JADClipse 插件 jar 并将其复制到 Eclipse 的 plugins 文件夹中。

  2. 下载 JAD 反编译器并将其解压缩到 Mac 上的文件夹中。将 java 反编译器设置为 JAD。Eclipse->Preferences->Java->Decompiler->选择JAD Eclipse->Preferences->Java->JADClipse->反编译器路径(/Users/test/Desktop/JavaDecompiler/jad158g.mac.intel/jad)

Select file associations for .class and .class with out source to default JADClipse class viewer.

为 .class 和 .class 选择文件关联,不带源到默认 JADClipse 类查看器。

Restart Eclipse and it should work.

重新启动 Eclipse,它应该可以工作。

References -> http://hemantasapkota.github.io/posts/setting-up-jadclipse-and-jad-java-decompiler-in-eclipse/

参考-> http://hemantasapkota.github.io/posts/setting-up-jadclipse-and-jad-java-decompiler-in-eclipse/

https://eedannak.wordpress.com/2014/11/02/how-to-decompile-class-files-in-java-with-eclipse-ide/

https://eedannak.wordpress.com/2014/11/02/how-to-decompile-class-files-in-java-with-eclipse-ide/