#!/bin/sh


JWS_HOME=$0
[ "x$(readlink $0)" != "x" ] && JWS_HOME=$(readlink -f $0)
JWS_HOME=$(cd $(dirname $JWS_HOME);pwd)
cd ${JWS_HOME} >/dev/null 2>&1

export LANG="zh_CN.UTF-8"
export LD_LIBRARY_PATH=${JWS_HOME}/runtime/lib:$LD_LIBRARY_PATH
export PATH=${JWS_HOME}/runtime/bin:$PATH
export MONO_EXTERNAL_ENCODINGS="gbk:gb18030:gb2312:utf8"

exec ${JWS_HOME}/jwss JwsAspd "$@"
