[74c1100] | 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
|
---|
[b82f8bc] | 10 | From <ulink url="&file-root;"/>
|
---|
[74c1100] | 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 |
|
---|
[36f579f4] | 40 | <para>Make will not find cpio unless it is in the
|
---|
| 41 | <filename>/usr</filename> directory. Create this link with the following
|
---|
| 42 | command:</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>
|
---|
[74c1100] | 47 |
|
---|
| 48 | <para><screen><userinput>cd $SRC/control/make &&
|
---|
| 49 | make &&
|
---|
| 50 | cd $SRC/control/build/linux-i386 &&
|
---|
| 51 | mkdir -p /opt/java &&
|
---|
| 52 | cp -a j2sdk-image /opt/java/j2sdk-&cj2sdk-version; &&
|
---|
| 53 | cd /opt/java &&
|
---|
| 54 | ln -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 &&
|
---|
| 59 | $JAVA_HOME/jre/bin/java -version</userinput></screen></para>
|
---|
| 60 |
|
---|
| 61 | <para>If you get a version line, a description of the runtime
|
---|
| 62 | environment and a desrciption of the client VM (virtual machine), you are ready
|
---|
| 63 | to go.</para>
|
---|
| 64 | </sect2>
|
---|
| 65 |
|
---|