We help IT Professionals succeed at work.

How to view source code from .jar file using RAD 6 ?

_Esam
_Esam asked
on
12,508 Views
Last Modified: 2013-12-22
Hi,

I have a jar file and I want to be able to view the souce code using RAD 6.
How can I do that?

I know that I need a decompiler to view the source from a jar file, right?

Doesn't RAD have any decompiler integraded with it?

If not what should I do to view the source from a jar file?


Thax.
_Esam.
Comment
Watch Question

Chief Technology Officer
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
I know I can unjar the jar file using jar -xvf jarfilename.jar but I needed to know how can I set up RAD with a decompiler plug in if RAD doesn't have it already ???
How can I attach a plug-in for decompiler for RAD (it's just eclipse at core ?)..

Thax.
_Esam...

Commented:
First, to integrate the JAD decompiler, you can follow the instructions here: http://www.devx.com/Java/Article/22657

However, you may not have to do this. RAD already has source for many of the jars it ships with, so if you include the JAR in your build path, it'll appear in your project, and you can expand the jar , doublie-click on the class name and it'll pop up as source in teh Java editor. You can also explicitly associate source with a jar, and it'll react similarly.

Author

Commented:
I tried the above link already and it does't work ... the way it was suggested..because...
For Eclipse\plugins  ... I have multiple Eclipse\plugins  folders .. where do I really place it?


The second ...
Double clicking the .class from the explorer doesn't open the source...
It complains... Source not found !!!

That's why I needed the JAD decompiler ..

Thax.
_Esam.

Commented:
I'm using RAD 7, so I have a different directory structure to you. However, I'm pretty sure there's an eclipse\plugins directory under the installation directory. If you go to the JADClipse wiki at http://jadclipse.sourceforge.net/wiki/index.php/Main_Page, it'll give you some more instructions.

Author

Commented:
How do I do:

eclipse -clean

if I am using Win XP?

Thax.
_Esam.

Author

Commented:
RAD is pain...
I did use JAD with simple eclipse earlier and it worked fine...
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Forced accept.

Computer101
EE Admin

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.