Java API Source Code [closed]

落爺英雄遲暮 提交于 2019-11-29 05:32:48

问题


Where can I find the source code of the Java API?


回答1:


OpenJDK code: Browse here
For example, if you looking for AWTUtilities.java, go here in the above link:

src› share› classes› com› sun› awt› AWTUtilities.java
  1. OpenJDK project homepage where they have all the instructions of downloading and building it
  2. OpenJDK Mercurial Repo hosted here
  3. JDK Documentation here



回答2:


Install the JDK. The sources for the public classes are packaged in src.zip.




回答3:


You can also find them online at http://www.docjar.org/.




回答4:


I'm not sure what you mean, but here is the API documentation

Source for OpenJDK implementation




回答5:


Presumably you mean the core libraries?

http://openjdk.java.net/groups/core-libs/

You might this alternative useful too:

http://www.gnu.org/software/classpath/




回答6:


If you only need to look up some classes, the following page is also a good source:

http://grepcode.com

It works for different versions of various libraries.



来源:https://stackoverflow.com/questions/4635377/java-api-source-code

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