JavaFAQ Home » General Java
Question: I heard many times from Java
lectors: "If you are interested how new feature was
implemented in JDK please check the source code...". I
tried to find the source code but have not succeeded.
Of course, I can decompile class files but could be good to have
"original" source code from SUN, not from hacking tools
Answer: I found the SUN's page and what
"Sun is making the source code to the Java 2 platform available to
the developer community. This offering is intended to further
propel innovation of the Java platform and provide developers with
easier access to Java platform sources while still maintaining
Do You Need The Source Code?
In most cases, you do not need the source. In fact, most developers will find
all the basic resources and tools they need in the
Java 2 Software Development Kit (formerly known as the JDK
The source code to the Java 2 platform can be invaluable if you
are doing any of the following:
- conducting research work
- debugging possible platform bugs
- adding enhancements which require access to platform internals
Additional info: the source code can be found in the source.zip
file in directory where your J2SDK is installed (not JRE!). Do not
forget to mark the option "Java Source files" during the installation of
J2SDK, otherwise it will not be copied to the J2SDK
But building, porting, and testing the Java 2 platform source code
requires a high level of technical expertise. "
P.S. About last sentence: I am pretty sure that all readers of my
newsletter have it.
Our older tips: March 22, 2001 - October 21, 2002
All published and not published on site tips you can find
Printer Friendly Page
Send to a Friend
Search here again if you need more info!