source: general/prog/jdk/compiled-j2sdk-inst.xml@ 37e8bccd

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 37e8bccd was 37e8bccd, checked in by Mark Hymers <markh@…>, 19 years ago

change to using the two ffile-root and hfile-root entities

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

  • Property mode set to 100644
File size: 2.4 KB
Line 
1<sect2>
2<title>Installation of j2sdk</title>
3
4<para>To install j2sdk, you need to download the following files into
5your source directory:</para>
6<screen>From the download location (registration required)
7j2sdk-&cj2sdk-version;-src-scsl.zip
8j2sdk-&cj2sdk-version;-motif-linux-i386.zip
9j2sdk-&cj2sdk-version;-mozilla_headers-unix.zip
10From <ulink url="&ffile-root;"/>
11j2sdk-gcc31.patch</screen>
12
13<para>You should be in the java directory under your source
14directory. Verifiy that environment is set as described in the
15configuration section of the binary installation. If not:</para>
16
17<screen><userinput>export JAVA_HOME=$PWD/j2sdk&j2sdk-version;
18export PATH=$PATH:$JAVA_HOME/bin</userinput></screen>
19
20<para>Unzip and set the install of j2sdk by running the following commands:</para>
21
22<para><screen><userinput>for i in ../j2sdk-1_4_0-*.zip; do unzip $i; done &amp;&amp;
23patch -Np1 -i ../j2sdk-gcc31.patch &amp;&amp;
24export SRC=$PWD &amp;&amp;
25export ALT_BOOTDIR="$JAVA_HOME" &amp;&amp;
26export ALT_MOTIF_DIR=$SRC &amp;&amp;
27export ALT_MOZILLA_PATH=$SRC &amp;&amp;
28export ALT_DEVTOOLS_PATH="/usr/bin" &amp;&amp;
29export MILESTONE="blfscompiled" &amp;&amp;
30export BUILD_NUMBER=`date +%s` &amp;&amp;
31export DEV_ONLY=true &amp;&amp;
32export OTHER_LDFLAGS="-lpthread" &amp;&amp;
33unset JAVA_HOME &amp;&amp;
34unset CLASSPATH &amp;&amp;
35export OTHER_CFLAGS=${CFLAGS} &amp;&amp;
36export OTHER_CXXFLAGS=${CXXFLAGS} &amp;&amp;
37unset CFLAGS &amp;&amp;
38unset CXXFLAGS</userinput></screen></para>
39
40<para>Make will not find cpio unless it is in the
41<filename>/usr</filename> directory. Create this link with the following
42command:</para>
43
44<para><screen><userinput>ln -s /usr/bin/cpio /bin/cpio</userinput></screen></para>
45
46<para>Make and Install j2sdk with the following commands:</para>
47
48<para><screen><userinput>cd $SRC/control/make &amp;&amp;
49make &amp;&amp;
50cd $SRC/control/build/linux-i386 &amp;&amp;
51mkdir -p /opt/java &amp;&amp;
52cp -a j2sdk-image /opt/java/j2sdk-&cj2sdk-version; &amp;&amp;
53cd /opt/java &amp;&amp;
54ln -s j2sdk-&cj2sdk-version; j2sdk</userinput></screen></para>
55
56<para>Test the installation with the following commands:</para>
57
58<para><screen><userinput>export JAVA_HOME=/opt/java/j2sdk &amp;&amp;
59$JAVA_HOME/jre/bin/java -version</userinput></screen></para>
60
61<para>If you get a version line, a description of the runtime
62environment and a desrciption of the client VM (virtual machine), you are ready
63to go.</para>
64</sect2>
65
Note: See TracBrowser for help on using the repository browser.