mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-05 16:07:23 +08:00
bdcf1a4eaa
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@105 af4574ff-66df-0310-9fd7-8a98e5e911e0
32 lines
1.1 KiB
XML
32 lines
1.1 KiB
XML
<sect2>
|
|
<title>Installation of j2sdk</title>
|
|
|
|
<para>Before installing j2sdk, you need to download <filename>libstdc++-libc6.1-1.so.2.bz2</filename> from <ulink url="&file-root;"/> and decompress it
|
|
to your source directory.</para>
|
|
|
|
<para>Install j2sdk by running the following commands:</para>
|
|
|
|
<para><screen><userinput>mkdir java &&
|
|
mv j2sdk*.bin java &&
|
|
cd java &&
|
|
chmod 711 j2sdk*.bin &&
|
|
./j2sdk*.bin &&
|
|
mv j2sdk*.bin .. &&
|
|
cp ../libstdc++-libc6.1-1.so.2 j2sdk&j2sdk-version;/jre/lib/i386</userinput></screen></para>
|
|
|
|
<para>Test the installation with the following commands:</para>
|
|
|
|
<para><screen><userinput>export JAVA_HOME=$PWD/j2sdk&j2sdk-version; &&
|
|
j2sdk&j2sdk-version;/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>
|
|
|
|
<para>If you are not going to compile java from scratch, move the java
|
|
tree to <filename>/opt</filename>:</para>
|
|
|
|
<para><screen><userinput>mv j2sdk&j2sdk-version; /opt/java</userinput></screen></para>
|
|
</sect2>
|
|
|