好久没用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的绝对路径,一切又正常了。