How do you get the source again in your IDE (in my case Eclipse Indigo):
- Download and install the javadeveloper_for_mac_os_x_10.6__10m3425.dmg from developer.apple.com (free registration required)
- Install the client update (comes from the automatic update functionality in OS X), it doesn’t matter in which order you do these two steps)
Next run the following commands in a terminal:cd /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home sudo ln -s /Library/Java/JavaVirtualMachines/1.6.0_26-b03-384.jdk/Contents/Home/src.jar sudo ln -s /Library/Java/JavaVirtualMachines/1.6.0_26-b03-384.jdk/Contents/Home/docs.jar
Eclipse will now be able to find the sources for the Java classes.