  JWS for LinuX
  Mike Gaertner <mg@genyosha.in-chemnitz.de>
  Version 1.2-en 08.09.1996
  F <nishio@nexus.rim.or.jp>
  28 December 1996

  ̕ł Linux  Solaris/intel p Java WorkShop (JWS) g
  @ɂĐĂ܂B

  @ɂďĂ܂Bił JWS ̃CXg[@Ƃ͎菇
  ኱قȂ܂̂ŒӂĂBiłɊւĂ͖󒍂̌`ŕ̍
  ɊȒPɏqׂĂ܂B)

  ______________________________________________________________________

  ڎ

  1. ܂
  2. KvȂ
  3. CXg[
  4. ӎ
  5. t^
  6. : i JWS ̃CXg[

  ______________________________________________________________________

  1.  ܂

  ߋ̊ԂɁC PC Gł Java ɊւLfڂCJava
  ̃AvbgfvO̓ CD t^ɂĂ܂B
  CD ̒̂ɂ "Java Workshop" ̃ł^Ă܂BJava
  Workshop (JWS)  (Java ŏꂽ) Java JŁCGfB^Cfob
  KC|[gtHI/vWFNg}l[W܂ł܂B

  ́̕C JWS  Linux ɃCXg[@̎łBCD 
  ܂܂镶ɂ Win NTCWindows 95CSun  Solaris SparcC Solaris
  Inter ɂĂ݂̂Ă܂B

  Linux ̏ꍇ̕lbgŌ邱ƂłȂ̂ŁCł
   mini-HOWTO Ƃɂ܂B

  2.  KvȂ

  Linux ł Java ɊւʓIȏKvƂȂ JDK ̃CXg[
  @ɂĂ Java-HOWTO ǂłB mini-HOWTO ł͈ȉ̂
  ̂ɎĂ̂Ƃ܂B

  1. JDK o[W 1.0 ȏ̃CXg[

  2. X11R6 (XFree86 3.1.2 ȏ)

  3. JWS ̓ CD

  3.  CXg[

  ܂CJWS ǂɃCXg[邩߂Ȃ΂Ȃ܂BJWS ͔z
  zpbP[Ẅꕔł͂܂̂ŁC"/usr/local"̊KwɃCXg[
  ̂悢ł傤B

  ϐ "JWS_HOME" ȂCXg[ɑI񂾃fBNgw
  ɐݒ肵CVF̋Nt@Cɓ܂B

  Ⴆ΁C "bash" gĂȂ΁CNt@C "/etc/profile" 
  " /.bash_profile" ŁCKvȍڂ͎̒ʂłB

  export JWS_HOME="/usr/local/JWS"
  export JAVA_HOME="/usr/local/lib/java"

  2Ԗڂ̍ڂ java ̃CXg[ĂfBNgw܂B
  ܂ݒ肳ĂȂ΁CNt@CɒǉĂB

   java ֌W CD ł JWS  workshop ƂÕTufBNg
  ɔ[߂Ă܂BSunSolaris/i386 p JWS ł inteltar.z Ƃ
  t@CTĂB

  ̃t@C͈kꂽA[JCuŁĈ悤ɂĉ𓀂܂B

  tar  -xvzf inteltar.z  -C ${JWS_HOME}

  ̃R}hs ${JWS_HOME} ȉɎ̃TufBNgł
  ܂B

  classes, examples, intel-S2, lib, solaris

  ȉ̃R}h͉𓀂 JWS ]ȃt@C菜CɃCX
  g[ς java oCiւ̕KvȃN܂B(Ⴆ΃R}h
  CŃJbg&y[Xg)̂܂ܓ͂邱Ƃł܂B

  ln  -s ${JWS_HOME}/classes  ${JAVA_HOME}/lib/classes
  rm  ${JWS_HOME}/intel-S2/bin/i386/*
  rmdir ${JWS_HOME}/intel-S2/bin/i386
  ln -s ${JAVA_HOME}/bin/i586 ${JWS_HOME}/intel-S2/bin/i586
  ln -s ${JAVA_HOME}/bin/i486 ${JWS_HOME}/intel-S2/bin/i486
  ln -s ${JAVA_HOME}/bin/i386 ${JWS_HOME}/intel-S2/bin/i386

  JWS NVFXNvg ${JWS_HOME}/intel-S2/bin/jws łB
  ̃t@C͑傫ύX̂ŁC mini-HOWTO ̍ŌɓYtĂ
  B

   ${JWS_HOME}/solaris/bin/javac 8sڂ̂悤ɕύX܂B

  if [ -x ${_SS_JDK_BIN}/bin/`/bin/uname -m`/javac ]

  ŏIłB

  ŌɈqgBJWS ŐVvWFNg
  ${JAVA_HOME}/lib/classes.zip ϐ "CLASSPATH" ɒǉȂ΂
  ܂B

  4.  ӎ

   mini-HOWTO (pւ)|sĂꂽ Winfried Truemper
  <truemper@ElFi.MI.Uni-Koeln.DE> Ɋӂ܂B

  5.  t^

  CꂽVFXNvg ${JWS_HOME}/intel-S2/bin/jws ͎̒ʂ
  B

  ---8<-----8<--- cut here ---8<-----8<----
  #!/bin/sh
  #
  # @(#)jws       1.64 96/05/02
  #
  # Copyright (c) 1994 Sun Microsystems, Inc. All Rights Reserved.
  #
  # Permission to use, copy, modify, and distribute this software
  # and its documentation for NON-COMMERCIAL purposes and without
  # fee is hereby granted provided that this copyright notice
  # appears in all copies. Please refer to the file "copyright.html"
  # for further important copyright and licensing information.
  #
  # SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
  # THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  # TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  # PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
  # ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
  # DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  #

  #
  # Determine JWS_HOME
  #
  # edit by Mike Gaertner 06.09.1996 mg@genyosha.in-chemnitz.de
  # Set environment-variable "JWS_HOME" and "JAVA_HOME" !
  #
  _SS_JDK_BIN=${JAVA_HOME}
  _SS_JWS_HOME=${JWS_HOME}
  #
  _SS_JDK_HOME=$_SS_JDK_BIN
  #
  RUNCLASSPATH="$_SS_JDK_BIN/lib/classes.zip:$_SS_JDK_BIN/lib/classes"
  #
  NCLASSPATH="$_SS_JDK_BIN/lib/classes"
  export LD_LIBRARY_PATH
  LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$J_HOME/lib/`arch`"

  if [ -z "$_SS_JWS_HOME" ] ; then
      _SS_JWS_HOME=`dirname $0`
      _SS_JWS_HOME=`cd $_SS_JWS_HOME/../.. ; pwd`
      echo "_SS_JWS_HOME is set to $_SS_JWS_HOME"
  fi

  if [ ! -d "$_SS_JWS_HOME" ] ; then
      echo "Invalid _SS_JWS_HOME: $_SS_JWS_HOME" 1>&2
      exit 1
  fi

  if [ ! -r "$_SS_JWS_HOME/lib/properties" ] ; then
      echo "Invalid _SS_JWS_HOME: $_SS_JWS_HOME/lib/properties" 1>&2
      exit 1
  fi

  # Since JDK executables are installed into JWS, _SS_JDK_BIN is set to
  # JWS/${VARIANT}/bin by default.  It might also point to a build or
  # archive area.
  if [ ! "${_SS_JDK_BIN}" ]
  then
    if [ ${_SS_JDK_HOME} ]
    then
      _SS_JDK_BIN=${_SS_JDK_HOME}
    else
      _SS_JDK_BIN=$_SS_JWS_HOME/${VARIANT}
    fi
  else
    # could be either an install JWS dir or JDK bin
    if [ -d ${_SS_JDK_BIN}/build ]
    then
      _SS_JDK_BIN=${_SS_JDK_BIN}/build
    elif [ -d ${_SS_JDK_BIN}/${VARIANT} ]
    then
      _SS_JDK_BIN=${_SS_JDK_BIN}/${VARIANT}
    fi
  fi

  # needs to be exported, because it is referenced by JWS builder
  export  _SS_JDK_BIN

  # assert: _SS_JDK_BIN points to the parent of lib
  if [ ! -d ${_SS_JDK_BIN}/bin ]
  then
    echo " By convention, _SS_JDK_BIN must have a bin subdirectory"
    echo " _SS_JDK_BIN:  ${_SS_JDK_BIN}"
    echo " ${_SS_JDK_BIN}/bin does not exits"
    exit
  fi

  # Given the root of a JDK tree, set _SS_JDK_HOME to the parent directory
  #       of bin,classes and lib
  #
  # There are three types of JDK directories.
  #       * build directories are identical to the JDK directory provide
  #               by JavaSoft.  No a stable area.  Iteam members are
  #               discouraged from relying on this area.
  #       * archive directories simply copy all content from the build
  #               directory that is to be shipped to the user.  On win32,
  #               redist is moved to bin.
  #       * installation directory - Since the contains of the JDK bin
  #               directories have been moved to JWS, there is no bin dir
  #               in the JDK tree.
  #   jsk, 4-15-96

  if [ ! "${_SS_JDK_HOME}" ]
  then
    _SS_JDK_HOME=$_SS_JWS_HOME/../JDK
  else
    if [ -d ${_SS_JDK_HOME}/build  ]
    then
      export _SS_JDK_HOME=${_SS_JDK_HOME}/build
    fi
  fi

  # assert: _SS_JDK_HOME points to the parent of classes
  if [ ! -d ${_SS_JDK_HOME}/lib/classes ]
  then
    echo " By convention, _SS_JDK_HOME must have a classes subdirectory"
    echo " _SS_JDK_HOME:  ${_SS_JDK_HOME}"
    echo " ${_SS_JDK_HOME}/lib does not exits"
    exit
  fi

  # assert: _SS_JDK_HOME points to the parent of lib
  if [ ! -d ${_SS_JDK_HOME}/lib ]
  then
    echo " By convention, _SS_JDK_HOME must have a lib subdirectory"
    echo " _SS_JDK_HOME:  ${_SS_JDK_HOME}"
    echo " ${_SS_JDK_HOME}/lib does not exits"
    exit
  fi

  if [ `/bin/uname -m` = "i386" ] ; then
    ARCH='i386'
  elif [  `/bin/uname -m` = "i486" ] ; then
    ARCH='i486'
  elif [  `/bin/uname -m` = "i586" ] ; then
    ARCH='i586'
  fi

  #
  # Set Paths
  #
  #
  # Create .jws directory
  #

  # backwards compatibility
  if [ -d "$HOME/.jde" ] ; then
      if [ ! -d "$HOME/.jws" ] ; then
          echo "Moving $HOME/.jde to $HOME/.jws"
          mv $HOME/.jde $HOME/.jws
      fi
  fi
  if [ ! -d "$HOME/.jws" ] ; then
      echo "Creating $HOME/.jws directory"
      mkdir -p $HOME/.jws
  fi

  #
  # Parse arguments
  #  the -debug option is assumed to have a value associated with it.
  #  transform '-debug <file>' to '-debug -Djws.startup.props=<file>'

  prog=java
  debug_opts="";
  opts="";
  while [ $# -ne 0 ]; do
     case "$1" in
      -debug) prog=java_g; debug_opts="-debug"; debug_prop="-Ddebug.browser=yes" ;;
      -*) opts="$opts $1" ;;
      *)  args="$args $1" ;;
     esac
     shift;
  done

  #
  # Select a java interpreter
  #

  if [ -x "${_SS_JDK_BIN}/bin/$prog" ] ; then
      JAVA="${_SS_JDK_BIN}/bin/$prog"
  else
      JAVA=$prog
  fi

  #
  # Add WWW_HOME option
  #
  if [ ! -z "$WWW_HOME" ] ; then
      opts="$opts -Dwww.home=$WWW_HOME"
  fi

  JWSLOG=${JWSLOG:-$HOME/.jws/weblog}
  export JWSLOG

  exec $JAVA $debug_opts -classpath $RUNCLASSPATH \
  -Djws.home=$_SS_JWS_HOME -Dhotjava.home=$_SS_JWS_HOME \
  -Djws.bin=$JWS_BIN -Djdk.bin=${_SS_JDK_BIN}/bin \
  -Djws.ut.user=$USER "-Djws.ut.platform=\"`uname -srm`\"" \
  -Djws.build.classes=$NCLASSPATH $debug_prop $opts sun.jws.Main $args

  ---8<-----8<--- cut here ---8<-----8<----

  6.  : i JWS ̃CXg[

  ił JWS ̃CXg[ɂĊȒPɐGĂ܂B

  1. CD-ROM  jw-intel-S2.tar.Z CXg[fBNgɓWJ
     B

     tar -xvzf jw-intel-S2.tar.Z -C /usr/local

  Ƃ /usr/local/JWS ł܂B/usr/local/JDK ƂfBNg
  ł܂C͕svȂ̂ō폜Ă܂B

  2. http://www.blackdown.org/java-linux/
     <http://www.blackdown.org/java-linux/> JWS/intel-S2/bin/jws 
     uXNvgC class.zip 肷B

  3. ϐ JAVA_HOME ݒ肵ĂȂ΁CJWS/intel-S2/bin/jws  28
     sڂ̊ϐ J_HOME ̊ɍ킹Đݒ肷B

     #
     # Determine JWS_HOME
     #
     J_HOME=/usr/local/java

  4. JWS NB

     % /usr/local/JWS/intel-S2/bin/jws

