which java
(see which java executable is used. Should be /usr/bin/java)
/Library/Java/Home/bin/java
NOTE: Some time in distant memory I read (in some Apple document) that
JAVA_HOME should be set to "/Library/Java/Home" rather then to
something
more explicit. This may explain the result of the "which java"
command (as
opposed to your expected result).
In this case, you probably do not want to define $JAVA_HOME. If you
need to use a $JAVA_HOME, we generally suggest using /Library/Java/
Home, because it will always point to the preferred JVM version, as
defined by Apple. In this case however, you almost certainly want your
Java executable to be /usr/bin/java, which will dynamically re-exec()
the version of Java you drag to the top of your "Java application
versions" section of Java Preferences.
Best of luck,
Mike Swingler
Java Runtime Engineer
Apple Inc.
_______________________________________________
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