Yes, /usr/libexec/java_home should give the path to any system JDK or developer JDK installed in either the /System/Library, /Library, or ~/Library (Java/JavaVirtualMachines) locations.
It should not be necessary to create a symlink, just move the JVM you want to be your $JAVA_HOME up to the top in Java Preferences, and set $JAVA_HOME in your .bashrc, or other shell config you use. By default, if you use the Java command line tools that are already on your path from /usr/bin, they will just redirect to the right place automatically.
I'm curious, Jakub, what are you using the full path to the JDK for?
On Nov 16, 2010, at 3:40 AM, Tracy Snell wrote:
> Won't /usr/libexec/java_home give you the path to the JDK you'd like if the JDKs are installed correctly? Asking Mike not you Jakub. :)
> On Nov 16, 2010, at 4:40 AM, Jakub Skoczen wrote:
>> Thanks fo the explanation Mike! I understand you Guys had reasons for
>> what you have done, I'm just not entirely happy with the outcome :).
>> So updating JDKs is left to the user now, since the JVM in /Library
>> will never be overritten, even for minor or build updates. I guess
>> I'll create a "current" or "1.6" symlink there that I will update
>> manually and point my Java apps to it.
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden