Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to (re)attach JDK sources for Eclipse on Snow Leopard?

After updating to the latest (and now deprecated, sniff...) update of Apple's JDK, Eclipse does not show the source code for JDK classes anymore. It asks me to attach the source location file or folder. Where can I find that?

like image 572
Thilo Avatar asked Nov 02 '10 13:11

Thilo


2 Answers

It seems that Java for Mac OS X 10.6 Update 3 does not include the sources anymore. There is a separate package "Java for Mac OS X 10.6 Update 3 Developer Package" now. See http://lookfirst.com/2010/10/how-to-fix-missing-source-for-latest.html

like image 119
michid Avatar answered Nov 19 '22 20:11

michid


For each update from Apple, I write a new blog post with the updated symlinks. I noticed a lot of traffic on my blog from one of the answers, so I figured I might as well update things with the latest release.

I could write a simple shell script to do this for you, but that would require you to download a file. Seems simpler to just execute a few easy commands.

This is the latest one for update 5:

http://lookfirst.com/2011/06/fix-missing-source-for-java-mac-os-x.html

like image 6
Public Profile Avatar answered Nov 19 '22 19:11

Public Profile