jingyu bai via JavaKB.com said:
I need to copy some jar files into ext folder and would like to know where
is the location of JRE ext folder. I am really a newbie for Mac and want
your help. The Mac I am talking about is using Mac OS 10.3.4
Thanks
In Mac OS X, the place where your JAVA_HOME variable should be pointed
(regardless of which version is installed) is to /Library/Java/Home. In
actual practice, "Home" will be a symbolic link to some other location
which will vary according to which specific Java version is installed.
In my case, it's to /System/Library/Frameworks/JavaVM.framework/Home
(what a mouthful). That last "Home" is yet another symbolic link
pointing to something else. For me, it ultimately ends up referring to
a "Home" directory that's part of the 1.4.2 JVM. While that directory
will contain some things that aren't present on other platforms, it will
contain both the bin and lib directories. And my lib directory contains
both ext and endorsed directories.
The /usr/bin/java command will be a symbolic link to something else,
which will ultimately point at the default JVM. I say this because it's
possible to have multiples installed, but only one is the default. And
unless you really need to get into distinguishing them, it's probably
safest (given all these links) just to fire up something using that
/usr/bin/java command that will give you the "java.home" system property
and going from there. In my case, it returns the complete actual path
with all symbolic links resolved.
= Steve =