version 1.12, 2006/11/08 20:31:49
|
version 1.14, 2007/05/16 06:41:05
|
|
|
export JAVA_SDK=/usr/java/j2sdk1.4.2_08 | export JAVA_SDK=/usr/java/j2sdk1.4.2_08 |
export JAVA_SDKINC=${JAVA_SDK}/include | export JAVA_SDKINC=${JAVA_SDK}/include |
export PEGASUS_JAVA_ARCH=i386 | export PEGASUS_JAVA_ARCH=i386 |
|
export PEGASUS_JAVA_TYPE=client |
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${JAVA_SDK}/jre/lib/${PEGASUS_JAVA_ARCH}/server:${JAVA_SDK}/jre/lib/${PEGASUS_JAVA_ARCH}/native_threads:${JAVA_SDK}/jre/lib/${PEGASUS_JAVA_ARCH} | export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${JAVA_SDK}/jre/lib/${PEGASUS_JAVA_ARCH}/server:${JAVA_SDK}/jre/lib/${PEGASUS_JAVA_ARCH}/native_threads:${JAVA_SDK}/jre/lib/${PEGASUS_JAVA_ARCH} |
export PATH=${JAVA_SDK}/bin/:${PEGASUS_HOME}/bin:${PATH} | export PATH=${JAVA_SDK}/bin/:${PEGASUS_HOME}/bin:${PATH} |
export CLASSPATH=${CLASSPATH}:${PEGASUS_HOME}/lib/JMPIImpl.jar | export CLASSPATH=${CLASSPATH}:${PEGASUS_HOME}/lib/JMPIImpl.jar |
|
|
export PEGASUS_JVM=gcj Gnu's jvm (ex: gcj (GCC) 4.1.1 20061011 (Red Hat 4.1.1-30)) | export PEGASUS_JVM=gcj Gnu's jvm (ex: gcj (GCC) 4.1.1 20061011 (Red Hat 4.1.1-30)) |
export PEGASUS_JVM=sun Sun's jvm (ex: j2sdk1.4.2_07) | export PEGASUS_JVM=sun Sun's jvm (ex: j2sdk1.4.2_07) |
export PEGASUS_JVM=ibm IBM's jvm (ex: IBMJava2-142) | export PEGASUS_JVM=ibm IBM's jvm (ex: IBMJava2-142) |
|
export PEGASUS_JVM=ibm64 IBM's jvm for 64 bit machine. |
export PEGASUS_JVM=bea Suse's IBM jvm (ex: BEAJava2-1.4.2) | export PEGASUS_JVM=bea Suse's IBM jvm (ex: BEAJava2-1.4.2) |
So, pick one and export that variable to the environment. For example, | So, pick one and export that variable to the environment. For example, |
export PEGASUS_JVM=sun | export PEGASUS_JVM=sun |
|
|
The fifth variable defines the Java architecture of the JMV | The fifth variable defines the Java architecture of the JMV |
export PEGASUS_JAVA_ARCH=i386 | export PEGASUS_JAVA_ARCH=i386 |
| |
The sixth may be necessary to tell the linker where to load the JRE libraries. |
The sixth variable defines which version of the jvm library to link to (the |
|
client or the server). |
|
export PEGASUS_JAVA_TYPE=client |
|
|
|
As a test to make sure your environment variables are correct |
|
ls ${JAVA_SDK}/jre/lib/${PEGASUS_JAVA_ARCH}/${PEGASUS_JAVA_TYPE} |
|
should show you libjvm.so for Sun's JRE. |
|
|
|
The seventh may be necessary to tell the linker where to load the JRE libraries. |
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${JAVA_SDK}/jre/lib/${PEGASUS_JAVA_ARCH}/server:${JAVA_SDK}/jre/lib/${PEGASUS_JAVA_ARCH}/native_threads:${JAVA_SDK}/jre/lib/${PEGASUS_JAVA_ARCH} | export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${JAVA_SDK}/jre/lib/${PEGASUS_JAVA_ARCH}/server:${JAVA_SDK}/jre/lib/${PEGASUS_JAVA_ARCH}/native_threads:${JAVA_SDK}/jre/lib/${PEGASUS_JAVA_ARCH} |
| |
The seventh one may be necessary to get the JVM's executable files into the PATH. |
The eighth one may be necessary to get the JVM's executable files into the PATH. |
export PATH=${JAVA_SDK}/bin/:${PEGASUS_HOME}/bin:${PATH} | export PATH=${JAVA_SDK}/bin/:${PEGASUS_HOME}/bin:${PATH} |
| |
The eight tells the JRE to include JMPI's Java classes. |
The nineth tells the JRE to include JMPI's Java classes. |
export CLASSPATH=${CLASSPATH}:${PEGASUS_HOME}/lib/JMPIImpl.jar | export CLASSPATH=${CLASSPATH}:${PEGASUS_HOME}/lib/JMPIImpl.jar |
| |
There are a couple of optional environment variables to determine how the JRE is initialized. These are | There are a couple of optional environment variables to determine how the JRE is initialized. These are |