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

邮差的信 提交于 2019-12-31 11:00:12

问题


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


回答1:


This is the repository for OpenJDK

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




回答2:


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.




回答3:


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

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



回答4:


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.




回答5:


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.




回答6:


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




回答7:


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

Hope that helps.




回答8:


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



来源:https://stackoverflow.com/questions/4827002/where-can-i-locate-and-browse-jdk-7-source-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!