I installed Java 5 on Tiger and changed the defaults in the Java
Preferences app to point first to Java 1.5, but it still uses JDK
1.4.2.
Assuming this is the standard install, and not a developer preview of
an upcoming install, this is correct for the command line.
Eventually, and likely very soon, Java 1.5 will become the default
jdk even for command line applications. Until that day, see <http://
developer.apple.com/releasenotes/Java/Java50RN/index.html>
Quoting:
To use the J2SE 5.0 version of any command-line Java utility, such
as java or javac, specify the full path to the J2SE 5.0 version of
the command. This usually means prepending the command with the
path /System/Library/Frameworks/JavaVM.framework/Versions/1.5/
You can completely automate this by putting the binary directory of
that version into your path. For my system, I edited my .profile and
added
The symlinks located in /System/Library/Frameworks/JavaVM.framework/
Versions/
are currently:
Apple has told people not to change this symlink. I really would
not, unless you have a very good reason, given that a change
in .profile, or in environment.plist will get the same result,
without putting your system into an unsupported configuration.
I doubt your machine will burst into flames, but it might hork up the
installer for the upcoming version of Java that does change the
current version symlink.
Is this right? Is there anything else I need to be aware of? Why
didn't the Apple Java Preferences application do this for me?
The java prefs application only affects applets, webstart, and app
bundles with an info.plist. It does not affect command line apps, as
those follow unix paths.
Scott
---
email@hidden
Java, Cocoa, Tapestry, and Database Consulting
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden