Skip to content

Instantly share code, notes, and snippets.

@rodrigodealer
Forked from rponte/set_java_source.sh
Created March 22, 2011 13:19
Show Gist options
  • Save rodrigodealer/881196 to your computer and use it in GitHub Desktop.
Save rodrigodealer/881196 to your computer and use it in GitHub Desktop.
# go to jdk1.6's home
cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
# check your correct java version installed before running this command
sudo ln -s /Library/Java/JavaVirtualMachines/1.6.0_22-b04-314.jdk/Contents/Home/src.jar src.jar
# now your Eclipse IDE can find and define both the source and doc for its jvm, yupi! ;-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment