2012-07-10 160 views
4

我已經安裝了用於eclipse的JAD插件。我剛剛下載了jar並把它放在eclipse插件文件夾中,然後從here下載了可執行文件。Jadclipse插件安裝問題

提取zip文件後,我現在看到jad.exe並雙擊它。我不確定安裝步驟中是否有任何錯誤,但在eclipse中,我在eclipse編輯器中看到了jadeclispe。

當我打開一個類文件,我看到下面的錯誤

 
java.io.IOException: Cannot run program "jad" (in directory "C:\Users\sgudla 
.net.sf.jadclipse\1341954004841"): 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 net.sf.jadclipse.JadclipseSourceMapper.findSource(JadclipseSourceMapper.java:150) 
    at net.sf.jadclipse.JadclipseSourceMapper.findSource(JadclipseSourceMapper.java:83) 
    at net.sf.jadclipse.JadclipseClassFileEditor.doOpenBuffer(JadclipseClassFileEditor.java:87) 
    at net.sf.jadclipse.JadclipseClassFileEditor.doSetInput(JadclipseClassFileEditor.java:45) 
    at net.sf.jadclipse.JadclipseActionBarContributor.setActiveEditor(JadclipseActionBarContributor.java:87) 
    at org.eclipse.ui.internal.EditorActionBars.partChanged(EditorActionBars.java:343) 
    at org.eclipse.ui.internal.WorkbenchPage$3.run(WorkbenchPage.java:635) 
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) 
    at org.eclipse.core.runtime.Platform.run(Platform.java:888) 
    at org.eclipse.ui.internal.WorkbenchPage.activatePart(WorkbenchPage.java:624) 
    at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3533) 
    at org.eclipse.ui.internal.WorkbenchPage.internalActivate(WorkbenchPage.java:617) 
    at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:589) 
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2875) 
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768) 
    at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760) 
    at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711) 
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) 
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707) 
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691) 
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2682) 
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:378) 
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:178) 
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:229) 
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:208) 
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274) 
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250) 
    at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:49) 
    at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221) 
    at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185) 
    at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48) 
    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:845) 
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) 
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) 
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) 
    at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:843) 
    at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1131) 
    at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462) 
    at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1235) 
    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:264) 
    at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:258) 
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:298) 
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) 
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066) 
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657) 
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629) 
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593) 
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427) 
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670) 
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663) 
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) 
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
    at java.lang.reflect.Method.invoke(Unknown Source) 
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619) 
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574) 
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407) 
    at org.eclipse.equinox.launcher.Main.main(Main.java:1383) 
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified 
    at java.lang.ProcessImpl.create(Native Method) 
    at java.lang.ProcessImpl.(Unknown Source) 
    at java.lang.ProcessImpl.start(Unknown Source) 
    ... 71 more 

有一個人能告訴什麼在這裏失蹤,使工作?

+0

如何接受它我不sure..How我們可以接受答案 – swati 2012-07-10 22:07:41

回答

17

如何安裝JAD使用與Eclipse(在Windows)

  1. 下載的可執行文件(.exe)從這裏:http://www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/JAD.shtml

    保存文件(自述過,它具有良好的說明)的地方在文件系統中,例如C:\ Program Files文件\ JadDecompiler \

  2. 下載從http://sourceforge.net/projects/jadclipse/

  3. 的JAD Eclipse插件(的.jar)
  4. 複製下載的jar文件到Eclipse的插件文件夾,例如C:\ dev的\日食\插件

  5. 重啓Eclipse(該插件才能生效)

  6. 在Eclipse中,點擊窗口 - >首選項 - >爪哇 - > Jadclipse和例如輸入:

JadClipse settings

完成。

現在,您將能夠看到附加的壓縮(jar)格式的任何源代碼。

0

插件有一個表單,您可以輸入可執行文件的地址,或者您將不得不將其放在路徑中。請記住,如果您選擇更改註冊表中的路徑,請重新啓動eclipse。

多年來,我已經使用了許多次Jad。我發現使用它最簡單的方法是解壓縮jar並使用命令行中的jad反編譯所有內容。然後,我將擴展名從jad重命名爲java,然後從那裏開始。這樣我可以根據需要重命名變量並提取代碼。我甚至已經創建了一個項目,以便我可以鏈接文件之間的引用。我發現這比插件更快,更實用 - 對於那些一直是IDE粉絲並且通常更喜歡這種命令行方式的人來說,這是特有的。

+0

感謝保羅..但是我記得我之前使用它一些如何當你點擊某些類文件在一些jar中它將反編譯並獲得java文件..不知道我的安裝步驟有什麼問題.. – swati 2012-07-10 22:13:03

+0

你檢查過了嗎對JAD的引用? – 2012-07-10 22:23:12

1

嘿,只是要添加到ceiroa的答案步驟。完成所有步驟後,使用-clean命令啓動eclipse,否則jad將無法按預期工作。我面臨這個問題,所以想補充。 蝕-clean

0

Jaceclipse插件錯誤用於32位蝕 -

錯誤:F:\蝕\配置\ org.eclipse.osgi \ 431 \ 0.cp \ WIN32 \ 86 \ JD-蝕。dll的

解決方案: 安裝包 微軟的Visual C++ 2008 SP1可再發行組件包(x86)

這將解決您的問題..

+1

歡迎來到SO!這也是一個很好的習慣,當離開答案時提供一些見解,解釋爲什麼OP的問題可能首先發生,除了修正 – mzmm56 2015-05-24 09:55:13