Question

Hi I installed openjdk1.6 in my machine using yum.

yum install java-1.6.0-openjdk-devel

it is installed in /usr/lib/jvm/java-1.6.0-openjdk/

But I could not find the java source of the classes.

What I'm trying to do is just edit some original java code, recompile and play with it.

Thanks.

Was it helpful?

Solution

You need to manually download it using mercurial , first of all get Mercurial Forest Extension and then clone the whole tree

hg fclone http://hg.openjdk.java.net/jdk6/jdk6

Building it is a bit tricky, here is the build howto for JDK7, should be applicable for JDK6 too.

OTHER TIPS

When you install a package from yum, you're installing a binary. It doesn't necessarily download the source. You'll probably have to download the source from the website (or a repository) directly.

http://download.java.net/openjdk/jdk6/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top