source: general/prog/jdk/j2sdk-inst.xml@ 0a9287a

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

added motif fix for j2sdk

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

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