简体   繁体   中英

where to find the source in openjdk

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.

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.

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM