Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring eclipse to use jad

Tags:

eclipse

jad

  • I downloaded the jar file and placed it into plugins dir
  • I downloaded the binary and placed it into some other dir
  • I bounced eclipse (Juno - Version: 4.2.0)
  • I updated the jadclipse to point to the correct folder enter image description here

When clicking on a method that exists in a jar whose source i don't have, decompilation does not happen.

Did i miss something?

like image 534
James Raitsev Avatar asked Jul 23 '12 20:07

James Raitsev


People also ask

How do I decompile a jar file in eclipse?

2.2 Select Window -> Preferences -> General -> Editors -> File Associations , configure the *. class without source default to Class Decompiler Viewer . Now, click on the class or methods, press F3 , and the plugin will automatically decompile the Java class.


2 Answers

Did you change the default editor for class files as stated in the JadClipse wiki?

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.

For more recent releases of Eclipse, also make sure that '.class without source' is set to use JadClipse Class File Viewer by default. Installing the plugin will only set the '.class' only by default.

like image 176
dunni Avatar answered Sep 17 '22 17:09

dunni


Go to Window > Preferences... > General > Editors > File Associations and select .class without source and remove Class File Viewer if it is already there by default and keep only JadClipse Class File Viewer.

like image 32
user1879531 Avatar answered Sep 19 '22 17:09

user1879531