Changeset 1bf950c for general/prog/jdk


Ignore:
Timestamp:
01/30/2003 08:04:11 AM (21 years ago)
Author:
Tushar Teredesai <tushar@…>
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
Message:

update to j2sdk-1.4.1

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

Location:
general/prog/jdk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • general/prog/jdk/j2sdk-config.xml

    r860ca0e r1bf950c  
    22<title>Configuring j2sdk</title>
    33
    4 <sect3><title>Config files</title>
    5 <para><userinput>/etc/profile, ~/.bash_profile, ~/.profile, ~/.bashrc</userinput></para>
     4<sect3><title>Configuration Information</title>
     5
     6<para>We have two Java 2 SDK's installed in /opt/j2sdk. Decide on which one you
     7would like to use as the default. For example if you decide to use the source
     8compiled j2sdk, do the following:</para>
     9
     10<para><screen><userinput>ln -nsf j2sdk-&j2sdk-src-version; /opt/j2sdk/j2sdk
     11</userinput></screen></para>
     12
     13<para>Add the following lines to your shell startup file (e.g. /etc/profile).
     14</para>
     15
     16<para><screen><userinput>export JAVA_HOME=/opt/j2sdk/j2sdk
     17export PATH=$PATH:$JAVA_HOME/bin</userinput></screen></para>
     18
     19<para>Add $JAVA_HOME/man to your MANPATH variable or to /etc/man.conf</para>
     20
     21<para>The java plugin is in the directory <userinput>$JAVA_HOME/jre/plugin/i?86/ns610/</userinput>.
     22Make a symbolic link to the file in that directory from your plugins directory.
     23</para>
     24
    625</sect3>
    726
    8 <sect3><title>Configuration Information</title>
    9 
    10 <para>Add the following lines to the appropriate file listed
    11 above.</para>
    12 
    13 <para><screen><userinput>export JAVA_HOME=&lt;path to&gt;/j2sdk&j2sdk-version;
    14 export PATH=$PATH:$JAVA_HOME/bin</userinput></screen></para>
    15 
    16 <para>You now have a java development environment installed on your
    17 machine, however it is compiled with a different library than the other
    18 programs which creates incompatabilities.  Specifically, the plug-in
    19 will not work with browsers compiled on your machine.</para>
    20 
    21 <para>There is a solution if you are willing to accept the SUN COMMUNITY
    22 SOURCE LICENSE for the Java 2 Platform Standard Edition.  Note that you
    23 are not allowed to distribute the resulting JDK/JRE and you also cannot
    24 use the resulting JDK to compile programs for distribution unless they
    25 pass Sun's compatiblity tests. In short don't use the resulting JDK
    26 except for your personal use.</para>
    27 </sect3>
    2827</sect2>
    2928
  • general/prog/jdk/j2sdk-exp.xml

    r860ca0e r1bf950c  
    22<title>Command explanations</title>
    33
    4 <para><userinput>chmod 711 j2sdk*.bin :</userinput> Makes the downloaded bin file executible.</para>
     4<para><userinput>T=`grep...:</userinput> Determines the part where the tarfile begins in the self extracting archive.</para>
    55
    6 <para><userinput>cp ../libstdc++-libc6.1-1.so.2 j2sdk&j2sdk-version;/jre/lib/i386 :</userinput> Puts the linked gcc2 library where java can find it.</para>
     6<para><userinput>export ALT_BOOTDIR="$JAVA_HOME" :</userinput> This
     7var sets location of the bootstrap JDK.
     8</para>
     9
     10<para><userinput>export ALT_MOZILLA_PATH=$PWD :</userinput> This sets the
     11variable that points to where you unzipped the mozilla headers.</para>
     12
     13<para><userinput>export ALT_DEVTOOLS_PATH="/usr/bin" :</userinput> This
     14changes the location where the build finds the needed executables.
     15</para>
     16
     17<para><userinput>export BUILD_NUMBER="blfs-`date +%s`" :</userinput> This will
     18help you identify this compiled version of the runtime environment and
     19virtual machine by appending this information to the version in the
     20output to "java -version".</para>
     21
     22<para><userinput>export DEV_ONLY=true :</userinput> This command
     23eliminates compiling the documentation and eliminates a dependency for
     24rpm. </para>
     25
     26<para><userinput>unset JAVA_HOME :</userinput> This clears the JAVA_HOME
     27variable and prevents misdirection during compile.</para>
     28
     29<para><userinput>unset CLASSPATH :</userinput> This clears the CLASSPATH
     30variable and prevents misdirection during compile.</para>
     31
     32<para><userinput>unset CFLAGS... :</userinput> These flags cause miscompilation
     33of the build. Never set these.
     34</para>
     35
     36<para><userinput>export INSANE=true:</userinput> Unless you specify that you
     37are insane the build will not proceed. The certified platform for the build is
     38Redhat 6.1. The above variable ensures that all the errors related to
     39compiling on a non-certifiedi platform will be converted to warnings.</para>
     40
     41<para><userinput>export MAKE_VERBOSE=true:</userinput> Allows the current
     42compilation command to be displayed on the console.</para>
     43
     44<para><userinput>export ALT_CACERTS_FILE...: </userinput> Specifies the certificate
     45file to use.</para>
    746
    847</sect2>
  • general/prog/jdk/j2sdk-inst.xml

    r860ca0e r1bf950c  
    22<title>Installation of j2sdk</title>
    33
    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
     5or both.</para>
    86
    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>
    108
    11 <para><screen><userinput>mkdir java &amp;&amp;
    12 mv j2sdk*.bin java &amp;&amp;
    13 cd java &amp;&amp;
    14 chmod 711 j2sdk*.bin &amp;&amp;
    15 ./j2sdk*.bin &amp;&amp;
    16 mv j2sdk*.bin .. &amp;&amp;
    17 cp ../libstdc++-libc6.1-1.so.2 j2sdk&j2sdk-version;/jre/lib/i386</userinput></screen></para>
     9<para><screen><userinput>
     10VERSION=&j2sdk-bin-version &amp;&amp;
     11MV=`echo $VERSION | cut -d "_" -f 1,1` &amp;&amp;
     12V=`echo ${VERSION} | sed -e "s/\./_/g"` &amp;&amp;
     13T=`grep -a tail j2sdk-${V}-linux-i?86.bin | cut -f 2 -d " "` &amp;&amp;
     14tail $T j2sdk-${V}-linux-i?86.bin > install.sfx.$$ &amp;&amp;
     15chmod +x install.sfx.$$ &amp;&amp;
     16./install.sfx.$$ &amp;&amp;
     17cd j2sdk${VERSION} &amp;&amp;
     18install -d /opt/j2sdk/j2sdk-precompiled-${MV} &amp;&amp;
     19mv * /opt/j2sdk/j2sdk-precompiled-${MV}
     20</userinput></screen></para>
    1821
    19 <para>Test the installation with the following commands:</para>
     22<para>The binary version is now installed.</para>
    2023
    21 <para><screen><userinput>export JAVA_HOME=$PWD/j2sdk&j2sdk-version; &amp;&amp;
    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
     25section.</para>
    2326
    24 <para>If you get a version line, a description of the runtime
    25 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} &amp;&amp;
     29export PATH=$PATH:${JAVA_HOME}/bin</userinput></screen>
    2730
    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>
    3032
    31 <para><screen><userinput>mv j2sdk&j2sdk-version; /opt/java</userinput></screen></para>
     33<para><screen><userinput>
     34VERSION=&j2sdk-src-version &amp;&amp;
     35V=`echo $VERSION | sed -e "s/\./_/g"` &amp;&amp;
     36unzip j2sdk-${V}-src-scsl.zip &amp;&amp;
     37unzip j2sdk-${V}-mozilla_headers-unix.zip &amp;&amp;
     38patch -Np1 -i j2sdk-${VERSION}-fix-intl-files.patch &amp;&amp;
     39patch -Np1 -i j2sdk-${VERSION}-link-missing-libs.patch &amp;&amp;
     40patch -Np1 -i j2sdk-${VERSION}-remove-fixed-paths.patch &amp;&amp;
     41patch -Np1 -i j2sdk-${VERSION}-syntax-fixes.patch &amp;&amp;
     42patch -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>
     47export ALT_BOOTDIR="$JAVA_HOME" &amp;&amp;
     48unset JAVA_HOME &amp;&amp;
     49unset CLASSPATH &amp;&amp;
     50unset CFLAGS &amp;&amp;
     51unset CXXFLAGS &amp;&amp;
     52unset LDFLAGS &amp;&amp;
     53export ALT_DEVTOOLS_PATH="/usr/bin" &amp;&amp;
     54export BUILD_NUMBER="blfs-`date +%s`" &amp;&amp;
     55export DEV_ONLY=true &amp;&amp;
     56export ALT_MOZILLA_PATH=$PWD &amp;&amp;
     57export INSANE=true &amp;&amp;
     58export MAKE_VERBOSE=true &amp;&amp;
     59export 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>
     65cd control/make &amp;&amp;
     66make &amp;&amp;
     67cd ../.. &amp;&amp;
     68cd control/build/linux-i?86 &amp;&amp;
     69cp -a j2sdk-image /opt/java/j2sdk-&j2sdk-src-version; &amp;&amp;
     70</userinput></screen></para>
     71
    3272</sect2>
    3373
  • general/prog/jdk/j2sdk-intro.xml

    r860ca0e r1bf950c  
    11<sect2>
    2 <title>Introduction to j2sdk (binary version)</title>
     2<title>Introduction to j2sdk</title>
    33
    44<screen>Download location (HTTP):       <ulink url="&j2sdk-download-http;"/>
    5 Download location (FTP):        <ulink url="&j2sdk-download-ftp;"/>
    6 Version used:                   &j2sdk-version;
    7 Package size:                   &j2sdk-size;
    8 Estimated Disk space required:  &j2sdk-buildsize;</screen>
     5Version used (binary):       &j2sdk-bin-version;
     6Version used (source):       &j2sdk-src-version;
     7Package size (binary):       &j2sdk-bin-size;
     8Package size (source):       &j2sdk-src-size;
     9Estimated Disk space required:  &j2sdk-src-buildsize;</screen>
    910
    10 <para>The j2sdk package contains Sun's java development environment -
    11 precompiled. This is needed to fulfull the circular dependency when we
    12 compile java.</para>
     11<para>The j2sdk package contains Sun's java development environment.
     12This is useful for developing java programs and provides the runtime
     13environment necessary to run java programs.  It also includes a plug-in
     14for browsers so that they can be java aware.</para>
    1315
     16<para>
     17The JDK comes in two flavors, a precompiled binary and a source package. The
     18precompiled binary is linked against gcc2 libraries. Due to the incompatibilities
     19between gcc2 and gcc3, the precompiled java plugin causes problems when gcc3
     20compiled packages (for example mozilla) try to load the java plugin.
     21The source package requires registration at the Sun developer site and accepting
     22the Sun Community Source License.
     23The source code cannot be downloaded from some countries, so for users
     24from those countries, the binary may be the only option.
     25</para>
     26
     27<para>Even if you plan on compiling the jdk source, you will need to download
     28the binary version to bootstrap the jdk build.
     29Follow the above link to download both source and binary packages. When
     30downloading the source also download the mozilla headers package available at
     31the same location.
     32</para>
     33
     34<para>Download the patches for j2sdk source from <ulink url="&ffile-root;"/>
     35</para>
     36
     37<para>If you have difficulties in building the jdk, check out the javafromscratch
     38hint for detailed information at <ulink url="http://www.linuxfromscratch.org/~tushar/"/>.
     39</para>
     40
     41<screen>j2sdk depends on:
     42<xref linkend="xfree86"/>, <xref linkend="zip"/>, <xref linkend="unzip"/>, <xref linkend="cpio"/>, <xref linkend="tcsh"/>, gcc2-lib</screen>
    1443
    1544</sect2>
  • general/prog/jdk/j2sdk.ent

    r860ca0e r1bf950c  
    55<!ENTITY j2sdk-desc SYSTEM "j2sdk-desc.xml">
    66<!ENTITY j2sdk-config SYSTEM "j2sdk-config.xml">
    7 <!ENTITY j2sdk-buildsize "82 MB">
    8 <!ENTITY j2sdk-version "1.4.0_01">
     7<!ENTITY j2sdk-bin-size "59 MB">
     8<!ENTITY j2sdk-src-buildsize "1186 MB">
     9<!ENTITY j2sdk-src-size "77 MB">
     10<!ENTITY j2sdk-bin-version "1.4.1_01">
     11<!ENTITY j2sdk-src-version "1.4.1">
    912<!ENTITY j2sdk-download-http "http://freshmeat.net/projects/sunjdk">
    10 <!ENTITY j2sdk-download-ftp "">
    11 <!ENTITY j2sdk-size "39.8 MB">
    12 <!ENTITY cj2sdk-intro SYSTEM "compiled-j2sdk-intro.xml">
    13 <!ENTITY cj2sdk-inst SYSTEM "compiled-j2sdk-inst.xml">
    14 <!ENTITY cj2sdk-exp SYSTEM "compiled-j2sdk-exp.xml">
    15 <!ENTITY cj2sdk-config SYSTEM "compiled-j2sdk-config.xml">
    16 <!ENTITY cj2sdk-buildsize "1186 MB">
    17 <!ENTITY cj2sdk-version "1.4.0">
    18 <!ENTITY cj2sdk-download-http "http://wwws.sun.com/software/java2/download.html">
    19 <!ENTITY cj2sdk-download-ftp "">
    20 <!ENTITY cj2sdk-size "52.2 MB">
    2113
    2214
Note: See TracChangeset for help on using the changeset viewer.