eclipse Jadclipse插件安装问题

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

Jadclipse plugin installation issues

eclipsejadclipse

提问by swati

I have installed the JAD plugin for eclipse. I just downloaded the jar and put it in eclipse plugin folder and then downloaded the executable files from here.

我已经为 Eclipse 安装了 JAD 插件。我刚刚下载了 jar 并将其放在 eclipse 插件文件夹中,然后从这里下载了可执行文件。

After extracting the zip file, I see now jad.exe and double clicked it. I am not sure if any thing wrong in the installation step, but in eclipse I see jadeclispe in eclipse editor.

解压 zip 文件后,我现在看到 jad.exe 并双击它。我不确定安装步骤中是否有任何问题,但是在 eclipse 中我在 eclipse 编辑器中看到了 jadeclispe。

When I open a class file, I see the following error

当我打开一个类文件时,我看到以下错误

java.io.IOException: Cannot run program "jad" (in directory "C:\Users\sgudla
.net.sf.jadclipse41954004841"): 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.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(WorkbenchPage.java:2760)
    at org.eclipse.ui.internal.WorkbenchPage.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.open(CommonNavigatorManager.java:185)
    at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
    at org.eclipse.jface.viewers.StructuredViewer.run(StructuredViewer.java:845)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil.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.handleOpen(StructuredViewer.java:1235)
    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:264)
    at org.eclipse.jface.util.OpenStrategy.access(OpenStrategy.java:258)
    at org.eclipse.jface.util.OpenStrategy.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(Workbench.java:2427)
    at org.eclipse.ui.internal.Workbench.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

Can some one tell what is missing here to make it work?

有人能说出这里缺少什么以使其工作吗?

回答by ceiroa

How to install JAD for use with Eclipse (in Windows)

如何安装 JAD 以与 Eclipse 一起使用(在 Windows 中)

  1. Download the executable (.exe) from here: http://www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/JAD.shtml

    Save the file (the README too, it has good instructions) somewhere in the file system, for example in C:\Program Files\JadDecompiler\

  2. Download the JAD Eclipse plugin (.jar) from http://sourceforge.net/projects/jadclipse/

  3. Copy the downloaded jar file to the plugins folder of Eclipse, for example C:\dev\eclipse\plugins

  4. Restart Eclipse (for the plugin to take effect)

  5. In Eclipse, Click Window –> Preferences –> Java –> Jadclipseand enter for example:

  1. 从这里下载可执行文件 (.exe):http: //www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/JAD.shtml

    将文件(README 也是,它有很好的说明)保存在文件系统中的某个位置,例如在 C:\Program Files\JadDecompiler\

  2. http://sourceforge.net/projects/jadclipse/下载 JAD Eclipse 插件 (.jar)

  3. 将下载的jar文件复制到Eclipse的plugins文件夹中,例如C:\dev\eclipse\plugins

  4. 重启Eclipse(使插件生效)

  5. 在 Eclipse 中,点击Window –> Preferences –> Java –> Jadclipse并输入例如:

JadClipse settings

JadClipse 设置

Done.

完毕。

Now you'll be able to see any source that is attached but in compressed (jar) format.

现在,您将能够看到任何已附加但为压缩 (jar) 格式的源。

回答by Shashank Wattamwar

Hey just to add to ceiroa's answer steps. Once you done with all steps, start eclipse with -clean command otherwise jad will not work as expected. I faced that issue, so wanted to add. eclipse -clean

嘿只是添加到 ceiroa 的回答步骤。完成所有步骤后,使用 -clean 命令启动 eclipse,否则 jad 将无法按预期工作。我遇到了这个问题,所以想补充。日食-清洁

回答by Sunil Wagh

Jaceclipse plugin error for 32 bit eclipse -

32 位 Eclipse 的 Jaceclipse 插件错误 -

Error: F:\eclipse\configuration\org.eclipse.osgi\431\0.cp\win32\x86\jd-eclipse.dll

错误:F:\eclipse\configuration\org.eclipse.osgi\431\0.cp\win32\x86\jd-eclipse.dll

Solution: Install pack Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)

解决方案:安装包 Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)

It will solve your problem ..

它会解决你的问题..

回答by Rohit Kumar

I wanna add some more step in ceiroa's answer steps. Once you completed with all steps.if you are using spring tool suite (STS) instead of eclipse.

我想在 ceiroa 的回答步骤中添加更多步骤。完成所有步骤后。如果您使用的是 spring 工具套件 (STS) 而不是 eclipse。

Just change in spring tool suite file.

只需更改 spring 工具套件文件即可。

-clean
-startup
plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1100.v20190907-0426
-product
org.springframework.boot.ide.branding.sts4
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM

回答by Paul Marrington

Either the plugin has a form where you can enter the address of the executable or you are going to have to put it on the path. Remember to restart eclipse if you choose to change the path in the registry.

插件有一个表单,您可以在其中输入可执行文件的地址,或者您必须将其放在路径上。如果您选择更改注册表中的路径,请记住重新启动 eclipse。

I have used Jad a number of times over the years. I find the easiest way is to use it is to unzip the jar and use jad from the command line to decompile everything. I then rename the extensions from jad to java and go from there. That way I can rename variable and pull code as I need. I have even gone so far as to create a project so I can link references between files. I find this faster and more useful than the plugins - peculiar for someone who has been an IDE fan and would normally prefer that approach to command line.

这些年来,我多次使用过 Jad。我发现最简单的方法是使用它解压缩 jar 并从命令行使用 jad 来反编译所有内容。然后我将扩展名从 jad 重命名为 java 并从那里开始。这样我就可以根据需要重命名变量并提取代码。我什至创建了一个项目,以便我可以链接文件之间的引用。我发现这比插件更快,更有用 - 对于一直是 IDE 粉丝并且通常更喜欢命令行方法的人来说是特别的。