Code:
/opt/zimbra/bin/zmshutil: line 39: Error: command not found
line #39 in /opt/zimbra/bin/zmshutil is:
if ! eval `${zmlocalconfig} -q -m export`; then
I think is actually cause by Java not working during a call to /opt/zimbra/bin/zmlocalconfig a few lines up
Code:
Setting local config zimbra_java_home to /opt/zimbra/java
*** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e zimbra_java_home='/opt/zimbra/java' 2> /dev/null
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
Code:
notroot@ubuntu:~/zcs-5.0.3_GA_2006.UBUNTU8_64.20080221074351$ sudo /opt/zimbra/bin/zmlocalconfig
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
I can background the installer and hack-in sun-java6-jre to zmlocalconfig (sun java6 jre will then work for that command in the shell) but I still get zmshutil line #39 error message during the install when I foreground it again...
This is what I was doing to try to roll my own java tarball replacement:
Code:
# Download Ubuntu's Java "Source" package and repack as "jdk1.6.0_04.tgz"
cd /opt/zimbra-src/${RELEASE}
sudo mkdir -p ./ThirdPartyBuilds/x86_64/java
sudo wget http://archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java6/sun-java6_6-03.orig.tar.gz -O ./ThirdPartyBuilds/x86_64/java/sun-java6_6-03.orig.tar.gz
cd ./ThirdPartyBuilds/x86_64/java
sudo tar -zxvf sun-java6_6-03.orig.tar.gz
sudo chmod +x sun-java6-6-03/jdk-6u3-dlj-linux-amd64.bin
sudo sun-java6-6-03/jdk-6u3-dlj-linux-amd64.bin
# type "yes" to Sun's Java license
sudo mv jdk1.6.0_03 jdk1.6.0_04
sudo tar -zcvf jdk1.6.0_04.tgz jdk1.6.0_04
sudo rm -rf jdk1.6.0_04