Set up environment
- Setting up your PATH
- make sure that the "bin" directory from the Java 2 release is in
your PATH, Setting your PATH correctly will ensure that all of the java
binaries, including the compiler and RMI stubs generators, are
accessible.
- For Windows:
set PATH=c:\jdk1.2\bin;%PATH%
- For Solaris: (depend on shell)
setenv PATH=/usr/java1.1/bin:${PATH}
- Setting up your CLASSPATH
- There are three primary JAR files you’ll need for development. The
first is "jini-core.jar", which contains the "core" interfaces that are
part of the Jini specification. The second is "jini-ext.jar", which
contains some "non-standardized" interfaces that are useful for building
Jini application. Finally, "sun-util.jar" contains some Sun-provided
utility classes that will come in handy in the code examples.
- For Windows:
set CLASSPATH=c:\jini1_0\lib\jini-core.jar;
c:\jini1_0\lib\jini-ext.jar;
c:\jini1_0\lib\sun-util.jar;
%CLASSPATH%
- For Solaris:
setenv CLASSPATH=
$HOME/files/jini1_0/lib/jini-core.jar:
$HOME/files/jini1_0/lib/jini-ext.jar:
$HOME/files/jini1_0/lib/sun-util.jar:
${CLASSPATH}