2006-11-17 10:14:43 +07:00
|
|
|
#!/bin/sh
|
2009-11-02 04:20:17 +07:00
|
|
|
# ADempiere Server Start
|
2006-11-17 10:14:43 +07:00
|
|
|
|
|
|
|
if [ $ADEMPIERE_HOME ]; then
|
|
|
|
cd $ADEMPIERE_HOME/utils
|
|
|
|
fi
|
|
|
|
|
|
|
|
. ./myEnvironment.sh Server
|
|
|
|
|
2010-07-13 15:13:36 +07:00
|
|
|
## Check Java Home
|
|
|
|
if [ $JAVA_HOME ]; then
|
|
|
|
JAVA=$JAVA_HOME/bin/java
|
|
|
|
else
|
|
|
|
JAVA=java
|
|
|
|
echo JAVA_HOME is not set.
|
|
|
|
echo You may not be able to start Adempiere
|
|
|
|
echo Set JAVA_HOME to the directory of your local JDK.
|
|
|
|
fi
|
|
|
|
|
2006-11-17 10:14:43 +07:00
|
|
|
# To use your own Encryption class (implementing org.compiere.util.SecureInterface),
|
|
|
|
# you need to set it here (and in the client start script) - example:
|
|
|
|
# SECURE=-DADEMPIERE_SECURE=org.compiere.util.Secure
|
|
|
|
SECURE=
|
|
|
|
|
2010-07-15 02:02:50 +07:00
|
|
|
VMARGS="-Dosgi.compatibility.bootdelegation=true -Djava.awt.headless=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -DADEMPIERE_HOME=$ADEMPIERE_HOME"
|
2006-11-17 10:14:43 +07:00
|
|
|
# headless option if you don't have X installed on the server
|
2010-07-13 15:13:36 +07:00
|
|
|
$JAVA -server $VMARGS -jar $ADEMPIERE_HOME/osgi/org.eclipse.osgi_3.6.0.v20100517.jar -install $ADEMPIERE_HOME/osgi -configuration $ADEMPIERE_HOME/osgi/server -clean -console
|
2006-11-17 10:14:43 +07:00
|
|
|
|
|
|
|
|