Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Java JDK but where can I find the sources? For one my homework, I'm asked to refer to one of the files ...

check the source code of java.util.LinkedList. The Java source code of this class can be found in the jdk package

share|improve this question
up vote 6 down vote accepted

First of all, about java.util.LinkedList source: you can view it here or here, for example.

Then, aren't you looking for openjdk-7-source or sun-java6-source packages?

If not (may you prefer a Mercurial checkout or a tarball way or just want the most up-to-date sources), maybe this is what are you looking for?:

enter image description here

share|improve this answer

I use google and typed: "java jdk download"

then find this link

from there I find this

ok. hope You find this usefull.

share|improve this answer
And more find this: – maniat1k Oct 6 '11 at 16:14

Here's a direct link for the LinkedList sources in mercurial repository for OpenJDK 8:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.