home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 March
/
PCWorld_2001-03_cd.bin
/
Software
/
Komercni
/
VAgeJava
/
ivj35
/
setup
/
IDE.Cab
/
F8414_runnit
< prev
next >
Wrap
Text File
|
2000-07-30
|
953b
|
37 lines
#!/bin/sh
#
# %% %%
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
SWING_CLASSES=.:${SWING_JARS}
if [ -z "$CLASSPATH" ] ; then
CLASSPATH="${SWING_CLASSES}":${JAVA_HOME}/lib/classes.zip
else
CLASSPATH="${SWING_CLASSES}:$CLASSPATH"
fi
CMD="${JAVA_HOME}/bin/java -classpath ${CLASSPATH} Notepad"
echo ${CMD}
${CMD}