PATH
, CLASSPATH
and LD_LIBRARY_PATH
The CLASSPATH
environment
variable tells the Java virtual machine where to find the class libraries,
such as the jdmktk.jar file.
The PATH
environment variable
specifies the location of executable files, for example, the proxygen tool and the mibgen compiler.
The LD_LIBRARY_PATH
environment
variable specifies the location of native libraries, for example, the libstat.so kernel statistics library.
The tools provided in the Java Dynamic Management Kit and the programs that you compile and run rely on the values in these variables. Modify these environment variables according to your Java version, as shown in Table 1-2.
Table 1-2 Environment Variables for the Solaris Operating Environment
Environment Variable |
Add |
---|---|
|
installDir/SUNWjdmk/jdmk4.0/1.1/lib/jdmkrt.jar: installDir/SUNWjdmk/jdmk4.0/1.1/lib/jdmktk.jar: installDir/SUNWjdmk/jdmk4.0/1.1/lib/collections.jar |
or |
installDir/SUNWjdmk/jdmk4.0/1.2/lib/jdmkrt.jar: installDir/SUNWjdmk/jdmk4.0/1.2/lib/jdmktk.jar |
|
installDir/SUNWjdmk/jdmk4.0/1.1/bin |
or |
installDir/SUNWjdmk/jdmk4.0/1.2/bin |
|
NativeLibraryPath |