Java type hierarchy in Eclipse shows "Source not found"

I find Java classes using ctrl + shift + t, I click on the class I want to see (like Scanner or Random in java.Utils) for the type hierarchy, and it opens a tab that says "Source not found." I read an answer that says my build path is wrong, but my programs use them without issue. Can I fix this to start learning about the type hierarchy, or am I doing something wrong? Page after clicking class in menu

+3


source to share


2 answers


Your IDE can find compiled Java classes, but not Java source.



You can find it src.zip

in your JDK folder - try connecting to your Eclipse JRE / JDK setup.

+1


source


If you want to see the entire content of the jar file, you can install the eclipse Java Decompiler Plugin

JAD Decomplier plugin for Eclipse 3.x and 4.x.

update site: http://feeling.sourceforge.net/update



Steps:

Open Eclipse IDE.

  • Click Help → Install New Software. Paste the above urls and give the name as JAD.
  • Select the Eclipse class decompiler. Click "Next" and accept the agreement Install it.
  • Restart Eclipse and check now.
0


source







All Articles