Mac OS X uses a lot of symlinks in its Java directory structure. If I
had an Intel-based Mac it would be easier to help but I'll do what I
can.
In the terminal cd /System/Library/Frameworks/JavaVM.framework/
Versions then list the directory with ll(2 els, which is an alias for
'ls -lF'). Symlinks will show as: 1.5@ -> 1.5.0 and CurrentJDK@ ->
1.5. For now just deal with the directories that aren't links. The
path I believe you will eventually use for jdkhome will be of the form:
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/home/
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/home/
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/home/
You'll be interested in anything with 1.6 in it. So for example, cd /
System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/home/ then
enter ./bin/java -version. You'll get back something like this:
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-
b03-333-9M3125)
Java HotSpot(TM) Client VM (build 1.5.0_22-147, mixed mode, sharing)
I don't know how Java displays whether it is 32 or 64 bit but I assume
that will do it. Keep going through the installs until you find the
32 bit Java 6 install and that will be the path to set jdkhome to,
ending with Home, not bin.
I don't know why there is a symbolic link "Current" that points to
"A". It seems like a duplicate of the install in 1.5.0 on my system.
Post by Korky KathmanI had some difficulty chasing down all the information that you gave.
If you'd like I could forward the other couple of posts to you.
Post by Korky KathmanHi Mark,
I had some difficulty chasing down all the information that you
gave. I did find all the Java versions in the /System/Library/
Frameworks/JavaVM.Framework/Versions and I have everything from 1.3
to what is called "Current JDK" 1.6.0 and a version called "A" are
there
However, I dont see any directory that specifically seems to
indicate 32-bit vs. 64-bit.
Now on the Mac there is a Java Preferences app that allows you to
use the most appropriate version to use for Applets and for
Applications. You can order the preferences of 32-bit and 64-bit
here. I tried to uncheck the 64-bit for applications and it didn't
allow me to do that. I switched the order, putting 32-bit first, but
it seems that Netbeans Always uses 64bit if it can.
So, if I can't find the actual directory to the 32bit
implementation, then I may need to fall back to 1.5.0 perhaps.
Perhaps Tomas can lend a hand here
Korky
Mark Wade
***@optonline.net