Java Software has two separate bundles of source code that you can obtain at no charge:

  • The Java 2 SDK, Standard Edition itself contains a file called that contains the source code for the public classes in the java package. Because this does not contain sun.* classes, you cannot do a complete build of the Java technology from these source files. These source files are for your information, to supplement the documentation, so you can see how Java technology works.
  • The full source code release is available from us by going to the Community Source Code Licensing web site..

Source:Frequently Asked Questions About Java