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 >
Text File  |  2000-07-30  |  1KB  |  42 lines

  1. #!/bin/sh
  2. #
  3. # @(#)runnit    1.3 97/10/20
  4.  
  5. if [ -z "${JAVA_HOME}" ] ; then
  6.     if [ -d /usr/local/java/jdk1.1.6/solaris ] ; then
  7.         JAVA_HOME=/usr/local/java/jdk1.1.6/solaris
  8.     CLASSPATH=.:/usr/local/java/jdk1.1.6/solaris/lib/classes.zip
  9.     export CLASSPATH
  10.     else
  11.         echo "JAVA_HOME environment variable not set." 1>&2 
  12.         exit 1
  13.     fi
  14. fi
  15.  
  16. # Compute an absolute pathname here because Class.getResource()
  17. # fails if $CLASSPATH contains "../".
  18. if [ -d ../../1.1_demo ] ; then
  19.     SWING_HOME=`(cd ../../1.1_classes; pwd)`
  20.     SWING_JARS=${SWING_HOME}
  21. else
  22.     SWING_HOME=`(cd ../../; pwd)`
  23.     SWING_JARS=${SWING_HOME}/swing.jar:${SWING_HOME}/motif.jar:${SWING_HOME}/multi.jar:${SWING_HOME}/windows.jar
  24. fi
  25.  
  26. if [  -z "${JDBCHOME}" ] ; then
  27.     echo "JDBCHOME environment variable not set." 1>&2 
  28.     exit 1
  29. fi
  30.  
  31. SWING_CLASSES=.:classes:${SWING_JARS}:${BUILD_JARS}
  32. if [ -z "$CLASSPATH" ] ; then
  33.     CLASSPATH="${JDBCHOME}":"${SWING_CLASSES}":${JAVA_HOME}/lib/classes.zip
  34. else
  35.     CLASSPATH="${JDBCHOME}":"${SWING_CLASSES}:$CLASSPATH"
  36. fi
  37.  
  38. CMD="${JAVA_HOME}/bin/java -classpath ${CLASSPATH} TableExample2"
  39.  
  40. echo ${CMD}
  41. ${CMD}
  42.