2002-08-10 10:42:59 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of j2sdk</title>
|
|
|
|
|
|
|
|
<para>To install j2sdk, you need to download the following files into
|
|
|
|
your source directory:</para>
|
|
|
|
<screen>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
|
2002-08-17 23:24:33 +08:00
|
|
|
From <ulink url="&file-root;"/>
|
2002-08-10 10:42:59 +08:00
|
|
|
j2sdk-gcc31.patch</screen>
|
|
|
|
|
|
|
|
<para>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:</para>
|
|
|
|
|
|
|
|
<screen><userinput>export JAVA_HOME=$PWD/j2sdk&j2sdk-version;
|
|
|
|
export PATH=$PATH:$JAVA_HOME/bin</userinput></screen>
|
|
|
|
|
|
|
|
<para>Unzip and set the install of j2sdk by running the following commands:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>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</userinput></screen></para>
|
|
|
|
|
2002-08-17 06:37:37 +08:00
|
|
|
<para>Make will not find cpio unless it is in the
|
|
|
|
<filename>/usr</filename> directory. Create this link with the following
|
|
|
|
command:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>ln -s /usr/bin/cpio /bin/cpio</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Make and Install j2sdk with the following commands:</para>
|
2002-08-10 10:42:59 +08:00
|
|
|
|
|
|
|
<para><screen><userinput>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</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Test the installation with the following commands:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>export JAVA_HOME=/opt/java/j2sdk &&
|
|
|
|
$JAVA_HOME/jre/bin/java -version</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>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.</para>
|
|
|
|
</sect2>
|
|
|
|
|