
#!/bin/sh
# Searching for java in your system.

. ./setcommonenv.sh $PWD/mysql

cd ..

PRODUCT_HOME=.
export PRODUCT_HOME
JAVA="./jre/bin/java"
DB_HOME="./pgsql"

LD_LIBRARY_PATH=./lib/native:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

CLASSPATH=./lib/AdventNetUpdateManagerInstaller.jar:./server/default/lib/jtds-1.2.jar:./lib/jboss-common.jar
export CLASSPATH

JAVA_OPTS="-Ddb.home=$DB_HOME" 


$JAVA -Xms256m -Xmx512m  $JAVA_OPTS -Dtier-type=BE -Djava.library.path=./lib/native -Dtier-id=BE1 com.adventnet.tools.update.installer.UpdateManager -u server/default/conf $*
cd bin

