Changeset 1bf950c for general/prog/jdk/j2sdk-inst.xml
- Timestamp:
- 01/30/2003 08:04:11 AM (21 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v1_0, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- a40092c
- Parents:
- 860ca0e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/jdk/j2sdk-inst.xml
r860ca0e r1bf950c 2 2 <title>Installation of j2sdk</title> 3 3 4 <para>Before installing j2sdk, you need to 5 download <filename>libstdc++-libc6.1-1.so.2.bz2</filename> 6 from <ulink url="&ffile-root;"/> and decompress it 7 to your source directory.</para> 4 <para>Both versions will be installed in parallel. You may choose to keep either 5 or both.</para> 8 6 9 <para>Install j2sdk by running the following commands:</para>7 <para>Install the binary version of the jdk by running the following commands:</para> 10 8 11 <para><screen><userinput>mkdir java && 12 mv j2sdk*.bin java && 13 cd java && 14 chmod 711 j2sdk*.bin && 15 ./j2sdk*.bin && 16 mv j2sdk*.bin .. && 17 cp ../libstdc++-libc6.1-1.so.2 j2sdk&j2sdk-version;/jre/lib/i386</userinput></screen></para> 9 <para><screen><userinput> 10 VERSION=&j2sdk-bin-version && 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> 18 21 19 <para>T est the installation with the following commands:</para>22 <para>The binary version is now installed.</para> 20 23 21 <para> <screen><userinput>export JAVA_HOME=$PWD/j2sdk&j2sdk-version; &&22 j2sdk&j2sdk-version;/jre/bin/java -version</userinput></screen></para>24 <para>If you don't want to compile the source, skip ahead to the configuration 25 section.</para> 23 26 24 <para> If you get a version line, a description of the runtime25 environment and a desrciption of the client VM (virtual machine), you are ready 26 to go.</para>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> 27 30 28 <para>If you are not going to compile java from scratch, move the java 29 tree to <filename>/opt</filename>:</para> 31 <para>Unzip and patch the source:</para> 30 32 31 <para><screen><userinput>mv j2sdk&j2sdk-version; /opt/java</userinput></screen></para> 33 <para><screen><userinput> 34 VERSION=&j2sdk-src-version && 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> 71 32 72 </sect2> 33 73
Note:
See TracChangeset
for help on using the changeset viewer.