home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 March
/
PCWorld_2001-03_cd.bin
/
Software
/
Komercni
/
VAgeJava
/
ivj35
/
setup
/
IDE.Cab
/
F9096_runnit
< prev
next >
Wrap
Text File
|
2000-07-30
|
1KB
|
42 lines
#!/bin/sh
#
# @(#)runnit 1.3 97/10/20
if [ -z "${JAVA_HOME}" ] ; then
if [ -d /usr/local/java/jdk1.1.6/solaris ] ; then
JAVA_HOME=/usr/local/java/jdk1.1.6/solaris
CLASSPATH=.:/usr/local/java/jdk1.1.6/solaris/lib/classes.zip
export CLASSPATH
else
echo "JAVA_HOME environment variable not set." 1>&2
exit 1
fi
fi
# Compute an absolute pathname here because Class.getResource()
# fails if $CLASSPATH contains "../".
if [ -d ../../1.1_demo ] ; then
SWING_HOME=`(cd ../../1.1_classes; pwd)`
SWING_JARS=${SWING_HOME}
else
SWING_HOME=`(cd ../../; pwd)`
SWING_JARS=${SWING_HOME}/swing.jar:${SWING_HOME}/motif.jar:${SWING_HOME}/multi.jar:${SWING_HOME}/windows.jar
fi
if [ -z "${JDBCHOME}" ] ; then
echo "JDBCHOME environment variable not set." 1>&2
exit 1
fi
SWING_CLASSES=.:classes:${SWING_JARS}:${BUILD_JARS}
if [ -z "$CLASSPATH" ] ; then
CLASSPATH="${JDBCHOME}":"${SWING_CLASSES}":${JAVA_HOME}/lib/classes.zip
else
CLASSPATH="${JDBCHOME}":"${SWING_CLASSES}:$CLASSPATH"
fi
CMD="${JAVA_HOME}/bin/java -classpath ${CLASSPATH} TableExample2"
echo ${CMD}
${CMD}