How do I view JRE's source code in Eclipse on linux (debian)

Viewed 8436

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.

4 Answers
Related