Ignore:
Timestamp:
09/26/2003 03:51:46 PM (21 years ago)
Author:
Larry Lawrence <larry@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
2082ebf6
Parents:
df5b04d
Message:

chapter 12

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1204 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/jdk/j2sdk-inst.xml

    rdf5b04d r06aea651  
    11<sect2>
    2 <title>Installation of j2sdk</title>
     2<title>Installation of <application>J2SDK</application></title>
    33
    4 <para>Both versions will be installed in parallel. You may choose to keep either
    5 or both.</para>
     4<para>Both versions will be installed in parallel. You may choose to keep
     5either or both.</para>
    66
    7 <para>Installation of the precompiled JDK is easy, change the executable bit for
    8 the downloaded file, change to the directory where you want it installed
    9 and execute the downloaded file.</para>
     7<para>Installation of the precompiled <acronym>JDK</acronym> is easy, change
     8the executable bit for the downloaded file, change to the directory where you
     9want it installed and execute the downloaded file.</para>
    1010
    11 <para><screen><userinput>VERSION=&j2sdk-bin-version; &amp;&amp;
     11<screen><userinput><command>VERSION=&j2sdk-bin-version; &amp;&amp;
    1212MV=`echo $VERSION | cut -d "_" -f 1,1` &amp;&amp;
    1313V=`echo ${VERSION} | sed -e "s/\./_/g"` &amp;&amp;
     
    1616cd j2sdk${VERSION} &amp;&amp;
    1717install -d /opt/j2sdk/j2sdk-precompiled-${MV} &amp;&amp;
    18 mv * /opt/j2sdk/j2sdk-precompiled-${MV}</userinput></screen></para>
     18mv * /opt/j2sdk/j2sdk-precompiled-${MV}</command></userinput></screen>
    1919
    2020<para>The binary version is now installed.</para>
     
    2323section.</para>
    2424
    25 <para>Add the recently compiled JDK to the path.</para>
    26 <screen><userinput>export JAVA_HOME=/opt/j2sdk/j2sdk-precompiled-${MV} &amp;&amp;
    27 export PATH=$PATH:${JAVA_HOME}/bin</userinput></screen>
     25<para>Add the recently compiled <acronym>JDK</acronym> to the path.</para>
     26<screen><userinput><command>export JAVA_HOME=/opt/j2sdk/j2sdk-precompiled-${MV} &amp;&amp;
     27export PATH=$PATH:${JAVA_HOME}/bin</command></userinput></screen>
    2828
    2929<para>Unzip and patch the source:</para>
    3030
    31 <para><screen><userinput>VERSION=&j2sdk-src-version; &amp;&amp;
     31<screen><userinput><command>VERSION=&j2sdk-src-version; &amp;&amp;
    3232V=`echo $VERSION | sed -e "s/\./_/g"` &amp;&amp;
    3333unzip j2sdk-${V}-src-scsl.zip &amp;&amp;
     
    3838patch -Np1 -i j2sdk-${VERSION}-remove-fixed-paths.patch &amp;&amp;
    3939patch -Np1 -i j2sdk-${VERSION}-syntax-fixes.patch &amp;&amp;
    40 patch -Np1 -i j2sdk-${VERSION}-use-included-motif.patch</userinput></screen></para>
     40patch -Np1 -i j2sdk-${VERSION}-use-included-motif.patch</command></userinput></screen>
    4141
    4242<para>Set some vars which affect the build:</para>
    43 <para><screen><userinput>export ALT_BOOTDIR="$JAVA_HOME" &amp;&amp;
     43<screen><userinput><command>export ALT_BOOTDIR="$JAVA_HOME" &amp;&amp;
    4444unset JAVA_HOME &amp;&amp;
    4545unset CLASSPATH
     
    5353export INSANE=true &amp;&amp;
    5454export MAKE_VERBOSE=true &amp;&amp;
    55 export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts</userinput></screen></para>
     55export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts</command></userinput></screen>
    5656
    57 <para>Additionally, if you would like to make in parallel, add the following (adjust
    58 <envar>MAKE_PARALLEL</envar> to your liking):</para>
    59 <para><screen><userinput>export HOTSPOT_BUILD_JOBS=$MAKE_PARALLEL</userinput></screen></para>
     57<para>Additionally, if you would like to make in parallel, add the following
     58(adjust <envar>MAKE_PARALLEL</envar> to your liking):</para>
     59<screen><userinput><command>export HOTSPOT_BUILD_JOBS=$MAKE_PARALLEL</command></userinput></screen>
    6060
    61 <para>The included motif doesn't build properly with the current glibc/xfree86.
    62 A solution is to build the motif library before compiling the j2sdk. Note that
    63 the motif build fails during the first run owing to some syntax error. The
    64 brute force and easiest solution is to rerun the make command:)</para>
     61<para>The included <application>Motif</application> doesn't build properly with
     62the current <application>Glibc</application>/<application>XFree86
     63</application>. A solution is to build the <application>Motif</application>
     64library before compiling the <application>J2SDK</application>. Note that
     65the <application>Motif</application> build fails during the first run owing to
     66some syntax error. The brute force and easiest solution is to rerun the
     67<command>make</command> command:)</para>
    6568
    66 <para><screen><userinput>cd motif/lib/Xm &amp;&amp;
     69<screen><userinput><command>cd motif/lib/Xm &amp;&amp;
    6770make || make &amp;&amp;
    68 cd ../../..</userinput></screen></para>
     71cd ../../..</command></userinput></screen>
    6972
    70 <para>Make and Install j2sdk with the following commands. There will be a lot of
    71 messages about missing files that look like errors. As long as the build doesn't
    72 stop, the messages are harmless, so ignore them.</para>
     73<para>Make and Install <application>J2SDK</application> with the following
     74commands. There will be a lot of messages about missing files that look like
     75errors. As long as the build doesn't stop, the messages are harmless, so ignore
     76them.</para>
    7377
    74 <para><screen><userinput>cd control/make &amp;&amp;
     78<screen><userinput><command>cd control/make &amp;&amp;
    7579make &amp;&amp;
    7680cd ../.. &amp;&amp;
    7781cd control/build/linux-i?86 &amp;&amp;
    78 cp -a j2sdk-image /opt/j2sdk/j2sdk-&j2sdk-src-version;</userinput></screen></para>
     82cp -a j2sdk-image /opt/j2sdk/j2sdk-&j2sdk-src-version;</command></userinput></screen>
    7983
    8084</sect2>
Note: See TracChangeset for help on using the changeset viewer.