开发者

where to find the source in openjdk

开发者 https://www.devze.com 2023-02-01 04:49 出处:网络
Hi I installed openjdk1.6 in my machine u开发者_开发百科sing yum. yum install java-1.6.0-openjdk-devel

Hi I installed openjdk1.6 in my machine u开发者_开发百科sing 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/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号