home *** CD-ROM | disk | FTP | other *** search
- Installing the RMI package on a Win32 system
- ==============================================
-
- *******************************************************************
- *** ***
- *** Remember: to run this release, you need to have JDK 1.0.2. ***
- *** Earlier releases will fail. ***
- *** ***
- *******************************************************************
-
- Installing the RMI package
- --------------------------
-
- (1) Download the zip file(s) to your local machine
-
- The RMI zip file is called "rmi-prebeta1-win32-x86.zip".
-
- If you also want to run the version of the HotJava Browser modified to
- be compatible with RMI and Object Serialization, you need to download
- its zip file as well: "hotjava-1_0prebeta1rmi-win32-x86.zip".
-
- NOTE: The example commands below assume that you have downloaded the
- zip files to a directory on your local machine called "C:\downloads".
- If you are following these examples, replace this path with the actual
- location where you downloaded the zip files.
-
-
- (2) Install the zip file contents
-
- Create a directory where you want RMI to be installed, "cd" to it, and
- unzip the RMI zip file. For example, if you want to install RMI in the
- directory "C:\rmi", you might execute the following:
-
- C:\> mkdir \rmi (create the RMI directory)
- C:\> cd \rmi (make sure you are inside of it)
- C:\RMI> unzip C:\downloads\rmi-prebeta1-win32-x86.zip
-
- If you are installing HotJava as well, "cd" to where you want its
- directory to be installed. The HotJava zip file automatically creates
- everything in a single subdirectory, so you do not need to create it.
- For example, if you want to install HotJava in the directory "C:\HotJava",
- you might execute the following:
-
- C:\RMI> cd \ (make sure you are at root directory)
- C:\> unzip C:\downloads\hotjava-1_0prebeta1rmi-win32-z86.zip
-
-
- (3) Set environment variables for running RMI
-
- Because the Prebeta release of RMI is not installed in the JDK 1.0.2,
- it needs modification to three environment variables to function
- properly:
-
- (a) RMIHOME
-
- The RMIHOME variable must be set to the directory where you
- installed RMI. If you used the location in the example above,
- then it would need to be set as follows:
-
- C:\> set RMIHOME=C:\rmi
-
- (b) PATH
-
- Your system PATH variable must include the bin subdirectory
- of the RMI installation (i.e., %RMIHOME%\bin) so that the
- shared library for Object Serialization (OBJIO.DLL) and the
- RMI command line utilities (rmic, rmiregistry, and serialver)
- can be located. You can append the RMI bin directory to the
- current PATH as follows:
-
- C:\> set PATH=%RMIHOME%\bin;%PATH%
-
- (The %PATH% expression implies substitution of the current
- value of the PATH variable, thus appending the RMI bin
- directory to the beginning of the current PATH.)
-
- Note that since RMI requires JDK 1.0.2 as well, the bin
- directory for your JDK 1.0.2 installation must be in
- the PATH.
-
- If you are also installing HotJava as well, the bin
- directory for the JDK 1.0.2 *must* be in the PATH *before*
- the bin directory for HotJava. For example, if your
- JDK 1.0.2 is installed in the directory C:\java, you
- could set your PATH correctly as follows:
-
- C:\> set PATH=%RMIHOME%\bin;C:\java\bin;C:\HotJava\bin;%PATH%
-
- This is tedious to type in, so in this case you would surely
- want to put this all in a BAT script or change your default system
- PATH as described below.
-
- (c) CLASSPATH
-
- Finally, your CLASSPATH variable must include the file "rmi.zip"
- in the "lib" directory of the RMI installation. If CLASSPATH
- is not currently set, you could just set it to this as follows:
-
- C:\> set CLASSPATH=%RMIHOME%\lib\rmi.zip
-
- If your CLASSPATH already has other directory that you want to
- keep as well, you could append to it as follows:
-
- C:\> set CLASSPATH=%RMIHOME%\lib\rmi.zip;%CLASSPATH%
-
- Note that if your CLASSPATH explcitly refers to classes from
- version of the JDK older than 1.0.2, then the JDK 1.0.2's
- appletviewer or the RMI version of HotJava could crash.
- Remove these old classes from your CLASSPATH before using
- those programs.
-
- All these modifications to environment variables could be combined in
- a BAT script that you would run before working with RMI. For example,
- using the directory locations chosen above and including the HotJava
- installation, the script might be called "set-rmi-env.bat" and look
- something like this:
-
- @echo off
- echo Setting environment variables for working with RMI Prebeta...
- set RMIHOME=C:\rmi
- set PATH=C:\rmi\bin;C:\java\bin;C:\HotJava\bin;%PATH%
- set CLASSPATH=C:\rmi\lib\rmi.zip
-
- Most conveniently, you could put these commands in your AUTOEXEC.BAT
- file (Windows 95) or modify your default system or user environment
- variables (Windows NT) so that your environment would be ready to use
- RMI when you started up Windows 95 or logged in to Windows NT.
-
-
- To get started, try running our examples. For instructions see:
-
- rmi\examples\hello\README.txt
- rmi\examples\stock\README.txt
-
-
- Applets in a Browser
- --------------------
-
- The only browser that can run RMI applets with this release is the
- HotJava browser that is available from our site. It is identified as
- version "HotJava 1.0 preBeta1 (RMI)". When you install HotJava, you
- must be sure that your executable search path "PATH" has the bin
- directory for the JDK *before* the bin directory for HotJava, or the
- RMI utilities will fail (see above regarding PATH).
-
-
- Support
- -------
-
- Users of both RMI and object serialization can discuss issues and tips
- with other users via the mailing list rmi-users@java.sun.com. You can
- subscribe by sending an email message containing the line
-
- subscribe rmi-users
-
- to listserv@java.sun.com, and unsubscribe by sending a message
- containing the line
-
- unsubscribe rmi-users
-
- Support questions can be sent to rmi-support@java.sun.com.
-