How to attach Java src jar’s to Eclipse on Macbook

Sep 5th, 2013 | Filed under java, mac

How to attach Java src jar’s to Eclipse

Go to:
cd /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home

Find the src.jar there:
find /Library/Java -name ‘src.jar’

And link whatever you will find in current directory
$ sudo ln -s /Library/Java/JavaVirtualMachines/1.6.0_51-b11-457.jdk/Contents/Home/src.jar .

Tags:
No comments yet.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image