Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

3 Answers 3

up vote 6 down vote accepted
+50

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 http://www.oracle.com/technetwork/java/javase/downloads/index.html

from there I find this

http://download.oracle.com/javase/7/docs/webnotes/install/linux/linux-plugin-install.html

ok. hope You find this usefull.

share|improve this answer
    
And more find this: developer.classpath.org/doc/java/util/LinkedList-source.html –  maniat1k Oct 6 '11 at 16:14

Here's a direct link for the LinkedList sources in mercurial repository for OpenJDK 8: http://hg.openjdk.java.net/jdk8/jdk8-gate/jdk/file/tip/src/share/classes/java/util/LinkedList.java

share|improve this answer

Your Answer

 
discard

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.