I have a debian machine. I am using eclipse. Normally on eclipse, to view the source of code of an object, etc, you simply click F3 on the object. But for some reason, when it’s core java classes, I get
"Source not found" and an option to attach the source.
Where exactly is the JRE source on debian? When I do a aptitude search "?provides(java-runtime)", the result contains multiple answers with the substring jre in it and also no path.
Can someone tell me exactly where to get the source so I can attach it. Also, I would like to make it available to all projects, not just per project.
The
JREis purely the runtime environment needed to run Java programs. For the development of Java programs, you need theJDK(Java Development Kit).The JDK itself is split up into several packages, including the JRE, documentation, demos, and the source files.
Assuming that you’re using Open JDK 6,
sudo apt install openjdk-6-sourcewould install and link the source code that you’re looking for.