Fri Jul 29, 2011 8:17 am by PhoenixNZ
er, nope. still something I'm doin wrong.
Edited
serviio-webui.sh and complete
sh is as follows:
- Code:
#!/bin/sh
### ====================================================================== ###
## ##
## Serviio WebUI Console ript ##
## ##
### ====================================================================== ###
DIRNAME=`dirname $0`
PROGNAME=`basename $0`
# OS specific support (must be 'true' or 'false').
cygwin=false; darwin=false; linux=false;
case "`uname`" in
CYGWIN*) cygwin=true ;;
Darwin*) darwin=true ;;
Linux) linux=true ;;
esac
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$SERVIIO_CONSOLE_HOME" ] &&
SERVIIO_CONSOLE_HOME=`cygpath --unix "$SERVIIO_CONSOLE_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
fi
# Setup SERVIIO_CONSOLE_HOME
if [ "x$SERVIIO_CONSOLE_HOME" = "x" ]; then
# get the full path (without any relative bits)
SERVIIO_CONSOLE_HOME=`cd $DIRNAME/..; pwd`
fi
export SERVIIO_CONSOLE_HOME
# Setup the JVM
if [ "x$JAVA" = "x" ]; then
if [ "x$JAVA_HOME" != "x" ]; then
JAVA="$JAVA_HOME/bin/java"
else
JAVA="java"
fi
fi
# Setup the classpath
SERVIIO_CONSOLE_CLASS_PATH="$SERVIIO_CONSOLE_HOME/lib/serviio-webclient-0.1.jar:$SERVIIO_CONSOLE_HOME/lib/log4j.jar:$SERVIIO_CONSOLE_HOME/lib/slf4j-api.jar:$SERVIIO_CONSOLE_HOME/lib/slf4j-log4j12.jar:$SERVIIO_CONSOLE_HOME/lib/jul-to-slf4j.jar:$SERVIIO_CONSOLE_HOME/lib/org.restlet.jar:$SERVIIO_CONSOLE_HOME/lib/freemarker.jar:$SERVIIO_CONSOLE_HOME/config"
# Setup Serviio specific properties
JAVA_OPTS="-Dserviio.home=$SERVIIO_CONSOLE_HOME -Djava.net.preferIPv4Stack=true"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
SERVIIO_CONSOLE_HOME=`cygpath --path --windows "$SERVIIO_CONSOLE_HOME"`
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
SERVIIO_CONSOLE_CLASS_PATH=`cygpath --path --windows "$SERVIIO_CONSOLE_CLASS_PATH"`
fi
# Execute the JVM in the foreground
"$JAVA" $JAVA_OPTS -classpath "$SERVIIO_CONSOLE_CLASS_PATH" org.serviio.restui.RestletProxy "$@"
Getting this error message now. Not sure if same as my previous post
- Code:
root@TowerTest:/boot/custom/serviio# ./bin/serviio-webui.sh &
[3] 1966
[2] Exit 1 ./bin/serviio-webui.sh
root@TowerTest:/boot/custom/serviio# Exception in thread "main" java.lang.NoClassDefFoundError: org/serviio/restui/RestletProxy
Caused by: java.lang.ClassNotFoundException: org.serviio.restui.RestletProxy
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: org.serviio.restui.RestletProxy. Program will exit.
[3]+ Exit 1 ./bin/serviio-webui.sh
root@TowerTest:/boot/custom/serviio#
Your thoughts may lighten my day. lol