source: general/prog/jdk/j2sdk-inst.xml@ 1ea79a1

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 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 1ea79a1 was 1ea79a1, checked in by Bruce Dubbs <bdubbs@…>, 20 years ago

Typos and punctuation

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

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