1 | <sect2>
|
---|
2 | <title>Installation of j2sdk</title>
|
---|
3 |
|
---|
4 | <para>To install j2sdk, you need to download the following files into
|
---|
5 | your source directory:</para>
|
---|
6 | <screen>From the download location (registration required)
|
---|
7 | j2sdk-&cj2sdk-version;-src-scsl.zip
|
---|
8 | j2sdk-&cj2sdk-version;-motif-linux-i386.zip
|
---|
9 | j2sdk-&cj2sdk-version;-mozilla_headers-unix.zip
|
---|
10 | From <ulink url="ftp://ftp.linuxfromscratch.org/blfs-patch"/>
|
---|
11 | j2sdk-gcc31.patch</screen>
|
---|
12 |
|
---|
13 | <para>You should be in the java directory under your source
|
---|
14 | directory. Verifiy that environment is set as described in the
|
---|
15 | configuration section of the binary installation. If not:</para>
|
---|
16 |
|
---|
17 | <screen><userinput>export JAVA_HOME=$PWD/j2sdk&j2sdk-version;
|
---|
18 | export 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 &&
|
---|
23 | patch -Np1 -i ../j2sdk-gcc31.patch &&
|
---|
24 | export SRC=$PWD &&
|
---|
25 | export ALT_BOOTDIR="$JAVA_HOME" &&
|
---|
26 | export ALT_MOTIF_DIR=$SRC &&
|
---|
27 | export ALT_MOZILLA_PATH=$SRC &&
|
---|
28 | export ALT_DEVTOOLS_PATH="/usr/bin" &&
|
---|
29 | export MILESTONE="blfscompiled" &&
|
---|
30 | export BUILD_NUMBER=`date +%s` &&
|
---|
31 | export DEV_ONLY=true &&
|
---|
32 | export OTHER_LDFLAGS="-lpthread" &&
|
---|
33 | unset JAVA_HOME &&
|
---|
34 | unset CLASSPATH &&
|
---|
35 | export OTHER_CFLAGS=${CFLAGS} &&
|
---|
36 | export OTHER_CXXFLAGS=${CXXFLAGS} &&
|
---|
37 | unset CFLAGS &&
|
---|
38 | unset CXXFLAGS</userinput></screen></para>
|
---|
39 |
|
---|
40 | <para> Make and Install j2sdk with the following commands:</para>
|
---|
41 |
|
---|
42 | <para><screen><userinput>cd $SRC/control/make &&
|
---|
43 | make &&
|
---|
44 | cd $SRC/control/build/linux-i386 &&
|
---|
45 | mkdir -p /opt/java &&
|
---|
46 | cp -a j2sdk-image /opt/java/j2sdk-&cj2sdk-version; &&
|
---|
47 | cd /opt/java &&
|
---|
48 | ln -s j2sdk-&cj2sdk-version; j2sdk</userinput></screen></para>
|
---|
49 |
|
---|
50 | <para>Test the installation with the following commands:</para>
|
---|
51 |
|
---|
52 | <para><screen><userinput>export JAVA_HOME=/opt/java/j2sdk &&
|
---|
53 | $JAVA_HOME/jre/bin/java -version</userinput></screen></para>
|
---|
54 |
|
---|
55 | <para>If you get a version line, a description of the runtime
|
---|
56 | environment and a desrciption of the client VM (virtual machine), you are ready
|
---|
57 | to go.</para>
|
---|
58 | </sect2>
|
---|
59 |
|
---|