Java 有没有办法让 jadclipse 与 Eclipse 3.4 一起工作?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/122110/
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
Is there a way to get jadclipse working with Eclipse 3.4?
提问by Alex Argo
I'm a big fan of the Jadclipse plugin and I'd really like to upgrade to Eclipse 3.4 but the plugin currently does not work. Are there any other programs out there that let you use jad to view source of code you navigate to from Eclipse? (Very useful when delving into ambiguous code in stack traces).
我是 Jadclipse 插件的忠实粉丝,我真的很想升级到 Eclipse 3.4,但该插件目前不起作用。是否还有其他程序可以让您使用 jad 查看从 Eclipse 导航到的代码源?(在深入研究堆栈跟踪中的歧义代码时非常有用)。
采纳答案by Bill Michell
I'm successfully using JadClipse with Eclipse 3.4
我在 Eclipse 3.4 中成功地使用了 JadClipse
Eclipse 3.4.0.I20080617-2000
JadClipse 3.3.0
Eclipse 3.4.0.I20080617-2000
JadClipse 3.3.0
It just works!
它只是有效!
EDIT: Actually, see OlegSOM's answerbelow for the additional steps that you might need to remember to take, if like me you forget to read documentation sometimes!
编辑:实际上,请参阅下面OlegSOM 的回答,了解您可能需要记住采取的其他步骤,如果像我一样有时忘记阅读文档!
回答by Bill Michell
update your eclipse 3.4 for jadeclipse from help-> software updates http://webobjects.mdimension.com/jadclipse/3.3restart the eclipse. set the jadeclipse properties. it doesn't just works.. this is the solution.
从帮助更新您的 eclipse 3.4 for jadeclipse-> 软件更新 http://webobjects.mdimension.com/jadclipse/3.3重新启动 eclipse。设置jadeclipse 属性。它不仅有效..这就是解决方案。
回答by Bill Michell
Read attentively the documentation ... :
仔细阅读文档...:
The JadClipse plug-in is not activated when I start Eclipse. You'll need to launch Eclipse with the -clean flag to allow the environment to detect the plug-in. Subsequent launching of Eclipse won't require the -clean flag. eclipse -clean
The Eclipse Class File Viewer instead of the JadClipse Class File Viewer is opened. Go to Window > Preferences... > General > Editors > File Associationsand make sure that the JadClipse Class File Viewer has the DEFAULT file association for *.class files. ( - press Default button !!!)
当我启动 Eclipse 时,JadClipse 插件没有被激活。您需要使用 -clean 标志启动 Eclipse,以允许环境检测插件。Eclipse 的后续启动不需要 -clean 标志。 日食-清洁
打开 Eclipse 类文件查看器而不是 JadClipse 类文件查看器。转到Window > Preferences... > General > Editors > File Associations并确保 JadClipse Class File Viewer 具有 *.class 文件的 DEFAULT 文件关联。( - 按默认按钮!!!)
It really helps :)))
它真的有帮助:)))
回答by Bill Michell
I was just able to successfully install jadclipse with Ganymede. In order to do this I: 1) Installed via the help-> software updates http://webobjects.mdimension.com/jadclipse/3.3
我刚刚能够使用 Ganymede 成功安装 jadclipse。为了做到这一点,我:1)通过帮助安装->软件更新http://webobjects.mdimension.com/jadclipse/3.3
2) Put the Jad executable into a directory that is in the execution path of your operating system. Alternatively, you can configure the path to the Jad executable under Window > Preferences... > Java > JadClipse > Path to Decompiler. (Set the full path, e.g. C:\Program Files\Jad\jad.exe)
2) 将 Jad 可执行文件放入操作系统执行路径中的目录中。或者,您可以在 Window > Preferences... > Java > JadClipse > Path to Decompiler 下配置 Jad 可执行文件的路径。(设置完整路径,例如C:\Program Files\Jad\jad.exe)
3)Go to Window > Preferences... > General > Editors > File Associations and make sure that the JadClipse Class File Viewer has the default file association for *.class files.
3)转到窗口>首选项...>常规>编辑器>文件关联并确保JadClipse类文件查看器具有*.class文件的默认文件关联。
4) Restart Eclipse (eclipse -clean).
4) 重启 Eclipse (eclipse -clean)。
It is now working perfectly for me!
它现在对我来说完美无缺!
回答by Bill Michell
what worked for me is that I went to Window > Preferences... > General > Editors > File Associations and reset the default. I set the default to "Class File Viewer" and the back to "Jadclipse Class File Viewer". No it works for some reason. :) If you're out of luck, try that.
对我有用的是我去窗口>首选项...>常规>编辑器>文件关联并重置默认值。我将默认设置为“类文件查看器”,然后设置为“Jadclipse 类文件查看器”。不,它出于某种原因起作用。:) 如果你不走运,试试那个。
回答by Bill Michell
Nevermind my question above - my problem was my settings for the path to jad.exe and the temp directory.
别介意我上面的问题 - 我的问题是我对 jad.exe 和临时目录路径的设置。
In case anyone else has the same problem I did, make sure the path to the decompiler is correct (like "C:...\jad.exe") and leave the temp directory alone (for me it's "C:\Documents and Settings{user}.net.sf.jadclipse").
如果其他人遇到我遇到的相同问题,请确保反编译器的路径正确(例如“C:...\jad.exe”)并单独保留临时目录(对我来说它是“C:\Documents and设置{用户}.net.sf.jadclipse”)。
This is a pretty good utility - infinately more useful than the default class viewer!
这是一个非常好的实用程序 - 比默认的类查看器更有用!
回答by Bill Michell
Follow the instructions in this link
按照此链接中的说明进行操作
http://www.devx.com/Java/Article/22657
http://www.devx.com/Java/Article/22657
But when downloading the jadclipse plugin for Eclipse from http://sourceforge.net/projects/jadclipse/
但是当从http://sourceforge.net/projects/jadclipse/下载 Eclipse 的 jadclipse 插件时
Just download this jar "net.sf.jadclipse_3.3.0.jar" and put it in the Eclipse plugins folder The rest is the same way it is in the first link.
把这个jar包“net.sf.jadclipse_3.3.0.jar”下载到Eclipse的plugins文件夹下就可以了,剩下的就和第一个链接里的一样了。
回答by Bill Michell
I can't get to make the plugin work with ganymede (linux version). When setting the jadclipse class viewer i get the following error in the log file of the workspace (.metadata/.log)
我无法使插件与ganymede(linux版本)一起使用。设置 jadclipse 类查看器时,我在工作区 (.metadata/.log) 的日志文件中收到以下错误
java.lang.IncompatibleClassChangeError
at net.sf.jadclipse.JadclipseClassFileEditor.doOpenBuffer(JadclipseClassFileEditor.java:101)
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:335)
at org.eclipse.ui.internal.WorkbenchPage.run(WorkbenchPage.java:628)
.....(i don't think the rest of the stack trace is important)
Perhaps jadclipse isn't compatible with the version of its eclipse dependencies (on this line jadclipse makes a call to a class defined in the JDT plugin), but i didn't have the time to figure this out.
也许 jadclipse 与其 eclipse 依赖项的版本不兼容(在这条线上,jadclipse 调用了 JDT 插件中定义的类),但我没有时间弄清楚这一点。
EDIT: i've simply recompiled the jar using the svn repository and created a new jar for java 1.5 and it seems to work (Download here). Just download my jar and put in the plugin folder of eclipse and remove the old one.
编辑:我只是使用 svn 存储库重新编译了 jar 并为 java 1.5 创建了一个新 jar,它似乎可以工作(在此处下载)。只需下载我的 jar 并将其放入 eclipse 的插件文件夹中并删除旧的。
回答by Bill Michell
I have it working on Eclipse as well:
我也有它在 Eclipse 上工作:
Version: 3.4.1 Build id: M20080911-1700
版本:3.4.1 版本号:M20080911-1700
The plug-in install steps are straightforward - http://jadclipse.sourceforge.net/wiki/index.php/Main_Page#Installation
插件安装步骤很简单 - http://jadclipse.sourceforge.net/wiki/index.php/Main_Page#Installation
I had to download JAD itself from a mirror site (original site is gone?) - http://www.varaneckas.com/jad
我必须从镜像站点下载 JAD 本身(原始站点已经消失?) - http://www.varaneckas.com/jad
I'm on a Windows machine, which might matter.
我在 Windows 机器上,这可能很重要。
回答by Barn
I followed bhupendra's method (add via Help > Software Updates > http://webobjects.mdimension.com/jadclipse/3.3) and it worked for me. Using the jar file directly (even restarting with -clean) didn't work.
我遵循了 bhupendra 的方法(通过帮助 > 软件更新 > http://webobjects.mdimension.com/jadclipse/3.3 添加)并且它对我有用。直接使用 jar 文件(即使使用 -clean 重新启动)也不起作用。