If you develop in Java on Mac OS X you might have noticed that the JavaDoc documentation and sources from the JDK are missing. Luckily it is very easy to solve.
- Download the latest Developer Package from the Apple Developer Downloads Website. (Currently called “Java for Mac OS X 10.7 Developer Package”) and install it.
- Add the following jar files to the search path for your JavaDoc (adjust the version in the path if necessary):
- Add the following jar file to the search path for your class sources (adjust the version in the path if necessary):
In NetBeans you can find these settings in Tools» Java Platforms. You can remove the URLs to the Oracle website.