Código fuente de la API de Java [cerrado]

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

preguntado el 08 de enero de 11 a las 18:01

Have you checked Google? -

6 Respuestas

OpenJDK code: Navegar aquí
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 Aquí
  3. JDK Documentation Aquí

respondido 21 mar '19, 18:03

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

Respondido el 08 de enero de 11 a las 21:01

I already found the code on Google Code Search, but out of curiosity is this only true for OpenJDK? I'm running Ubuntu and can't find it in the sun-java6-jdk directory. - Matt Robertson

Ubuntu repackages everything. Have you installed sun-java6-source? - Thorbjørn Ravn Andersen

It is true with the JDK 7 directly from Oracle as well. +1 for being by far the most correct answer here, and saving me decaminutes of time. - trognanders

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

Respondido el 08 de enero de 11 a las 21:01

I'm not sure what you mean, but here is the Documentación de la API

Fuente para OpenJDK implementation

Respondido el 27 de junio de 12 a las 08:06

Presumably you mean the core libraries?


You might this alternative useful too:


Respondido el 08 de enero de 11 a las 21:01

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


It works for different versions of various libraries.

Respondido el 08 de enero de 11 a las 21:01

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.