Added docs from cidero web site.
[learning-java-upnp.git] / cidero / SyncProxy.sh
blob73d3303c9d15161a4a31e7c6fa2f6323b6dfd7dd
1 #!/bin/sh
3 # Script to start up synchronous proxy server (UNIX)
6 # OS should be 'Linux', 'Darwin' (MacOSX), 'Solaris'
7 OS=`uname -s`
10 # Change this path to point to java 1.5 executable for system if 'java' not
11 # in path
13 if [ "$OS" = "Darwin" ]; then
15 # Use hardcoded path to Java 1.5 by default so Mac users don't have to
16 # switch default Java version to 1.5 (which installation of 1.5 does not do
17 # automatically)
18 JAVA=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/java
20 if [ ! -f $JAVA ]; then
21 echo "Java 1.5 does not appear to be installed in the expected location"
22 echo "'$JAVA'"
23 echo "Using default Java version on system"
24 JAVA=java
27 else
28 JAVA=java
31 # Change this to match full path of unzipped build if you want to execute
32 # script from outside this directory
33 INSTALL_DIR=`pwd`
34 echo "INSTALL_DIR = $INSTALL_DIR"
36 LIBDIR=$INSTALL_DIR/lib
37 export CLASSPATH=$LIBDIR/cidero-common.jar:$LIBDIR/xercesImpl.jar:$LIBDIR/xml-apis.jar:$INSTALL_DIR
39 $JAVA com.cidero.proxy.SyncProxy