- Go to http://connect.apple.com and download Java for Mac OS X 10.6 Update 3 Developer Package
- Install it.
- Open a Terminal.app window
- sudo -s
- cd /System/Library/Frameworks/JavaVM.framework/Home
- ln -s /Library/Java/JavaVirtualMachines/1.6.0_22-b04-307.jdk/Contents/Home/src.jar .
- ln -s /Library/Java/JavaVirtualMachines/1.6.0_22-b04-307.jdk/Contents/Home/docs.jar .
7 comments:
Wait... you haven't switched to Python + git yet?
stop stalking my blog and get back to work. =)
google reader... easy, passive stalking. :P
Couldn't you just point your IDE at the JDK bundle in /Library/Java/JavaVirtualMachines? Symlinking the src and docs from the system installed one will only cause it to be out of date when they system upgrades again.
There are many ways to skin a cat. This is the one I prefer.
It's rare that I have anything bad to say about Apple, there are thigs that are annoying but much less so than the alternatives. This one is just plain DUMB! I can't believe this kind of hack has to be done. Thanks for figuring it out! I installed the Java package but couldn't figure out whether it even did anything. I hate Apple for this (at least for a couple of hours). Thanks for posting your solution!
Post a Comment