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 4 years ago.
开发者_JAVA技巧 Improve this questionWhere can I find the source code of the Java API?
Install the JDK. The sources for the public classes are packaged in src.zip.
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
- OpenJDK project homepage where they have all the instructions of downloading and building it
- OpenJDK Mercurial Repo hosted here
- JDK Documentation here
You can also find them online at http://www.docjar.org/.
I'm not sure what you mean, but here is the API documentation
Source for OpenJDK implementation
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/
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.
精彩评论