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

10.0 10.1 11.0 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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb v1_0 v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 1bf950c was 1bf950c, checked in by Tushar Teredesai <tushar@…>, 19 years ago

update to j2sdk-1.4.1

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

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