Changeset 014d11ad for general/prog


Ignore:
Timestamp:
06/24/2004 06:44:11 PM (20 years ago)
Author:
Randy McMurchy <randy@…>
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, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
bb2a071c
Parents:
c230e05
Message:

renamed patches in package instructions to conform with the guidelines

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/j2sdk.xml

    rc230e05 r014d11ad  
    1919<sect2>
    2020<title>Introduction to j2sdk</title>
    21                                                                                
     21
    2222<para>The <application>J2SDK</application> package contains Sun's
    2323<application>Java</application> development environment. This is useful for
    2424developing <application>Java</application> programs and provides the runtime
    25 environment necessary to run <application>Java</application> programs.  It also                                                                              
     25environment necessary to run <application>Java</application> programs.  It also
    2626includes a plug-in for browsers so that they can be <application>Java
    2727</application> aware.</para>
    28                                                                                
     28
    2929<para>
    3030The <acronym>JDK</acronym> comes in two flavors, a precompiled binary and a
     
    3333owing to incompatibilities with <acronym>GCC</acronym>-3 compiled browsers.
    3434This is not the case anymore.</para>
    35                                                                                
     35
    3636<para>The source package requires registration at the Sun
    3737developer site and accepting the Sun Community Source License.
    3838The source code cannot be downloaded from some countries, so for users
    3939from those countries, the binary may be the only option.</para>
    40                                                                                
    41 <para>Even if you plan on compiling the <acronym>JDK</acronym> source, you will                                                                              
     40
     41<para>Even if you plan on compiling the <acronym>JDK</acronym> source, you will
    4242need to download the binary version to bootstrap the <acronym>JDK</acronym>
    4343build. Follow the link below to download both source and binary packages. When
    4444downloading the source also download the <application>Mozilla</application>
    4545headers package available at the same location.</para>
    46                                                                                
     46
    4747<!--
    48 <para>For users who cannot download the <application>J2SDK</application> source owing to license restrictions, <application>blackdown
     48<para>For users who cannot download the <application>J2SDK</application>
     49source owing to license restrictions, <application>blackdown
    4950</application> has an <acronym>GCC</acronym>-3 based precompiled version.
    5051Check out <ulink url="http://www.blackdown.org/"/> for more
    5152information.</para>
    5253-->
    53                                                                                
     54
    5455<sect3><title>Package information</title>
    5556<itemizedlist spacing='compact'>
     
    7071&j2sdk-time;</para></listitem></itemizedlist>
    7172</sect3>
    72                                                                                
     73
    7374<sect3><title>Additional downloads</title>
    7475<itemizedlist spacing='compact'>
    75 <listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-fix-inline-asm-1.patch"/></para></listitem>
     76<listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-fix_inline_asm-1.patch"/></para></listitem>
    7677<listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-gcc33-1.patch"/></para></listitem>
    77 <listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-motif-mkmsgcat.patch"/></para></listitem>
    78 <listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-remove-debug-image.patch"/></para></listitem>
    79 <listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-remove-fixed-paths-1.patch"/></para></listitem>
    80 <listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-static_cxx.patch"/></para></listitem>
    81 <listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-ash.patch"/> (Only required if /bin/sh is symlinked to <xref linkend="ash"/>)</para></listitem>
     78<listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-motif_mkmsgcat-1.patch"/></para></listitem>
     79<listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-remove_debug_image-1.patch"/></para></listitem>
     80<listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-remove_fixed_paths-1.patch"/></para></listitem>
     81<listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-static_cxx-1.patch"/></para></listitem>
     82<listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-ash-1.patch"/> (Only required if /bin/sh is symlinked to <xref linkend="ash"/>)</para></listitem>
    8283</itemizedlist>
    8384</sect3>
    84                                                                                
    85                                                                                
     85
    8686<sect3><title><application>J2SDK</application> dependencies</title>
    8787<sect4><title>Required</title>
    88 <para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>), <xref linkend="zip"/>, <xref
    89 linkend="unzip"/>, <xref linkend="cpio"/>, <xref linkend="alsa"/>,
    90 and <xref linkend="tcsh"/>
     88<para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
     89<xref linkend="zip"/>, <xref linkend="unzip"/>, <xref linkend="cpio"/>,
     90<xref linkend="alsa"/>, and <xref linkend="tcsh"/>
    9191</para></sect4>
    9292</sect3>
    93                                                                                
     93
    9494</sect2>
    9595
    9696<sect2>
    9797<title>Installation of <application>J2SDK</application></title>
    98                                                                                
     98
    9999<para>Both versions will be installed in parallel. You may choose to keep
    100100either or both.</para>
    101                                                                                
     101
    102102<para>Installation of the precompiled <acronym>JDK</acronym> is easy:
    103103create a directory to install from, copy the .bin there, and run the
    104104following commands:</para>
    105                                                                                
     105
    106106<screen><userinput><command>VERSION=&j2sdk-bin-version; &amp;&amp;
    107107MV=`echo $VERSION | cut -d "_" -f 1,1` &amp;&amp;
     
    115115install -d /opt/j2sdk/j2sdk-precompiled-${MV} &amp;&amp;
    116116mv * /opt/j2sdk/j2sdk-precompiled-${MV}</command></userinput></screen>
    117                                                                                
    118 <para>The binary version is now installed.  </para>
    119                                                                                
    120 <para>If you don't want to compile the source or are not in a postition to download the source
    121 owing to license restrictions, skip ahead to the configuration
    122 section.</para>
    123                                                                                
     117
     118<para>The binary version is now installed.</para>
     119
     120<para>If you don't want to compile the source or are not in a position to
     121download the source owing to license restrictions, skip ahead to the
     122configuration section.</para>
     123
    124124<para>Add the recently compiled <acronym>JDK</acronym> to the path.</para>
     125
    125126<screen><userinput><command>export JAVA_HOME=/opt/j2sdk/j2sdk-precompiled-${MV} &amp;&amp;
    126127export PATH=$PATH:${JAVA_HOME}/bin</command></userinput></screen>
    127                                                                                
     128
    128129<para>Unzip the source:</para>
    129                                                                                
     130
    130131<screen><userinput><command>VERSION=&j2sdk-src-version; &amp;&amp;
    131132V=`echo $VERSION | sed -e "s/\./_/g"` &amp;&amp;
     
    133134unzip j2sdk-${V}-mozilla_headers-unix.zip &amp;&amp;
    134135unzip j2sdk-${V}-bin-scsl.zip</command></userinput></screen>
    135                                                                                
     136
    136137<para>Apply all the patches downloaded above.</para>
    137                                                                                
    138 <screen><userinput><command>for PATCH in fix-inline-asm-1 gcc33-1 motif-mkmsgcat \
    139              remove-debug-image remove-fixed-paths-1 \
    140              static_cxx
     138
     139<screen><userinput><command>for PATCH in fix_inline_asm-1 gcc33-1 \
     140             motif_mkmsgcat-1 remove_debug_image-1 remove_fixed_paths-1 \
     141             static_cxx-1
    141142do
    142143   patch -Np1 -i j2sdk-1.4.2-$PATCH.patch
    143144done</command></userinput></screen>
    144                                                                                
     145
    145146<para>Set/unset some variables which affect the build:</para>
    146147<screen><userinput><command>export ALT_BOOTDIR="$JAVA_HOME" &amp;&amp;
     
    157158export MAKE_VERBOSE=true &amp;&amp;
    158159export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts</command></userinput></screen>
    159                                                                                
    160 <warning><para>Setting CFLAGS/CXXFLAGS/LDFLAGS is guaranteed to make the build fail.
    161 If you are interested in optimizing the build, set OTHER_CFLAGS/OTHER_CXXFLAGS/OTHER_LDFLAGS
    162 instead.</para></warning>
    163                                                                                
     160
     161<warning><para>Setting CFLAGS/CXXFLAGS/LDFLAGS is guaranteed to make the build
     162fail. If you are interested in optimizing the build, set
     163OTHER_CFLAGS/OTHER_CXXFLAGS/OTHER_LDFLAGS instead.</para></warning>
     164
    164165<para>Additionally, if you would like to make in parallel, add the following
    165166(adjust <envar>MAKE_PARALLEL</envar> to your liking):</para>
    166167<screen><userinput><command>export HOTSPOT_BUILD_JOBS=$MAKE_PARALLEL</command></userinput></screen>
    167                                                                                
    168 <para>If the included <application>Motif</application> doesn't build properly, the
    169 error is noticed much later in the build.
    170 A solution is to build the <application>Motif</application>
    171 library before compiling the <application>J2SDK</application>.</para>
    172                                                                                
     168
     169<para>If the included <application>Motif</application> doesn't build properly,
     170the error is noticed much later in the build. A solution is to build the
     171<application>Motif</application> library before compiling the
     172<application>J2SDK</application>.</para>
     173
    173174<screen><userinput><command>cd motif/lib/Xm &amp;&amp;
    174175make &amp;&amp;
    175176cd ../../..</command></userinput></screen>
    176                                                                                
     177
    177178<para>Make and Install <application>J2SDK</application> with the following
    178179commands. There will be a lot of messages about missing files that look like
    179 errors. As long as the build doesn't stop, the messages are harmless, so ignore                                                                              
     180errors. As long as the build doesn't stop, the messages are harmless, so ignore
    180181them.</para>
    181                                                                                
     182
    182183<screen><userinput><command>cd control/make &amp;&amp;
    183184make &amp;&amp;
     
    185186cd control/build/linux-i?86 &amp;&amp;
    186187cp -a j2sdk-image /opt/j2sdk/j2sdk-&j2sdk-src-version;</command></userinput></screen>
    187                                                                                
     188
    188189</sect2>
    189190
    190191<sect2>
    191192<title>Command explanations</title>
    192                                                                                
     193
    193194<para><command>export ALT_BOOTDIR="$JAVA_HOME"</command>: This var sets
    194 location of the bootstrap <acronym>JDK</acronym>.
    195 </para>
    196                                                                                
     195location of the bootstrap <acronym>JDK</acronym>.</para>
     196
    197197<para><command>export ALT_MOZILLA_PATH=$PWD</command>: This sets the
    198198variable that points to where you unzipped the <application>Mozilla
    199199</application> headers.</para>
    200                                                                                
     200
    201201<para><command>export ALT_DEVTOOLS_PATH="/usr/bin"</command>: This
    202 changes the location where the build finds the needed executables.
    203 </para>
    204                                                                                
     202changes the location where the build finds the needed executables.</para>
     203
    205204<para><command>export BUILD_NUMBER="blfs-`date +%s`"</command>: This will
    206205help you identify this compiled version of the runtime environment and
    207206virtual machine by appending this information to the version in the
    208207output to <command>java -version</command>.</para>
    209                                                                                
     208
    210209<para><command>export DEV_ONLY=true</command>: This command
    211210eliminates compiling the documentation and eliminates a dependency for
    212 <application>rpm</application>. </para>
    213                                                                                
     211<application>rpm</application>.</para>
     212
    214213<para><command>unset JAVA_HOME</command>: This clears the
    215 <envar>JAVA_HOME</envar>
    216 variable as recommended by the build instructions.</para>
    217                                                                                
     214<envar>JAVA_HOME</envar> variable as recommended by the build
     215instructions.</para>
     216
    218217<para><command>unset CLASSPATH</command>: This clears the
    219 <envar>CLASSPATH</envar> variable as per the recommendations in the build instructions.
    220 </para>
    221                                                                                
     218<envar>CLASSPATH</envar> variable as per the recommendations in the build
     219instructions.</para>
     220
    222221<para><command>unset CFLAGS...</command>: These flags cause miscompilation
    223222of the build. Never set these.</para>
    224                                                                                
     223
    225224<para><command>export INSANE=true</command>: Unless you specify that you
    226225are insane the build will not proceed. The certified platform for the build is
    227226Redhat 6.1. The above variable ensures that all the errors related to
    228227compiling on a non-certified platform will be converted to warnings.</para>
    229                                                                                
     228
    230229<para><command>export MAKE_VERBOSE=true</command>: Allows the current
    231230compilation command to be displayed on the console.</para>
    232                                                                                
     231
    233232<para><command>export ALT_CACERTS_FILE...</command>: Specifies the
    234233certificate file to use.</para>
    235                                                                                
     234
    236235</sect2>
    237236
    238237<sect2>
    239238<title>Configuring <application>J2SDK</application></title>
    240                                                                                
     239
    241240<sect3><title>Configuration Information</title>
    242                                                                                
     241
    243242<para>We have two Java 2 <acronym>SDK</acronym>'s installed in
    244243<filename>/opt/j2sdk</filename>. Decide on which one you
    245244would like to use as the default. For example if you decide to use the source
    246245compiled <application>J2SDK</application>, do the following:</para>
    247                                                                                
     246
    248247<screen><userinput><command>ln -nsf j2sdk-&j2sdk-src-version; /opt/j2sdk/j2sdk</command></userinput></screen>
    249                                                                                
     248
    250249<para>Add the following lines to your shell startup file (e.g.,
    251250<filename>/etc/profile</filename>).</para>
    252                                                                                
     251
    253252<screen><userinput>export JAVA_HOME=/opt/j2sdk/j2sdk
    254253export PATH=$PATH:$JAVA_HOME/bin</userinput></screen>
    255                                                                                
     254
    256255<para>Add <filename>$JAVA_HOME/man</filename> to your
    257256<envar>MANPATH</envar> variable or to
    258257<filename>/etc/man.conf</filename></para>
    259                                                                                
     258
    260259<para>The <application>Java</application> plugin is in the directory
    261260<filename class="directory">$JAVA_HOME/jre/plugin/i?86/ns610/</filename>.
    262261Make a symbolic link to the file in that directory from your plugins directory.</para>
    263                                                                                
    264 </sect3>
    265                                                                                
     262
     263</sect3>
     264
    266265<sect3><title>Handling CLASSPATH</title>
    267                                                                                
     266
    268267<para>When compiling packages, the <envar>CLASSPATH</envar> environment variable
    269 is used by JDK to locate classes at compile-time and run-time. It is tedious toadd all the classes used to the <envar>CLASSPATH</envar> manually. You may add
     268is used by JDK to locate classes at compile-time and run-time. It is tedious to
     269add all the classes used to the <envar>CLASSPATH</envar> manually. You may add
    270270the following lines to your shell startup file to set <envar>CLASSPATH</envar>
    271271automatically to include all JAR files in a specified directory, which in
    272272the example below is <filename>/usr/lib/auto-java-classpath</filename>.</para>
    273                                                                                
     273
    274274<screen><userinput>AUTO_CLASSPATH_DIR=/usr/lib/auto-java-classpath
    275275if [ -z $CLASSPATH ]
     
    283283  CLASSPATH=$CLASSPATH:$i
    284284done</userinput></screen>
    285                                                                                
    286 </sect3>
    287                                                                                
     285
     286</sect3>
     287
    288288</sect2>
    289289
    290290<sect2>
    291291<title>Contents</title>
    292                                                                                
     292
    293293<para>The <application>J2SDK</application> package contains
    294294<command>appletviewer</command>,
     
    304304<command>serialver</command>, <command>servertool</command> and
    305305<command>tnameserv</command>.</para>
    306                                                                                
    307 </sect2>
    308                                                                                
     306
     307</sect2>
     308
    309309<sect2><title>Description</title>
    310                                                                                
     310
    311311<sect3><title>appletviewer</title>
    312 <para><command>appletviewer</command> runs
    313 <application>Java</application> applets outside of the context of a
    314 browser.</para></sect3>
    315                                                                                
     312<para><command>appletviewer</command> runs <application>Java</application>
     313applets outside of the context of a browser.</para></sect3>
     314
    316315<sect3><title>extcheck</title>
    317316<para><command>extcheck</command> checks a specified <filename>JAR</filename>
    318317file for title and version conflicts with any extensions installed in the
    319318<acronym>JDK</acronym> software.</para></sect3>
    320                                                                                
     319
    321320<sect3><title>idlj</title>
    322321<para><command>idlj</command> generates <application>Java</application>
    323322bindings from a given <acronym>IDL</acronym> file.</para></sect3>
    324                                                                                
     323
    325324<sect3><title>jar</title>
    326325<para><command>jar</command> combines multiple files into a single
    327326<acronym>JAR</acronym> archive file.</para></sect3>
    328                                                                                
     327
    329328<sect3><title>jarsigner</title>
    330329<para><command>jarsigner</command> signs <filename>JAR</filename>
    331330(Java ARchive) files and verifies the signatures and integrity of a signed
    332331<filename>JAR</filename>.</para></sect3>
    333                                                                                
     332
    334333<sect3><title>java</title>
    335334<para><command>java</command> launches a <application>Java</application>
     
    337336environment, loading a specified class and invoking its main
    338337method.</para></sect3>
    339                                                                                
     338
    340339<sect3><title>javac</title>
    341340<para><command>javac</command> reads class and interface definitions, written
    342341in the <application>Java</application> programming language, and compiles them
    343342into bytecode class files.</para></sect3>
    344                                                                                
     343
    345344<sect3><title>javadoc</title>
    346345<para><command>javadoc</command> parses the declarations and documentation
     
    348347a corresponding set of <acronym>HTML</acronym> pages describing the classes,
    349348interfaces, constructors, methods, and fields.</para></sect3>
    350                                                                                
     349
    351350<sect3><title>javah</title>
    352351<para><command>javah</command> generates <application>C</application> header
    353352and source files that are needed to implement native methods.</para></sect3>
    354                                                                                
     353
    355354<sect3><title>javap</title>
    356355<para><command>javap</command> disassembles a
    357356<application>Java</application> class file.</para></sect3>
    358                                                                                
     357
    359358<sect3><title>jdb</title>
    360359<para><command>jdb</command> is a simple command-line debugger for
    361360<application>Java</application> classes.</para></sect3>
    362                                                                                
     361
    363362<sect3><title>keytool</title>
    364 <para><command>keytool</command> is a key and certificate management utility.</para></sect3>
    365                                                                                
     363<para><command>keytool</command> is a key and certificate management
     364utility.</para></sect3>
     365
    366366<sect3><title>native2ascii</title>
    367367<para><command>native2ascii</command> converts files that contain non-supported
    368 character encoding into files containing Latin-1 or Unicode-encoded characters.</para></sect3>
    369                                                                                
     368character encoding into files containing Latin-1 or Unicode-encoded
     369characters.</para></sect3>
     370
    370371<sect3><title>orbd</title>
    371372<para><command>orbd</command> is used to enable clients to transparently locate
    372373and invoke persistent objects on servers in the <acronym>CORBA</acronym>
    373374environment.</para></sect3>
    374                                                                                
     375
    375376<sect3><title>policytool</title>
    376377<para><command>policytool</command> creates and manages a policy file
    377378graphically.</para></sect3>
    378                                                                                
     379
    379380<sect3><title>rmic</title>
    380381<para><command>rmic</command> generates stub and skeleton class files for
    381382remote objects from the names of compiled <application>Java</application>
    382383classes that contain remote object implementations.</para></sect3>
    383                                                                                
     384
    384385<sect3><title>rmid</title>
    385386<para><command>rmid</command> starts the activation system daemon.</para>
    386387</sect3>
    387                                                                                
     388
    388389<sect3><title>rmiregistry</title>
    389390<para><command>rmiregistry</command> creates and starts a remote object
    390391registry on the specified port on the current host.</para></sect3>
    391                                                                                
     392
    392393<sect3><title>serialver</title>
    393394<para><command>serialver</command> returns the serialVersionUID for one or
    394395more classes in a form suitable for copying into an evolving class.</para>
    395396</sect3>
    396                                                                                
     397
    397398<sect3><title>servertool</title>
    398399<para><command>servertool</command> provides an ease-of-use interface for
    399 application programmers to register, unregister, startup and shutdown a server.</para></sect3>
    400                                                                                
     400application programmers to register, unregister, startup and shutdown a
     401server.</para></sect3>
     402
    401403<sect3><title>tnameserv</title>
    402404<para><command>tnameserv</command> starts the <application>Java</application>
Note: See TracChangeset for help on using the changeset viewer.