Just installed ZCM 11

SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1

When I try to start zenserver I get this:

zcmesx01:/opt/novell/zenworks/java # /etc/init.d/novell-zenserver start
Starting Novell ZENworks12/02/2011 22:56:46 7669 jsvc error: Cannot locate Java Home


When I look in the init script I can see that it tries to locate java home in

JAVA_HOME=/opt/novell/zenworks/lib/java

Well its not there!

zcmesx01:~ # ls -lrt /opt/novell/zenworks/lib/java
ls: cannot access /opt/novell/zenworks/lib/java: No such file or directory

There is a folder called /opt/novell/zenworks/java/lib/ but when I change it and starts zenserver I get an segmentation fault!



# set up ZENworks' tomcat
JAVA_HOME=/opt/novell/zenworks/lib/java
CATALINA_HOME=/opt/novell/zenworks/share/tomcat
JSVC=/opt/novell/zenworks/bin/jsvc
TOMCAT_USER=zenworks
TMP_DIR=/var/tmp
BOE_SSL_PROPS="-Dbusinessobjects.orb.oci.protocol=ssl -DcertDir=/etc/opt/novell/zenworks/security -DtrustedCert=ca.der -DsslCert=server.der -DsslKey=server.key -Dpassphrase=passphrase.txt"
SYSTEM_PROPS="-Dcom.novell.casa.authtoksvc.config=/etc/CASA/authtoken/svc -Djava.security.auth.login.config=/etc/opt/novell/zenworks/casa/casa-jaas.conf"
CATALINA_OPTS="-Xms1024m -Xmx1024m -Xss1m -XX:PermSize=128m -XX:MaxPermSize=256m $SYSTEM_PROPS $BOE_SSL_PROPS -Dfile.encoding=UTF-8"
CATALINA_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,ad dress=8000 $CATALINA_OPTS"
CATALINA_PROFILER_OPTS="-Xint -Xrunjprofilerort=8849 -Xbootclasspath/a:/opt/jprofiler3/bin/agent.jar $CATALINA_OPTS"
JAVA_PROPS="-Djava.awt.headless=true -Dcatalina.home=$CATALINA_HOME -Djava.io.tmpdir=$TMP_DIR"
JSVC_OPTS="-jvm server -user $TOMCAT_USER -home $JAVA_HOME"
#JSVC_OPTS="-user root -home $JAVA_HOME"
CLASSPATH=$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar
PID_FILE=/var/opt/novell/zenworks/zenserver.pid
export LD_LIBRARY_PATH=/opt/novell/zenworks/lib
SUCCESS=0
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8