org.nutz.web.maker.run.sh Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz-web Show documentation
Show all versions of nutz-web Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
#!/bin/bash
export JAVA_OPTS="-Xmx256m -Djava.awt.headless=true"
export APP_LAUNCHER=${pkg}.${pnm}Launcher
export APP_HOME=${phome}
export APP_CONF=$APP_HOME/conf
export APP_LIB=$APP_HOME/lib
# 把各种jar,配置文件啥的加到classpath中吧
cp=.:$JAVA_HOME/lib/rt.jar
cp=$cp:$APP_CONF
cd $APP_LIB
for i in `ls | grep ".jar"`
do
if [ -f $i ] ; then
cp=$cp:$PWD/$i
fi
done
export CLASSPATH=$cp
echo $cp
# 运行吧, 把log打出
nohup java $JAVA_OPTS $APP_LAUNCHER >> $APP_HOME/server.log 2>&1
© 2015 - 2025 Weber Informatics LLC | Privacy Policy