Installation of j2sdk
To install j2sdk, you need to download the following files into
your source directory:
From the download location (registration required)
j2sdk-&cj2sdk-version;-src-scsl.zip
j2sdk-&cj2sdk-version;-motif-linux-i386.zip
j2sdk-&cj2sdk-version;-mozilla_headers-unix.zip
From
j2sdk-gcc31.patch
You should be in the java directory under your source
directory. Verifiy that environment is set as described in the
configuration section of the binary installation. If not:
export JAVA_HOME=$PWD/j2sdk&j2sdk-version;
export PATH=$PATH:$JAVA_HOME/bin
Unzip and set the install of j2sdk by running the following commands:
for i in ../j2sdk-1_4_0-*.zip; do unzip $i; done &&
patch -Np1 -i ../j2sdk-gcc31.patch &&
export SRC=$PWD &&
export ALT_BOOTDIR="$JAVA_HOME" &&
export ALT_MOTIF_DIR=$SRC &&
export ALT_MOZILLA_PATH=$SRC &&
export ALT_DEVTOOLS_PATH="/usr/bin" &&
export MILESTONE="blfscompiled" &&
export BUILD_NUMBER=`date +%s` &&
export DEV_ONLY=true &&
export OTHER_LDFLAGS="-lpthread" &&
unset JAVA_HOME &&
unset CLASSPATH &&
export OTHER_CFLAGS=${CFLAGS} &&
export OTHER_CXXFLAGS=${CXXFLAGS} &&
unset CFLAGS &&
unset CXXFLAGS
Make and Install j2sdk with the following commands:
cd $SRC/control/make &&
make &&
cd $SRC/control/build/linux-i386 &&
mkdir -p /opt/java &&
cp -a j2sdk-image /opt/java/j2sdk-&cj2sdk-version; &&
cd /opt/java &&
ln -s j2sdk-&cj2sdk-version; j2sdk
Test the installation with the following commands:
export JAVA_HOME=/opt/java/j2sdk &&
$JAVA_HOME/jre/bin/java -version
If you get a version line, a description of the runtime
environment and a desrciption of the client VM (virtual machine), you are ready
to go.