Eclipse source attachment configuration path does not exist

Viewed 201

I just installed fresh Eclipse 2021-06 (4.20.0) on Kubuntu OS and jdk 11 via apt.

java -version:

openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)

Problem is when i try to open class/method declaration from jdk in Eclipse i get message that source is not found. Source not found

Tried to locate src.zip file Eclipse - Source not found when trying to open declaration of random(), but when selecting it, Eclipse interestingly says that the file does not exist. I tought it might be permissions problem as it's path is /usr/lib/jvm/java-1.11.0-openjdk-amd64/lib/src.zip, but i copied that file to home and nothing changed.

enter image description here

Any guesses where problem might be?

2 Answers

I had JRE installed instead of JDK. Downloaded and installed AdoptOpenJDK 16 (JDK) switched to this in Eclipse and it just works now

Related