5

我正在使用 Eclipse Helios 版本并将现有项目导入 IDE。

这个项目由一些 Jar 文件形式的代码组成

所以我已经安装了 Jad Eclipse 插件。

现在我的问题来自 IDE 每当我单击 jar 文件中的类(Ctrl + 鼠标)而不是 java 文件时,我都会得到这个

/*jadclipse*/

/*
    DECOMPILATION REPORT

    Decompiled from: C:\Documents and Settings\Sai\Desktop\work\kiuybon-1.1.jar
    Total time: 0 ms
    Jad reported messages/errors:
    Exit status: 0
    Caught exceptions:
java.io.IOException: Cannot run program "jad" (in directory "C:\Documents and Settings\Sai\.net.sf.jadclipse\1321168101468"): CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at net.sf.jadclipse.JadDecompiler.decompile(JadDecompiler.java:160)
    at net.sf.jadclipse.JadDecompiler.decompileFromArchive(JadDecompiler.java:217)
    at 
4

5 回答 5

4

Preference --> Java --> Jadclipse

将反编译器的路径设置为 jad.exe 的位置,并将临时文件目录指向类似的位置c:\temp(确保创建此目录)

于 2012-11-06T16:39:39.053 回答
0

您可以制作“C:\Documents and Settings\Sai.net.sf.jadclipse\1321168101468”目录来解决这个问题。

于 2012-04-24T02:09:45.860 回答
0

甚至我也面临同样的问题。您可以使用下面提到的替代反编译器。它在日食中完美运行

http://java.decompiler.free.fr/?q=jdeclipse

于 2012-04-29T10:28:30.820 回答
0

我遇到了同样的错误:jadclipse

 DECOMPILATION REPORT
 Decompiled from: D:\nnn\nnnn\lib\nnn3.1.1.jar
 Total time: 0 ms
 Jad reported messages/errors:
 Exit status: 0
 Caught exceptions:
java.io.IOException: Cannot run program "c:\jad" (in directory "C:\jad\1490924748657"): 
         CreateProcess error=5, Access is denied

为了解决它,我做了以下步骤:

  1. 将我的 Windows 配置文件添加为 jad.exe 的所有者。我已经是我机器上的管理员,但只这样做并不能解决问题。

    jad.exe > 右键单击​​ > 属性 > 安全 > 高级 > 所有者选项卡 > 将所有者更改为 > 我的 Windows 配置文件

  2. 重启日食。再次尝试调试,问题解决。

于 2017-03-31T02:48:00.587 回答
0
  1. 从http://varaneckas.com/jad/为您的操作系统下载带有 jad.exe 的存档
  2. 在特定文件夹中提取
  3. 转到 Window > Preferences > Java > JadClipse 并使用您提取存档的路径填充要反编译的路径
  4. 重新启动你的日食。

例子

于 2016-03-31T08:01:03.010 回答