home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 May / PCW596.iso / wtest / clico / sunsoft / java / solaris.lzh / SOLARIS.TAZ / SOLARIS / hotjava / bin / .java_wrapper next >
Encoding:
Korn shell script  |  1995-05-19  |  1.3 KB  |  45 lines

  1. #! /bin/ksh
  2. #
  3. #     @(#)java_wrapper.sh    1.10 95/05/11
  4. #
  5. #=================================================================
  6. #    STOP - THIS SCRIPT AND HOTJAVA WILL NOT RUN AT ALL UNDER
  7. #    SUNOS4.X, AKA SOLARIS 1.X.  
  8. #
  9. #    The problem is not with the shell used the run this script -
  10. #    the binary software will simply not run at all under Sunos
  11. #    4.x.  I am sorry if you missed earlier warnings and have
  12. #    downloading this software expecting it to run on SUNOS 4.x.  A
  13. #    port to the SUNOS 4.x platform is underway and will be
  14. #    publically released as soon as we have it available.  For the
  15. #    latest information see our home page at http://java.sun.com/
  16. #=================================================================
  17.  
  18. # Set up default variable values if not supplied by the user.
  19.  
  20. export HOTJAVA_HOME
  21. PRG=`whence $0` >/dev/null 2>&1
  22. HOTJAVA_HOME=`dirname $PRG`/..
  23.  
  24. export CLASSPATH
  25. if [ -z "$CLASSPATH" ]
  26. then
  27.     CLASSPATH="."
  28. fi
  29.  
  30. CLASSPATH="$CLASSPATH:$HOTJAVA_HOME/classes"
  31.  
  32. export LD_LIBRARY_PATH
  33. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOTJAVA_HOME/lib"
  34.       
  35. progname=`basename $0`
  36. prog=$HOTJAVA_HOME/bin/`/usr/ucb/arch`/${progname}
  37.  
  38. if [ -f $prog ]
  39. then
  40.     eval exec $prog $opts '"$@"'
  41. else
  42.     echo >&2 "$progname was not found in ${prog}"
  43.     exit 1
  44. fi
  45.