3 JX_OPTS=-Djxplorer.config="$HOME/.JXplorer"
4 JX_JAVADIR=/usr/share/java/JXplorer
5 JX_DATADIR=/usr/share/JXplorer
7 [ -r /etc/sysconfig/jxplorer ] && . /etc/sysconfig/jxplorer
9 JAVA_BIN="$JAVA_HOME/bin/java"
11 if ! [ -d "$HOME/.JXplorer" ]; then
12 mkdir "$HOME/.JXplorer"
13 cp /etc/JXplorer/connections.txt "$HOME/.JXplorer/connections.txt"
14 ln -s /etc/JXplorer/log4j.xml "$HOME/.JXplorer/log4j.xml"
15 ln -s /etc/JXplorer/jxconfig.txt "$HOME/.JXplorer/jxconfig.txt"
18 echo "starting JXplorer..."
22 CLASSPATH=`build-classpath junit jhall`
23 CLASSPATH="$CLASSPATH:$JX_JAVADIR/jxplorer.jar:$JX_JAVADIR/help.jar"
25 if [ "$1" = "console" ] ; then
26 "$JAVA_BIN" $JX_OPTS com.ca.directory.jxplorer.JXplorer
28 if [ "$?" != "0" ]; then
32 echo "Use \"$0 console\" if you want logging to the console"
33 "$JAVA_BIN" $JX_OPTS com.ca.directory.jxplorer.JXplorer >/dev/null 2>&1
35 if [ "$?" != "0" ]; then
41 if [ $FAIL = 0 ]; then
47 =========================
48 JXplorer failed to start
49 =========================
50 Please ensure that you have appropriate "xhost" access to the machine you are
51 running this from. Make sure the DISPLAY environment variable is set correctly.
52 Otherwise, ask your Unix Systems Administrator for more information on running
53 X Windows applications.
55 If you require more information run "$0 console" and check the