I want to see the java file when i click the respective object or it's method. I knew that java files are compiled and it will be in the .class format. Is it anyway to see as a java file in eclipse by using plugins or Anyother tool is there to achieve this? So we can avoid to see the implementation of the object and it's method in the java portal's..
Asked
Active
Viewed 8,510 times
3 Answers
5
If you have the source available then use Attach Source feature. If not then any decompiler eclipse plugin is fine. My preference is JD-Eclipse.

Mr_and_Mrs_D
- 32,208
- 39
- 178
- 361

Aravind Yarram
- 78,777
- 46
- 231
- 327
3
If you have the source code, you can attach it so that it gets opened automatically. This is explained in Is there an easy way to attach source in Eclipse?
If you don't have access to the source, you can integrate a Java decompiler into Eclipse: Java Decompiler
-
The JD is not working. I'm using the indigo version of eclipse. What i can do ? If i want to attache the source Where i have to look in my disk? My java installed location? – Miko Jan 28 '12 at 07:54
2
If you have the source of the library (jar) you can add it (in the properties) of the jar, otherwise you can use "decompiler" plugin: http://java.decompiler.free.fr/

Op De Cirkel
- 28,647
- 6
- 40
- 53