JDK 1.6 sources – Mac OS X

By default, you won’t find JDK sources within Mac OS X – 1.6 (at least, I couldn’t find them). However, you can install src.jar by installing JDK manually.

First, you have to go here (note that you have to be ADC – membership is free of charge):

http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/downloads

Download most recent JDK release and install it.

After installation you should be able to locate sources at following location:

/Library/Java/JavaVirtualMachines/1.6.0_*/Contents/Home/src.jar