[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
|
---|
| 5 | or both.</para>
|
---|
[74c1100] | 6 |
|
---|
[1bf950c] | 7 | <para>Install the binary version of the jdk by running the following commands:</para>
|
---|
[74c1100] | 8 |
|
---|
[1bf950c] | 9 | <para><screen><userinput>
|
---|
[a40092c] | 10 | VERSION=&j2sdk-bin-version; &&
|
---|
[1bf950c] | 11 | MV=`echo $VERSION | cut -d "_" -f 1,1` &&
|
---|
| 12 | V=`echo ${VERSION} | sed -e "s/\./_/g"` &&
|
---|
| 13 | T=`grep -a tail j2sdk-${V}-linux-i?86.bin | cut -f 2 -d " "` &&
|
---|
| 14 | tail $T j2sdk-${V}-linux-i?86.bin > install.sfx.$$ &&
|
---|
| 15 | chmod +x install.sfx.$$ &&
|
---|
| 16 | ./install.sfx.$$ &&
|
---|
| 17 | cd j2sdk${VERSION} &&
|
---|
| 18 | install -d /opt/j2sdk/j2sdk-precompiled-${MV} &&
|
---|
| 19 | mv * /opt/j2sdk/j2sdk-precompiled-${MV}
|
---|
| 20 | </userinput></screen></para>
|
---|
[74c1100] | 21 |
|
---|
[1bf950c] | 22 | <para>The binary version is now installed.</para>
|
---|
[74c1100] | 23 |
|
---|
[1bf950c] | 24 | <para>If you don't want to compile the source, skip ahead to the configuration
|
---|
| 25 | section.</para>
|
---|
[74c1100] | 26 |
|
---|
[1bf950c] | 27 | <para>Add the recently compiled JDK to the path.</para>
|
---|
| 28 | <screen><userinput>export JAVA_HOME=/opt/j2sdk/j2sdk-precompiled-${MV} &&
|
---|
| 29 | export PATH=$PATH:${JAVA_HOME}/bin</userinput></screen>
|
---|
[74c1100] | 30 |
|
---|
[1bf950c] | 31 | <para>Unzip and patch the source:</para>
|
---|
| 32 |
|
---|
| 33 | <para><screen><userinput>
|
---|
[a40092c] | 34 | VERSION=&j2sdk-src-version; &&
|
---|
[1bf950c] | 35 | V=`echo $VERSION | sed -e "s/\./_/g"` &&
|
---|
| 36 | unzip j2sdk-${V}-src-scsl.zip &&
|
---|
| 37 | unzip j2sdk-${V}-mozilla_headers-unix.zip &&
|
---|
| 38 | patch -Np1 -i j2sdk-${VERSION}-fix-intl-files.patch &&
|
---|
| 39 | patch -Np1 -i j2sdk-${VERSION}-link-missing-libs.patch &&
|
---|
| 40 | patch -Np1 -i j2sdk-${VERSION}-remove-fixed-paths.patch &&
|
---|
| 41 | patch -Np1 -i j2sdk-${VERSION}-syntax-fixes.patch &&
|
---|
| 42 | patch -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>
|
---|
| 47 | export ALT_BOOTDIR="$JAVA_HOME" &&
|
---|
| 48 | unset JAVA_HOME &&
|
---|
| 49 | unset CLASSPATH &&
|
---|
| 50 | unset CFLAGS &&
|
---|
| 51 | unset CXXFLAGS &&
|
---|
| 52 | unset LDFLAGS &&
|
---|
| 53 | export ALT_DEVTOOLS_PATH="/usr/bin" &&
|
---|
| 54 | export BUILD_NUMBER="blfs-`date +%s`" &&
|
---|
| 55 | export DEV_ONLY=true &&
|
---|
| 56 | export ALT_MOZILLA_PATH=$PWD &&
|
---|
| 57 | export INSANE=true &&
|
---|
| 58 | export MAKE_VERBOSE=true &&
|
---|
| 59 | export 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>
|
---|
| 65 | cd control/make &&
|
---|
| 66 | make &&
|
---|
| 67 | cd ../.. &&
|
---|
| 68 | cd control/build/linux-i?86 &&
|
---|
| 69 | cp -a j2sdk-image /opt/java/j2sdk-&j2sdk-src-version; &&
|
---|
| 70 | </userinput></screen></para>
|
---|
[74c1100] | 71 |
|
---|
| 72 | </sect2>
|
---|
| 73 |
|
---|