开发者

Where can I locate and browse JDK 7 source files? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can开发者_运维问答 edit the question so it can be answered with facts and citations.

Closed 8 years ago.

Improve this question

Can anyone direct me to where the jdk 7 source is hosted?


The direct link is this.

If you wonder how this link is got, follow this link, except that select "jdk7/jdk7-gate/jdk" instead of "jdk6/jdk6-gate/jdk" for jdk 7 sources.


For Java source codes in JRE, this website is more useful than hgweb for OpenJDK7.

  • http://www.docjar.com/projects/openjdk-7-java.html


This is the repository for OpenJDK

As for Oracle's JDK7, there are binaries and docs, but no source to browse.


I find http://www.codatlas.com to be a very handy place to read java code. For example you will find open JDK7 source code here:

http://codatlas.com/github.com/lambdalab-mirror/jdk7u-jdk/master/

It's biggest advantage is that besides syntax highlighting as @Jakub mentioned in his answer, it also supports cross reference, which will makes the code browsing experience 10x easier.

It has bunch of other JVM based projects too (Apache Hadoop, ElasticSearch etc.). It also supports scripting language like ruby and python but the performance is not great at this moment.


You can find the source files here jdk7source

I was looking for it when I found this question and that is why I decided to add this answer, as none of the other answers have it, but there is no web interface for browsing.


There is JDK7 source code mirror on GitHub. Easier to browse, and with syntax highlighting.


I don't think that the source of the Sun JDK is openly available. Why not try the OpenJDK Mercurial repos

Hope that helps.


If you want to browse the source locally. Then you can find the source in the jvm directory in the src.zip file. for linux environments the file is located in /usr/lib/jvm/java-7-oracle

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜