Yesterday I stumbled across a big performance issue in the upcoming Xtend2 compiler that only happened on my machine. Profiling yielded that it was because I have no local sources (another strange story).
So I decided to look for the developer package once again et voilĂ : Apple had been so kind to release it in the meantime. BTW, the timestamp says October 20th :-o
So here's what I did to get the MacOSX Java sources back (it's on your own risk, I disclaim any responsibility if you should break or machine)
1) Get an Apple Developper Connection account (it's free, but you have to register).
2) Login choose Java and download the Java for Mac OS X Developer Package matching your OS and Java version.
3) Install the DMG.
The install location of the JDK is somehow weird - e.g. you cannot directly open it in Eclipse's "Choose JDK location" dialog. To make it the default, I found it easiest to retarget the symbolic link pointing to the default JRE. You have to be super user in this case.
4) Open a Terminal and enter
cd /System/Library/Frameworks/JavaVM.framework/VersionsIf Eclipse uses the default MacOSX JDK, you should now have sources.
sudo rm CurrentJDK
sudo ln -s /Library/Java/JavaVirtualMachines/1.6.0_22-b04-307.jdk/Contents CurrentJDK
4 comments:
PS: In the meantime, Apple issued Java 1.6.0_24. The developer package is available, too, this time within a few days.
PPS: Same holds for MacOSX Lion.
And... I am wondering if the then available sources solved your performance issues ;) ?
the download link changed to https://developer.apple.com/downloads/
Post a Comment