问题
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).
回答1:
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!
回答2:
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 Associations and make sure that the JadClipse Class File Viewer has the DEFAULT file association for *.class files. ( - press Default button !!!)
It really helps :)))
回答3:
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.
回答4:
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!
回答5:
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.
回答6:
I had a problem running JadClipse in Eclipse Ganymede. It turns out the Groovy plugin had conflicted with JadClipse. After removing the groovy plugin, JadClipse ran just fine. Btw here's the problem:
Cannot complete the request. See the details.
Unsatisfied dependency: [org.codehaus.groovy.eclipse.feature.feature.group 2.0.0.20090814-1100-e34-N] requiredCapability: org.eclipse.equinox.p2.iu/org.codehaus.groovy.eclipse.core.help/[2.0.0.20090814-1100-e34-N,2.0.0.20090814-1100-e34-N]
Unsatisfied dependency: [org.codehaus.groovy.eclipse.feature.feature.group 2.0.0.20090814-1100-e34-N] requiredCapability: org.eclipse.equinox.p2.iu/org.codehaus.groovy.jdt.patch.feature.group/[2.0.0.20090814-1100-e34-N,2.0.0.20090814-1100-e34-N]
Unsatisfied dependency: [org.codehaus.groovy.jdt.patch.feature.group 2.0.0.20090814-1100-e34-N] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.jdt.feature.group/[3.4.2.r342_v20081217-7o7tEAoEEDWEm5HTrKn-svO4BbDI,3.4.2.r342_v20081217-7o7tEAoEEDWEm5HTrKn-svO4BbDI]
Unsatisfied dependency: [org.codehaus.groovy.eclipse.core.help 2.0.0.20090814-1100-e34-N] requiredCapability: osgi.bundle/org.eclipse.help/3.3.102
回答7:
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!
回答8:
Follow the instructions in this link
http://www.devx.com/Java/Article/22657
But when downloading the jadclipse plugin for Eclipse from http://sourceforge.net/projects/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.
回答9:
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.
回答10:
I have it working on Eclipse as well:
Version: 3.4.1 Build id: M20080911-1700
The plug-in install steps are straightforward - 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
I'm on a Windows machine, which might matter.
回答11:
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.
回答12:
To resolve the problem :
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.
Restart Eclipse (eclipse -clean).
回答13:
using this update site with myeclipse 8.5 seems to work fine:
http://webobjects.mdimension.com/jadclipse/3.3
FYI Jeff
来源:https://stackoverflow.com/questions/122110/is-there-a-way-to-get-jadclipse-working-with-eclipse-3-4