source: general/prog/jdk/j2sdk-inst.xml@ 6e43f28f

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_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 6e43f28f was ce2d956, checked in by Tushar Teredesai <tushar@…>, 21 years ago

Patches reorganization - Part IV

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

  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[74c1100]1<sect2>
[06aea651]2<title>Installation of <application>J2SDK</application></title>
[74c1100]3
[06aea651]4<para>Both versions will be installed in parallel. You may choose to keep
5either or both.</para>
[74c1100]6
[06aea651]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>
[74c1100]10
[06aea651]11<screen><userinput><command>VERSION=&j2sdk-bin-version; &amp;&amp;
[1bf950c]12MV=`echo $VERSION | cut -d "_" -f 1,1` &amp;&amp;
13V=`echo ${VERSION} | sed -e "s/\./_/g"` &amp;&amp;
[5496648]14chmod +x j2sdk-${V}-linux-i?86.bin &amp;&amp;
15./j2sdk-${V}-linux-i?86.bin &amp;&amp;
[1bf950c]16cd j2sdk${VERSION} &amp;&amp;
17install -d /opt/j2sdk/j2sdk-precompiled-${MV} &amp;&amp;
[06aea651]18mv * /opt/j2sdk/j2sdk-precompiled-${MV}</command></userinput></screen>
[74c1100]19
[1bf950c]20<para>The binary version is now installed.</para>
[74c1100]21
[ce2d956]22<para>If you don't want to compile the source or are not in a postition to download the source
23owing to license restrictions, skip ahead to the configuration
[1bf950c]24section.</para>
[74c1100]25
[06aea651]26<para>Add the recently compiled <acronym>JDK</acronym> to the path.</para>
27<screen><userinput><command>export JAVA_HOME=/opt/j2sdk/j2sdk-precompiled-${MV} &amp;&amp;
28export PATH=$PATH:${JAVA_HOME}/bin</command></userinput></screen>
[74c1100]29
[1bf950c]30<para>Unzip and patch the source:</para>
31
[06aea651]32<screen><userinput><command>VERSION=&j2sdk-src-version; &amp;&amp;
[1bf950c]33V=`echo $VERSION | sed -e "s/\./_/g"` &amp;&amp;
34unzip j2sdk-${V}-src-scsl.zip &amp;&amp;
35unzip j2sdk-${V}-mozilla_headers-unix.zip &amp;&amp;
[5496648]36patch -Np1 -i j2sdk-${VERSION}-gcc33-1.patch &amp;&amp;
[1bf950c]37patch -Np1 -i j2sdk-${VERSION}-fix-intl-files.patch &amp;&amp;
38patch -Np1 -i j2sdk-${VERSION}-link-missing-libs.patch &amp;&amp;
39patch -Np1 -i j2sdk-${VERSION}-remove-fixed-paths.patch &amp;&amp;
40patch -Np1 -i j2sdk-${VERSION}-syntax-fixes.patch &amp;&amp;
[ce2d956]41patch -Np1 -i j2sdk-${VERSION}-motif-mkmsgcat.patch &amp;&amp;
[06aea651]42patch -Np1 -i j2sdk-${VERSION}-use-included-motif.patch</command></userinput></screen>
[1bf950c]43
[2be0e0d]44<para>Set some variables which affect the build:</para>
[06aea651]45<screen><userinput><command>export ALT_BOOTDIR="$JAVA_HOME" &amp;&amp;
[1bf950c]46unset JAVA_HOME &amp;&amp;
[b02f257]47unset CLASSPATH
48unset CFLAGS
49unset CXXFLAGS
50unset LDFLAGS
[1bf950c]51export ALT_DEVTOOLS_PATH="/usr/bin" &amp;&amp;
52export BUILD_NUMBER="blfs-`date +%s`" &amp;&amp;
53export DEV_ONLY=true &amp;&amp;
54export ALT_MOZILLA_PATH=$PWD &amp;&amp;
55export INSANE=true &amp;&amp;
56export MAKE_VERBOSE=true &amp;&amp;
[06aea651]57export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts</command></userinput></screen>
[1bf950c]58
[06aea651]59<para>Additionally, if you would like to make in parallel, add the following
60(adjust <envar>MAKE_PARALLEL</envar> to your liking):</para>
61<screen><userinput><command>export HOTSPOT_BUILD_JOBS=$MAKE_PARALLEL</command></userinput></screen>
[c4f1401]62
[ce2d956]63<para>If the included <application>Motif</application> doesn't build properly, the
64error is noticed much later in the build.
65A solution is to build the <application>Motif</application>
66library before compiling the <application>J2SDK</application>.</para>
[0a9287a]67
[06aea651]68<screen><userinput><command>cd motif/lib/Xm &amp;&amp;
[ce2d956]69make &amp;&amp;
[06aea651]70cd ../../..</command></userinput></screen>
[0a9287a]71
[06aea651]72<para>Make and Install <application>J2SDK</application> with the following
73commands. There will be a lot of messages about missing files that look like
74errors. As long as the build doesn't stop, the messages are harmless, so ignore
75them.</para>
[1bf950c]76
[06aea651]77<screen><userinput><command>cd control/make &amp;&amp;
[1bf950c]78make &amp;&amp;
79cd ../.. &amp;&amp;
80cd control/build/linux-i?86 &amp;&amp;
[06aea651]81cp -a j2sdk-image /opt/j2sdk/j2sdk-&j2sdk-src-version;</command></userinput></screen>
[74c1100]82
83</sect2>
84
Note: See TracBrowser for help on using the repository browser.