All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nutz.web.maker.run.sh Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.67
Show newest version
#!/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