jadclipse反编译时出现异常-Cannot run program "%JAVA_HOME%\bin\jad.exe" (转载)

好久没用jadclipse了,今天在eclipse3.3.0上装了一个。所用版本是jad1.5.8,net.sf.jadclipse_3.3.0.jar。起初按网上一些说明,用%JAVA_HOME%\bin\jad.exe配置Jadclipse->Path to decompiler选项,运行时出现异常,部分内容如下:

/*
DECOMPILATION REPORT

Decompiled from: E:\sidney\workspace\zxkf\WebContent\WEB-INF\classes/cache/Area.class
Total time: 0 ms
Jad reported messages/errors:
Exit status: 0
Caught exceptions:
java.io.IOException: Cannot run program "%JAVA_HOME%\bin\jad.exe" (in directory "E:\sidney\workspace\zxkf\WebContent\WEB-INF\classes\cache"): CreateProcess error=2, ϵͳÕҲ»µ½ָ¶
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)

经多方尝试,发现只要把Jadclipse->Path to decompiler选项改成,如E:\sidney\jdk1.5.0_04\bin\jad.exe的绝对路径,一切又正常了。

 

以上内容转载至百度空间:http://hi.baidu.com/leeyesong/item/2ef45fe0cc2c8a276dabb8f1

帮我解决了一个很久以来悬而未解的问题,遂记录下来

你可能感兴趣的:(java)