I'm just installing it now, but a few things here...
You shouldn't mess with Java that way. The way to make Tomcat run with Java 1.5 under OS X is to add "export JAVA_JVM_VERSION=1.5" to the start of the catalina.sh script.
The way you've done it will break other things that require 1.4. See this for the correct way:
Code:
nigelkersten@jitter: ~ $ java -version
java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-232)
Java HotSpot(TM) Client VM (build 1.4.2-54, mixed mode)
nigelkersten@jitter: ~ $ export JAVA_JVM_VERSION=1.5
nigelkersten@jitter: ~ $ java -version
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-83)
Java HotSpot(TM) Client VM (build 1.5.0_05-48, mixed mode, sharing)
nigelkersten@jitter: ~ $
Actually, it looks like you can just add that line to the .bashrc file in /opt/zimbra, after JAVA_HOME.
as far as JAVA_HOME goes, I notice that zimbra sets it to /usr with the setup script... it should probably be /Library/Java/Home under OS X, but I'll see whether that works. It will for the java executable as /usr/bin contains a link to the Commands in /Library/Java/Home, but other things may not work so well.
You don't need to faff around with the /Users directory in that way. Do something like this instead.
Code:
# nireport . /users uid name | sort -n
This will print out all the uids in use. Look for a free one, in my case I chose 102. Then you can do:
Code:
#sudo echo "zimbra:*:102:102::0:0:zimbra:/opt/zimbra:/bin/bash" | niload passwd /
#sudo echo "zimbra:*:102:" | niload group /
#sudo passwd zimbra
This will create the user and group entries for 'zimbra', and the last line lets you set the password for zimbra.
If you want to use NetInfo manager, then just change the home property for the zimbra user.
I'm not sure why you're verifying disk permissions? What will that do?
The Java Preferences application is for setting client preferences for applets that run in the browser, not for setting the java version that apps like Tomcat will use.