Go to the Package Explorer view with the file open in the current editor. Click the "Link with Editor" toggle (the two arrows). This should jump you to the class file you are viewing, which should be in the jar you are using. If the jar is in a library, you should see the path to the jar in the package explorer. If not you can see the path to it in the preferences. From there you can also use Chin Huang's answer to find where the given source file is.

Answer from ILMTitan on Stack Overflow
🌐
YouTube
youtube.com › jimmy l
Viewing source code of Java's built-in classes with Eclipse - YouTube
We show how to locate the source code of Java's built-in classes within the Java Development Kit (JDK), and describe how to configure Eclipse for easy viewin...
Published   December 18, 2019
Views   6K
🌐
YouTube
youtube.com › watch
How to view source code for core Java classes in eclipse - YouTube
In this will I showed and explained, how to view core java source when using core Java classes in your program. As a example when we extends JFrame class we ...
Published   June 24, 2017
🌐
Quora
quora.com › Java-programming-language-How-do-I-view-the-source-code-of-the-built-in-functions-in-Eclipse-Java-in-order-to-gain-the-implementation-knowledge
Java (programming language): How do I view the source code of the built-in functions in Eclipse (Java) in order to gain the implementation knowledge? - Quora
Answer (1 of 5): Right click on the function whose Implementation you want to see, and the from option by right clicking you can navigate to the internal code for that part. this is for Netbeans, but process is almost same for all IDEs
🌐
Blogger
javarevisited.blogspot.com › 2013 › 01 › how-to-decompile-class-file-in-java-eclipse-javap-example.html
How to decompile class file in Java and Eclipse - Javap command example
Just expand any jar file for which you don't have the source attached in Eclipse and click on the .class file. Now you can see the source code for that file in Java editor, simple and elegant isn't it.
Find elsewhere
🌐
Eclipse
archive.eclipse.org › eclipse › downloads › documentation › 2.0 › html › plugins › org.eclipse.jdt.doc.user › reference › ref-124.htm
Source Attachments
The Source Attachment dialog can ... (File > Properties > Java Build Path). On the library page select a JAR and press Attach Source · Open an editor on a class file....
🌐
Eclipse Marketplace
marketplace.eclipse.org › free-tagging › class-file-viewer
Class File Viewer | Eclipse Plugins, Bundles and Products - Eclipse Marketplace | Eclipse Foundation
The Eclipse class file browser is a plugin for Eclipse, which allows for more comfortable viewing of Java class files than the supplied class file viewer.
🌐
City Tech OpenLab
openlab.citytech.cuny.edu › cet3640 › tutorials › how-to-find-the-source-code-files-in-eclipse
How to Find the Source Code Files in Eclipse – CET 3640
March 19, 2020 - Also once you test your code, the ... have a .class extension. DO NOT submit those, as although they are executable by the JVM, the source code is not available and therefore cannot be properly assessed. In this tutorial I will show you how to find the source code files you need to submit for your labs. The first step is once you are done with your lab, go to Eclipse and identify ...
🌐
Alvin Alexander
alvinalexander.com › blog › post › eclipse-ide › eclipse-faq-attach-jvm-classes-source-code
How to see the source code for JVM classes in Eclipse | alvinalexander.com
June 4, 2016 - Source not found The jar file classes.jar has no source attachment. You can attach the source by clicking the Attach Source below: (The message really should end with "by clicking the Attach Source button below:") On my Mac OS X laptop, when I click this button I'm prompted to select the location containing the source for classes.jar.
🌐
YouTube
youtube.com › watch
how to view a class file in eclipse | how to view a class file | decompile a class file in eclipse - YouTube
how to view a class file in eclipse | how to view a class file | decompile a class file in eclipse#howtoviewaclassfile #howtoviewaclassfileineclipse #howtovi...
Published   August 8, 2022
🌐
Medium
saranraj10.medium.com › how-to-do-view-class-files-of-jar-in-eclipse-java-95afd7d91631
How To View Implementation of Class Files Of Jar In Eclipse Java? | by Saran Raj | Medium
July 15, 2022 - 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.
🌐
Java Decompiler
java-decompiler.github.io
Java Decompiler
JD-GUI is a standalone graphical utility that displays Java source codes of “.class” files. You can browse the reconstructed source code with the JD-GUI for instant access to methods and fields. JD-Eclipse is a plug-in for the Eclipse platform.