How To View Implementation of Class Files Of Jar In Eclipse Java?

Saran Raj
2 min readJul 15, 2022

How many times you’ve irritated that eclipse shows attach java source, when you tried see the implementation of a Class or Interface. No more worries let’s get started.

We can view it just by installing an extension in eclipse.

Click “Help” tab at top of the screen, then select “Eclipse Marketplace”.

Type “jd” in the find bar and give enter.

You can see this extension, click install→confirm→finish.

check bottom right corner where the extension is getting installed.

after it gets installed, a dialogue box will be opened like this. check the box “always trust all content”→yes i accept the risk→trust selected. Eclipse asks you to restart the app, click restart.

This is not completed yet, you need to do a very important step to access the implementation of the code.

Go to preferences by [cmd+,] in mac. Then search for “file association” in the finder. click “file association”.

click *.class in file types, select “class decompiler view” in associated editors and select “default”.

Do the same for *.class without source. click “apply and close”.

Ta da.. you can now view all the implementation of code by just by [cmd/ctrl+click] the class/interface name.

if it not works for you, kindly restart eclipse and [cmd/ctrl+click] the class/interface name.

Please, like👍 this Blog, if you’ve learned anything new. Follow me for more tips and tricks. Share📤 this with your friends and colleagues. Do comment✍️ for improvement in my Future Blogs.

--

--