Is there a way to get jadclipse working with Eclip

2019-03-19 10:11发布

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).

13条回答
走好不送
2楼-- · 2019-03-19 10:40

update your eclipse 3.4 for jadeclipse from help-> software updates http://webobjects.mdimension.com/jadclipse/3.3 restart the eclipse. set the jadeclipse properties. it doesn't just works.. this is the solution.

查看更多
女痞
3楼-- · 2019-03-19 10:40

Nevermind my question above - my problem was my settings for the path to jad.exe and the temp directory.

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").

This is a pretty good utility - infinately more useful than the default class viewer!

查看更多
爷、活的狠高调
4楼-- · 2019-03-19 10:40

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.

查看更多
Ridiculous、
5楼-- · 2019-03-19 10:42

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

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)

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.

4) Restart Eclipse (eclipse -clean).

It is now working perfectly for me!

查看更多
霸刀☆藐视天下
6楼-- · 2019-03-19 10:45

I'm successfully using JadClipse with Eclipse 3.4

Eclipse 3.4.0.I20080617-2000
JadClipse 3.3.0

It just works!

EDIT: Actually, see OlegSOM's answer below for the additional steps that you might need to remember to take, if like me you forget to read documentation sometimes!

查看更多
唯我独甜
7楼-- · 2019-03-19 10:45

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)

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$3.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.

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.

查看更多
登录 后发表回答