Changeset cb61e3a8


Ignore:
Timestamp:
10/06/2005 05:07:22 AM (19 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.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, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
03ac97c2
Parents:
bed3771
Message:

Updated to JDK-1.5.0_04 (source build)

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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    rbed3771 rcb61e3a8  
    1 <!ENTITY day          "05">
     1<!ENTITY day          "06">
    22<!ENTITY month        "10">
    33<!ENTITY year         "2005">
     
    147147<!ENTITY guile-version                "1.6.7">
    148148<!ENTITY jdk-bin-version              "1.5.0_04">
    149 <!ENTITY jdk-src-version              "1.5.0">
     149<!ENTITY jdk-bin-string               "1_5_0_04">
     150<!ENTITY jdk-src-version              "1.5.0_04">
     151<!ENTITY jdk-src-string               "1_5_0_04">
    150152<!ENTITY librep-version               "0.17">
    151153<!ENTITY NASM-version                 "0.98.39">
  • general/prog/jdk.xml

    rbed3771 rcb61e3a8  
    55  %general-entities;
    66
    7   <!ENTITY jdk-download-source "http://java.sun.com/j2se/jrl_download.html">
     7  <!ENTITY jdk-download-source "https://tiger.dev.java.net/jdk_5_0_04.html">
    88  <!ENTITY jdk-download-binary "http://java.sun.com/j2se/1.5.0/download.jsp">
    99  <!ENTITY jdk-source-md5sum   "http://anduin.linuxfromscratch.org/sources/BLFS/SVN/I-K/JDK/jdk-&jdk-src-version;.md5sums">
    1010  <!ENTITY jdk-bin-md5sum      "42a98986e971c86192cc0075bb10afff">
    1111  <!ENTITY jdk-bin-size        "48.7 MB">
    12   <!ENTITY jdk-src-size        "65.7 MB (three .zip files)">
    13   <!ENTITY jdk-src-buildsize   "1444 MB">
    14   <!ENTITY jdk-time            "33.06 SBU">
     12  <!ENTITY jdk-src-size        "64.4 MB (three .jar files)">
     13  <!ENTITY jdk-src-buildsize   "1553 MB">
     14  <!ENTITY jdk-time            "29.05 SBU">
    1515]>
    1616
     
    3333
    3434    <para>The <application>JDK</application> package contains
    35     Sun's <application>Java</application> development environment. This is useful
    36     for developing <application>Java</application> programs and provides the
    37     runtime environment necessary to run <application>Java</application> programs.
    38     It also includes a plug-in for browsers so that they can be
     35    Sun's <application>Java</application> development environment. This is
     36    useful for developing <application>Java</application> programs and provides
     37    the runtime environment necessary to run <application>Java</application>
     38    programs.  It also includes a plug-in for browsers so that they can be
    3939    <application>Java</application> aware.</para>
    4040
    41     <para>The <application>JDK</application> comes in two flavors, a precompiled
    42     binary and a source package. Previously, the plugin included in the
    43     <application>JDK</application> binary package was unusable on LFS
    44     owing to incompatibilities with <application>GCC</application>-3 compiled browsers.
    45     This is not the case anymore.</para>
     41    <para>The <application>JDK</application> comes in two flavors, a
     42    precompiled binary and a source package. Previously, the plugin included
     43    in the <application>JDK</application> binary package was unusable on LFS
     44    owing to incompatibilities with <application>GCC</application>-3 compiled
     45    browsers.  This is not the case anymore.</para>
    4646
    4747    <para>In order to use the source code and patches, you must read and agree
    48     to the Sun <ulink url="http://java.sun.com/j2se/1.5.0/jrl_5.0-license.txt">
    49     Java Research License</ulink>. In addition, the source code cannot be
    50     downloaded from some countries, so for users in those countries, the binary
    51     is the only option.</para>
    52 
    53     <para>If you plan on compiling the <application>JDK</application> source, you
    54     will still need to download the binary version to bootstrap the
    55     <application>JDK</application> build.  You will need to download a total of four
    56     files to complete the source build:
    57     <filename>jdk-1_5_0_04-linux-i586.bin</filename>,
    58     <filename>jdk-1_5_0-src-jrl.zip</filename>,
    59     <filename>jdk-1_5_0-bin-jrl.zip</filename>,
    60     and <filename>jdk-1_5_0-mozilla_headers-unix.zip</filename>.</para>
     48    to the Sun <ulink url="http://www.java.net/jrl.csp">
     49    Java Research License</ulink> or optionally, the Sun
     50    <ulink url="http://java.net/jiul.csp">Java Internal Use License</ulink>.
     51    In addition, the source code cannot be downloaded from some countries, so
     52    for users in those countries, the binary is the only option.</para>
     53
     54    <para>If you plan on compiling the <application>JDK</application> source,
     55    you will still need to download the binary version to bootstrap the
     56    <application>JDK</application> build.  You will need to download a total
     57    of four files to complete the source build:
     58    <filename>jdk-&jdk-bin-string;-linux-i586.bin</filename>,
     59    <filename>jdk-&jdk-src-string;-fcs-src-b05-jrl-08_aug_2005.jar</filename>
     60    (or optionally the JIUL version),
     61    <filename>jdk-&jdk-src-string;-fcs-bin-b05-08_aug_2005.jar</filename>, and
     62    <filename>jdk-&jdk-src-string;-mozilla_headers-b05-unix-03_jun_2005.jar</filename>.
     63    </para>
    6164
    6265    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    159162    following commands:</para>
    160163
    161 <screen><userinput>export VERSION=&jdk-bin-version; &amp;&amp;
    162 export MV=`echo $VERSION | cut -d "_" -f 1,1` &amp;&amp;
    163 export V=`echo ${VERSION} | sed -e "s/\./_/g"` &amp;&amp;
    164 sed -i "s:^PATH=.*::" jdk-${V}-linux-i?86.bin &amp;&amp;
    165 chmod -v +x jdk-${V}-linux-i?86.bin &amp;&amp;
     164<screen><userinput>sed -i "s:^PATH=.*::" jdk-&jdk-bin-string;-linux-i?86.bin &amp;&amp;
     165chmod -v +x jdk-&jdk-bin-string;-linux-i?86.bin &amp;&amp;
    166166mkdir -v -p bin &amp;&amp;
    167167ln -v -sf /bin/true bin/more &amp;&amp;
    168 yes | PATH=$PWD/bin:$PATH ./jdk-${V}-linux-i?86.bin &amp;&amp;
    169 cd jdk${VERSION}</userinput></screen>
     168yes | PATH=$PWD/bin:$PATH ./jdk-&jdk-bin-string;-linux-i?86.bin &amp;&amp;
     169cd jdk&jdk-bin-version;</userinput></screen>
    170170
    171171    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
    172172
    173 <screen role="root"><userinput>install -v -d /opt/jdk/jdk-precompiled-${MV} &amp;&amp;
    174 mv -v * /opt/jdk/jdk-precompiled-${MV}
    175 chown -v -R root:root /opt/jdk/jdk-precompiled-${MV}</userinput></screen>
     173<screen role="root"><userinput>install -v -d /opt/jdk/jdk-precompiled-&jdk-bin-version; &amp;&amp;
     174mv -v * /opt/jdk/jdk-precompiled-&jdk-bin-version; &amp;&amp;
     175chown -v -R root:root /opt/jdk/jdk-precompiled-&jdk-bin-version;</userinput></screen>
    176176
    177177    <para>The binary version is now installed.</para>
     
    181181    configuration section.</para>
    182182
    183     <para>Add the recently installed <application>JDK</application>
    184     to the path.</para>
    185 
    186 <screen><userinput>export JAVA_HOME=/opt/jdk/jdk-precompiled-${MV} &amp;&amp;
    187 export PATH=$PATH:${JAVA_HOME}/bin</userinput></screen>
    188 
    189     <para>Unzip the sources:</para>
     183    <para>Save the existing path, and append the recently installed
     184    <application>JDK</application>.</para>
     185
     186<screen><userinput>export JAVA_HOME=/opt/jdk/jdk-precompiled-&jdk-bin-version; &amp;&amp;
     187export PATH_HOLD=${PATH} &amp;&amp;
     188export PATH=${PATH}:${JAVA_HOME}/bin</userinput></screen>
     189
     190    <para>The source code is contained in a self-extracting jar file.  You
     191    will need to be in a windowed enviromnent to extract the sources. 
     192    Create a directory to store the extracted sources.  Choose the newly
     193    created <filename class="directory">jdk-build</filename> directory
     194    when prompted for the target directory.</para>
    190195
    191196<screen><userinput>mkdir jdk-build &amp;&amp;
    192197cd jdk-build &amp;&amp;
    193 VERSION=&jdk-src-version; &amp;&amp;
    194 V=`echo $VERSION | sed -e "s/\./_/g"` &amp;&amp;
    195 unzip ../jdk-${V}-src-jrl.zip &amp;&amp;
    196 unzip ../jdk-${V}-bin-jrl.zip &amp;&amp;
    197 unzip ../jdk-${V}-mozilla_headers-unix.zip</userinput></screen>
     198for JAR in ../jdk-&jdk-src-string;*.jar
     199    do java -jar ${JAR}
     200done</userinput></screen>
    198201
    199202    <para>Apply all the patches downloaded above.</para>
     
    212215unset LDFLAGS
    213216export ALT_DEVTOOLS_PATH="/usr/bin" &amp;&amp;
    214 export BUILD_NUMBER="blfs-&blfs-version;" &amp;&amp;
     217export BUILD_NUMBER="BLFS-&version;" &amp;&amp;
    215218export DEV_ONLY=true &amp;&amp;
    216 export ALT_MOZILLA_PATH=$PWD &amp;&amp;
     219export ALT_MOZILLA_HEADERS_PATH=$PWD/share/plugin/ &amp;&amp;
    217220export INSANE=true &amp;&amp;
    218221export MAKE_VERBOSE=true &amp;&amp;
     
    251254    commands:</para>
    252255
    253 <screen><userinput>unset VERSION &amp;&amp;
    254 unset MV &amp;&amp;
    255 unset V &amp;&amp;
    256 unset ALT_BOOTDIR &amp;&amp;
     256<screen><userinput>unset ALT_BOOTDIR &amp;&amp;
    257257unset ALT_DEVTOOLS_PATH &amp;&amp;
    258258unset BUILD_NUMBER &amp;&amp;
    259259unset DEV_ONLY &amp;&amp;
    260 unset ALT_MOZILLA_PATH &amp;&amp;
     260unset ALT_MOZILLA_HEADERS_PATH &amp;&amp;
    261261unset INSANE &amp;&amp;
    262262unset MAKE_VERBOSE &amp;&amp;
    263 unset ALT_CACERTS_FILE</userinput></screen>
     263unset ALT_CACERTS_FILE &amp;&amp;
     264export PATH=${PATH_HOLD} &amp;&amp;
     265unset PATH_HOLD</userinput></screen>
    264266
    265267  </sect2>
     
    271273    the location of the bootstrap <application>JDK</application>.</para>
    272274
    273     <para><command>export ALT_MOZILLA_PATH=$PWD</command>: This tells the build
    274     where to find the base directory of the plugin path (which contains the
    275     <application>Mozilla</application> headers).</para>
     275    <para><command>export ALT_MOZILLA_HEADERS_PATH=$PWD/share/plugin/</command>:
     276    This tells the build exactly where to find the
     277    <application>Mozilla</application> headers.  This has changed since the
     278    previous version and is not mentioned in the installation documentation
     279    included with the package source.</para>
    276280
    277281    <para><command>export ALT_DEVTOOLS_PATH="/usr/bin"</command>: This
     
    326330      <para>There are now two Java 2 SDKs installed in
    327331      <filename>/opt/jdk</filename>. You should decide on which one you
    328       would like to use as the default. For example if you decide to use the source
    329       compiled <application>JDK</application>, do the following as the
     332      would like to use as the default. For example if you decide to use the
     333      source compiled <application>JDK</application>, do the following as the
    330334      <systemitem class="username">root</systemitem> user:</para>
    331335
     
    389393
    390394      <seglistitem>
    391         <seg>appletviewer, extcheck, idlj, jar, jarsigner, java, javac, javadoc,
    392         javah, javap, javaws, jdb, keytool, native2ascii, orbd, policytool, rmic, rmid,
    393         rmiregistry, serialver, servertool, and tnameserv</seg>
    394         <seg><envar>$JAVA_HOME</envar>/lib/*, <envar>$JAVA_HOME</envar>/jre/lib/*,
     395        <seg>appletviewer, extcheck, idlj, jar, jarsigner, java, javac,
     396        javadoc,javah, javap, javaws, jdb, keytool, native2ascii, orbd,
     397        policytool, rmic, rmid, rmiregistry, serialver, servertool, and
     398        tnameserv</seg>
     399        <seg><envar>$JAVA_HOME</envar>/lib/*,
     400        <envar>$JAVA_HOME</envar>/jre/lib/*,
    395401        and libjavaplugin_oji.so</seg>
    396402        <seg>/opt/jdk</seg>
  • introduction/welcome/changelog.xml

    rbed3771 rcb61e3a8  
    4141
    4242-->
     43    <listitem>
     44      <para>October 6th, 2005</para>
     45      <itemizedlist>
     46        <listitem>
     47          <para>[dj] - Updated to JDK (source build) 1.5.0_04.</para>
     48        </listitem>
     49      </itemizedlist>
     50    </listitem>
     51
    4352
    4453    <listitem>
Note: See TracChangeset for help on using the changeset viewer.