2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-04-04 04:52:42 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2007-03-20 12:29:48 +08:00
|
|
|
<!ENTITY jdk-download-binary "http://java.sun.com/javase/downloads/index_jdk5.jsp">
|
|
|
|
<!ENTITY jdk-bin-md5sum "14ba8eccfd97f6bd23d8dc32b38b1121">
|
|
|
|
<!ENTITY jdk-bin-size "49 MB">
|
|
|
|
<!ENTITY jdk-bin-buildsize "150 MB">
|
|
|
|
|
|
|
|
<!ENTITY jdk-download-source-jrl "http://www.java.net/download/tiger/tiger_u11/jdk-1_5_0_11-fcs-src-b03-jrl-15_dec_2006.jar">
|
|
|
|
<!ENTITY jdk-download-source-jiul "http://www.java.net/download/tiger/tiger_u11/jdk-1_5_0_11-fcs-src-b03-jiul-15_dec_2006.jar">
|
|
|
|
<!ENTITY jdk-download-source-bin "http://www.java.net/download/tiger/tiger_u11/jdk-1_5_0_11-fcs-bin-b03-jrl-15_dec_2006.jar">
|
|
|
|
<!ENTITY jdk-download-source-moz "http://www.java.net/download/tiger/tiger_u11/jdk-1_5_0_11-mozilla_headers-b03-unix-15_dec_2006.jar">
|
2007-03-26 12:55:33 +08:00
|
|
|
|
2007-03-20 12:29:48 +08:00
|
|
|
<!ENTITY jdk-source-jrl-md5sum "e6661cce9c94009e2fa909a151c0160c">
|
|
|
|
<!ENTITY jdk-source-jiul-md5sum "be3653bc93d9efe715cb7a64c513eeef">
|
|
|
|
<!ENTITY jdk-source-bin-md5sum "7c952fba37101c154f1636dc401aa093">
|
|
|
|
<!ENTITY jdk-source-moz-md5sum "16ed66d11701496e3b4e10a24edd3f1b">
|
2007-03-26 12:55:33 +08:00
|
|
|
|
|
|
|
<!ENTITY jdk-source-jrl-size "57 MB">
|
|
|
|
<!ENTITY jdk-source-jiul-size "57 MB">
|
|
|
|
<!ENTITY jdk-source-bin-size "2.2 MB">
|
|
|
|
<!ENTITY jdk-source-moz-size "7.4 MB">
|
|
|
|
|
2007-03-20 12:29:48 +08:00
|
|
|
<!ENTITY jdk-src-buildsize "1.9 GB">
|
|
|
|
<!ENTITY jdk-time "30 SBU">
|
2004-06-13 06:56:28 +08:00
|
|
|
]>
|
|
|
|
|
2005-04-24 17:52:46 +08:00
|
|
|
<sect1 id="jdk" xreflabel="JDK-&jdk-src-version;">
|
2005-05-06 00:34:18 +08:00
|
|
|
<?dbhtml filename="jdk.html" ?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
2005-05-06 00:59:41 +08:00
|
|
|
<title>JDK-&jdk-src-version;</title>
|
2005-05-06 00:34:18 +08:00
|
|
|
|
|
|
|
<indexterm zone="jdk">
|
|
|
|
<primary sortas="a-JDK">JDK</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to JDK</title>
|
|
|
|
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>The <application>JDK</application> package contains
|
2005-11-30 03:07:13 +08:00
|
|
|
Sun's <application>Java</application> development environment. This is
|
|
|
|
useful for developing <application>Java</application> programs and provides
|
|
|
|
the runtime environment necessary to run <application>Java</application>
|
2005-10-06 13:07:22 +08:00
|
|
|
programs. It also includes a plug-in for browsers so that they can be
|
2005-05-06 00:34:18 +08:00
|
|
|
<application>Java</application> aware.</para>
|
|
|
|
|
2007-03-20 12:29:48 +08:00
|
|
|
<!-- Previously, the plugin included
|
2005-10-06 13:07:22 +08:00
|
|
|
in the <application>JDK</application> binary package was unusable on LFS
|
2005-11-30 03:07:13 +08:00
|
|
|
owing to incompatibilities with <application>GCC</application>-3 compiled
|
2005-10-06 13:07:22 +08:00
|
|
|
browsers. This is not the case anymore.</para>
|
2005-05-06 00:34:18 +08:00
|
|
|
|
|
|
|
<para>In order to use the source code and patches, you must read and agree
|
2006-03-15 02:55:40 +08:00
|
|
|
to the Sun <ulink url="http://www.java.net/jrl.csp"> Java Research
|
|
|
|
License</ulink> or optionally, the Sun <ulink
|
|
|
|
url="http://java.net/jiul.csp">Java Internal Use License</ulink>. In
|
|
|
|
addition, the source code is not allowed to be downloaded to some
|
|
|
|
countries, so for users in those countries, the binary is the only
|
2007-03-20 12:29:48 +08:00
|
|
|
option.</para> -->
|
2005-05-06 00:34:18 +08:00
|
|
|
|
2007-03-20 12:29:48 +08:00
|
|
|
<para>The <application>JDK</application> comes in two flavors, a
|
|
|
|
precompiled binary and a source package. You will first need to download
|
|
|
|
and install the binary version of the <application>JDK</application>
|
|
|
|
(you'll need to click and agree to the <quote>Sun Microsystems, Inc.
|
|
|
|
Binary Code License Agreement</quote>). To build from the source, you will
|
|
|
|
also need to download the additional files and patches to complete the
|
2007-03-25 01:27:29 +08:00
|
|
|
source build as detailed below. Note that in some countries you cannot
|
|
|
|
download the source code.</para>
|
2007-03-20 12:29:48 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Precompiled Package Information</bridgehead>
|
2005-05-06 00:34:18 +08:00
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2007-03-20 12:29:48 +08:00
|
|
|
<para>Binary download (jdk-&jdk-bin-string;-linux-i586.bin):
|
|
|
|
<ulink url="&jdk-download-binary;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &jdk-bin-md5sum;</para>
|
2005-05-06 00:34:18 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2007-03-20 12:29:48 +08:00
|
|
|
<para>Download size (binary): &jdk-bin-size;</para>
|
2005-05-06 00:34:18 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2007-03-20 12:29:48 +08:00
|
|
|
<para>Estimated disk space required: &jdk-bin-buildsize;</para>
|
2005-05-06 00:34:18 +08:00
|
|
|
</listitem>
|
2007-03-20 12:29:48 +08:00
|
|
|
</itemizedlist>
|
2005-11-10 07:14:44 +08:00
|
|
|
|
2007-03-20 12:29:48 +08:00
|
|
|
<bridgehead renderas="sect3">Source Package Information</bridgehead>
|
|
|
|
<para>The source code is distributed under two licenses and most will need
|
|
|
|
the JRL version. The JIUL version is listed as well, but you only need to
|
|
|
|
download one or the other.</para>
|
2007-03-26 12:55:33 +08:00
|
|
|
|
2007-03-20 12:29:48 +08:00
|
|
|
<itemizedlist spacing="compact">
|
2005-05-06 00:34:18 +08:00
|
|
|
<listitem>
|
2007-03-26 12:55:33 +08:00
|
|
|
<para>JRL Source
|
2006-03-14 11:45:21 +08:00
|
|
|
<simplelist>
|
2007-03-26 12:55:33 +08:00
|
|
|
<member><ulink url="&jdk-download-source-jrl;"/></member>
|
|
|
|
<member>&jdk-source-jrl-md5sum;</member>
|
|
|
|
<member>&jdk-source-jrl-size;</member>
|
|
|
|
</simplelist>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>JIUL Source
|
|
|
|
<simplelist>
|
|
|
|
<member><ulink url="&jdk-download-source-jiul;"/></member>
|
|
|
|
<member>&jdk-source-jiul-md5sum;</member>
|
|
|
|
<member>&jdk-source-jiul-size;</member>
|
2006-03-14 11:45:21 +08:00
|
|
|
</simplelist>
|
|
|
|
</para>
|
2005-05-06 00:34:18 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2007-03-26 12:55:33 +08:00
|
|
|
<para>Source Binaries
|
|
|
|
<simplelist>
|
|
|
|
<member><ulink url="&jdk-download-source-bin;"/></member>
|
|
|
|
<member>&jdk-source-bin-md5sum;</member>
|
|
|
|
<member>&jdk-source-bin-size;</member>
|
|
|
|
</simplelist>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Mozilla Headers
|
|
|
|
<simplelist>
|
|
|
|
<member><ulink url="&jdk-download-source-moz;"/></member>
|
|
|
|
<member>&jdk-source-moz-md5sum;</member>
|
|
|
|
<member>&jdk-source-moz-size;</member>
|
|
|
|
</simplelist>
|
|
|
|
</para>
|
2005-05-06 00:34:18 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &jdk-src-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &jdk-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required Patches</bridgehead>
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<listitem>
|
|
|
|
<para><ulink
|
2005-10-31 13:52:51 +08:00
|
|
|
url="&patch-root;/jdk-&jdk-src-version;-gcc4-1.patch"/></para>
|
2005-05-06 00:34:18 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para><ulink
|
2006-03-05 08:34:52 +08:00
|
|
|
url="&patch-root;/jdk-&jdk-src-version;-motif_fixes-1.patch"/></para>
|
2005-05-06 00:34:18 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para><ulink
|
|
|
|
url="&patch-root;/jdk-&jdk-src-version;-nptl-1.patch"/></para></listitem>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para><ulink
|
2005-05-06 00:34:18 +08:00
|
|
|
url="&patch-root;/jdk-&jdk-src-version;-remove_broken_demo-1.patch"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para><ulink
|
2005-10-31 13:52:51 +08:00
|
|
|
url="&patch-root;/jdk-&jdk-src-version;-remove_fixed_paths-1.patch"/></para>
|
2005-05-06 00:34:18 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended Patches</bridgehead>
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para><ulink
|
2005-05-06 00:34:18 +08:00
|
|
|
url="&patch-root;/jdk-&jdk-src-version;-remove_debug_image-1.patch"/>
|
2005-06-07 01:30:19 +08:00
|
|
|
(skips compiling of the <application>JDK</application> debug image)</para>
|
2005-05-06 00:34:18 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para><ulink
|
2005-05-06 00:34:18 +08:00
|
|
|
url="&patch-root;/jdk-&jdk-src-version;-static_cxx-1.patch"/>
|
2005-06-07 01:30:19 +08:00
|
|
|
(forces dynamic linking to <application>GCC</application> libs)</para></listitem>
|
2005-06-26 14:16:43 +08:00
|
|
|
</itemizedlist>
|
|
|
|
|
2005-05-06 04:09:46 +08:00
|
|
|
<bridgehead renderas="sect3">JDK Dependencies</bridgehead>
|
2005-05-06 00:34:18 +08:00
|
|
|
|
2005-05-06 00:59:41 +08:00
|
|
|
<bridgehead renderas="sect4">Required (to Build JDK from Source)</bridgehead>
|
2006-04-10 00:06:53 +08:00
|
|
|
<para role="required"><xref linkend="x-window-system"/>,
|
2005-05-31 05:37:54 +08:00
|
|
|
<xref linkend="zip"/>,
|
|
|
|
<xref linkend="unzip"/>,
|
|
|
|
<xref linkend="cpio"/>,
|
2006-04-02 19:50:28 +08:00
|
|
|
<xref linkend="alsa-lib"/>, and
|
2005-05-06 00:34:18 +08:00
|
|
|
<xref linkend="tcsh"/></para>
|
|
|
|
|
2006-04-11 02:35:56 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/jdk"/></para>
|
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of JDK</title>
|
|
|
|
|
2007-03-20 12:29:48 +08:00
|
|
|
<para>The instructions below install both the binary and source versions.
|
|
|
|
You may stop after installing the binary version or continue on installing
|
|
|
|
the source version. You can choose to keep either or both.</para>
|
2005-05-06 00:34:18 +08:00
|
|
|
|
2006-01-31 12:24:01 +08:00
|
|
|
<tip>
|
2006-06-28 14:44:55 +08:00
|
|
|
<para>The <command>./jdk-mod.bin</command>
|
2006-01-31 12:24:01 +08:00
|
|
|
command below unpacks the distribution into a
|
|
|
|
<filename class='directory'>jdk&jdk-bin-version;</filename> directory.
|
|
|
|
You will be required to view, and then accept (by entering a
|
|
|
|
<keycap>y</keycap> keypress), a license agreement before any files are
|
|
|
|
unpacked. If you are scripting (automating) the build, you'll need to
|
|
|
|
account for this. There is information about automating build commands
|
|
|
|
in the <xref linkend="automating-builds"/> section of Chapter 2. Towards
|
|
|
|
the end of this section, specific information for automating this type of
|
|
|
|
installation is discussed.</para>
|
|
|
|
</tip>
|
|
|
|
|
2006-03-14 11:45:21 +08:00
|
|
|
<para>Normally in BLFS, the files are unpacked into a subdirectory
|
2006-03-15 23:00:51 +08:00
|
|
|
and the starting point for the installation procedures is that
|
2006-03-14 11:45:21 +08:00
|
|
|
location. For this application only, start in the directory where all
|
|
|
|
the downloaded files are located.</para>
|
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<para>Install the precompiled <application>JDK</application> with the
|
|
|
|
following commands:</para>
|
|
|
|
|
2007-03-25 01:27:29 +08:00
|
|
|
<screen><userinput>install -m755 jdk-&jdk-bin-string;-linux-i?86.bin jdk-mod.bin &&
|
2006-03-14 11:45:21 +08:00
|
|
|
sed -i "s:^PATH=.*::" jdk-mod.bin &&
|
2007-03-20 12:29:48 +08:00
|
|
|
./jdk-mod.bin &&
|
|
|
|
rm jdk-mod.bin</userinput></screen>
|
2005-01-26 22:18:33 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
2005-01-26 22:18:33 +08:00
|
|
|
|
2006-03-14 11:45:21 +08:00
|
|
|
<screen role="root"><userinput>cd jdk&jdk-bin-version; &&
|
2007-03-20 12:29:48 +08:00
|
|
|
install -v -m755 -d /opt/jdk/jdk-precompiled-&jdk-bin-version; &&
|
2005-10-06 13:07:22 +08:00
|
|
|
mv -v * /opt/jdk/jdk-precompiled-&jdk-bin-version; &&
|
2005-12-03 12:20:20 +08:00
|
|
|
chown -v -R root:root /opt/jdk/jdk-precompiled-&jdk-bin-version; &&
|
2005-12-07 17:32:53 +08:00
|
|
|
ln -v -sf motif21/libmawt.so \
|
2006-03-14 11:45:21 +08:00
|
|
|
/opt/jdk/jdk-precompiled-&jdk-bin-version;/jre/lib/i386/ &&
|
|
|
|
cd ..</userinput></screen>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<para>The binary version is now installed.</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>If you don't want to compile the source or are not in a position to
|
|
|
|
download the source owing to license restrictions, skip ahead to the
|
2005-05-06 00:34:18 +08:00
|
|
|
configuration section.</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-11-30 03:07:13 +08:00
|
|
|
<para>Save the existing path, and append the recently installed
|
2005-10-06 13:07:22 +08:00
|
|
|
<application>JDK</application>.</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-10-06 13:07:22 +08:00
|
|
|
<screen><userinput>export JAVA_HOME=/opt/jdk/jdk-precompiled-&jdk-bin-version; &&
|
|
|
|
export PATH_HOLD=${PATH} &&
|
|
|
|
export PATH=${PATH}:${JAVA_HOME}/bin</userinput></screen>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2006-05-11 21:08:41 +08:00
|
|
|
<para>The source code is contained in self-extracting
|
|
|
|
<filename class='extension'>jar</filename> files. You
|
2005-11-30 03:07:13 +08:00
|
|
|
will need to be in a windowed environment to extract the sources.
|
2005-10-06 13:07:22 +08:00
|
|
|
Create a directory to store the extracted sources. Choose the newly
|
|
|
|
created <filename class="directory">jdk-build</filename> directory
|
|
|
|
when prompted for the target directory.</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<screen><userinput>mkdir jdk-build &&
|
2005-04-24 17:52:46 +08:00
|
|
|
cd jdk-build &&
|
2005-10-06 13:07:22 +08:00
|
|
|
for JAR in ../jdk-&jdk-src-string;*.jar
|
|
|
|
do java -jar ${JAR}
|
|
|
|
done</userinput></screen>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-10-06 13:59:58 +08:00
|
|
|
<para>Apply all the patches downloaded above:</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<screen><userinput>for PATCH in ../jdk-&jdk-src-version;*.patch
|
2005-04-24 17:52:46 +08:00
|
|
|
do patch -Np1 -i ${PATCH}
|
2005-05-06 00:34:18 +08:00
|
|
|
done</userinput></screen>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2006-07-10 02:43:30 +08:00
|
|
|
<para>If your <application>X Window System</application> is installed into
|
2007-01-16 08:08:14 +08:00
|
|
|
any prefix other than <filename class="directory">/usr/X11R6</filename>,
|
|
|
|
execute the following command, replacing
|
|
|
|
<replaceable><PREFIX></replaceable> with the installation prefix of
|
2006-07-10 02:43:30 +08:00
|
|
|
the <application>X Window System</application>:</para>
|
2006-03-05 08:34:52 +08:00
|
|
|
|
2006-07-10 02:43:30 +08:00
|
|
|
<screen><userinput>find . -type f -exec sed -i 's@/usr/X11R6@<replaceable><PREFIX></replaceable>@g' {} \;</userinput></screen>
|
2006-03-05 08:34:52 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<para>Set/unset some variables which affect the build:</para>
|
2005-01-26 22:18:33 +08:00
|
|
|
|
2006-06-28 14:44:55 +08:00
|
|
|
<screen><userinput>export ALT_BOOTDIR=${JAVA_HOME} &&
|
|
|
|
export CLASSPATH_HOLD=${CLASSPATH} &&
|
|
|
|
unset JAVA_HOME CLASSPATH CFLAGS CXXFLAGS LDFLAGS &&
|
2004-06-13 06:56:28 +08:00
|
|
|
export ALT_DEVTOOLS_PATH="/usr/bin" &&
|
2007-01-28 15:29:21 +08:00
|
|
|
export BUILD_NUMBER="update-10" &&
|
2004-06-13 06:56:28 +08:00
|
|
|
export DEV_ONLY=true &&
|
2006-06-28 14:44:55 +08:00
|
|
|
export ALT_MOZILLA_HEADERS_PATH=${PWD}/share/plugin/ &&
|
2004-06-13 06:56:28 +08:00
|
|
|
export INSANE=true &&
|
|
|
|
export MAKE_VERBOSE=true &&
|
2005-05-06 00:34:18 +08:00
|
|
|
export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts</userinput></screen>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<warning>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>Setting CFLAGS/CXXFLAGS/LDFLAGS is guaranteed to make the build
|
2005-11-30 03:07:13 +08:00
|
|
|
fail. If you are interested in optimizing the build, set
|
|
|
|
OTHER_CFLAGS/OTHER_CXXFLAGS/OTHER_LDFLAGS instead. -O3, even in
|
2005-07-29 10:40:08 +08:00
|
|
|
OTHER_C{,XX}FLAGS, is known to cause a build failure.</para>
|
2005-05-06 00:34:18 +08:00
|
|
|
</warning>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-07-28 04:49:55 +08:00
|
|
|
<para>Additionally, if you would like to <command>make</command> in
|
|
|
|
parallel, add the following:</para>
|
2005-01-26 22:18:33 +08:00
|
|
|
|
2006-04-11 02:35:56 +08:00
|
|
|
<screen><userinput>export HOTSPOT_BUILD_JOBS=<replaceable><3></replaceable></userinput></screen>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<para>Build the <application>JDK</application> with the following
|
2007-03-20 12:29:48 +08:00
|
|
|
commands. There will be a few messages about missing files that look like
|
2005-06-07 01:30:19 +08:00
|
|
|
errors. These are caused by not meeting the expected build environment
|
2005-05-31 05:37:54 +08:00
|
|
|
(Red Hat). As long as the build doesn't stop, the messages
|
2005-05-06 00:34:18 +08:00
|
|
|
are harmless.</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2007-03-20 12:29:48 +08:00
|
|
|
<screen><userinput>pushd control/make &&
|
2004-06-13 06:56:28 +08:00
|
|
|
make &&
|
2007-03-20 12:29:48 +08:00
|
|
|
popd</userinput></screen>
|
2005-01-26 22:18:33 +08:00
|
|
|
|
2006-05-11 21:08:41 +08:00
|
|
|
<para>To test the results, you can run one of the provided demo programs
|
|
|
|
using the newly created <command>java</command> binary. Issue the
|
|
|
|
following commands:</para>
|
|
|
|
|
2007-03-20 12:29:48 +08:00
|
|
|
<screen><userinput>pushd control/build/linux-i?86/j2sdk-image/demo/jfc/Java2D &&
|
2006-05-11 21:08:41 +08:00
|
|
|
../../../bin/java -jar Java2Demo.jar &&
|
2007-03-20 12:29:48 +08:00
|
|
|
popd</userinput></screen>
|
2006-05-11 21:08:41 +08:00
|
|
|
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user,
|
2005-05-06 00:34:18 +08:00
|
|
|
install the <application>JDK</application>:</para>
|
2005-01-26 22:18:33 +08:00
|
|
|
|
2007-03-20 12:29:48 +08:00
|
|
|
<screen role="root"><userinput>pushd control/build/linux-i?86 &&
|
|
|
|
cp -v -a j2sdk-image /opt/jdk/jdk-&jdk-src-version; &&
|
2005-06-19 13:18:07 +08:00
|
|
|
chown -v -R root:root /opt/jdk/jdk-&jdk-src-version; &&
|
2007-03-20 12:29:48 +08:00
|
|
|
ln -v -sf motif21/libmawt.so /opt/jdk/jdk-&jdk-src-version;/jre/lib/i386/ &&
|
|
|
|
find /opt/jdk/jdk-&jdk-src-version; \
|
|
|
|
-type f -perm 600 -exec chmod -v 644 {} \; &&
|
|
|
|
find /opt/jdk/jdk-&jdk-src-version; \
|
|
|
|
-name "*.so" -exec chmod -v 755 {} \; &&
|
|
|
|
chmod -v 755 /opt/jdk/jdk-&jdk-src-version;/jre/bin/* &&
|
|
|
|
popd</userinput></screen>
|
2005-01-26 22:18:33 +08:00
|
|
|
|
2005-07-28 04:49:55 +08:00
|
|
|
<para>Restore the unprivileged user's environment using the following
|
|
|
|
commands:</para>
|
2005-01-26 22:18:33 +08:00
|
|
|
|
2006-06-28 14:44:55 +08:00
|
|
|
<screen><userinput>export JAVA_HOME=${ALT_BOOTDIR} &&
|
|
|
|
export CLASSPATH=${CLASSPATH_HOLD} &&
|
2005-10-06 13:07:22 +08:00
|
|
|
export PATH=${PATH_HOLD} &&
|
2006-06-28 14:44:55 +08:00
|
|
|
unset ALT_BOOTDIR CLASSPATH_HOLD ALT_DEVTOOLS_PATH BUILD_NUMBER &&
|
|
|
|
unset DEV_ONLY ALT_MOZILLA_HEADERS_PATH INSANE MAKE_VERBOSE &&
|
|
|
|
unset ALT_CACERTS_FILE PATH_HOLD</userinput></screen>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
</sect2>
|
2004-06-13 06:56:28 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2006-06-28 14:44:55 +08:00
|
|
|
<para><command>export ALT_BOOTDIR=${JAVA_HOME}</command>: This variable sets
|
2005-05-06 00:34:18 +08:00
|
|
|
the location of the bootstrap <application>JDK</application>.</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2006-06-28 14:44:55 +08:00
|
|
|
<para><command>export ALT_MOZILLA_HEADERS_PATH=${PWD}/share/plugin/</command>:
|
2005-10-06 13:07:22 +08:00
|
|
|
This tells the build exactly where to find the
|
2005-11-30 03:07:13 +08:00
|
|
|
<application>Mozilla</application> headers. This has changed since the
|
|
|
|
previous version and is not mentioned in the installation documentation
|
2005-10-06 13:07:22 +08:00
|
|
|
included with the package source.</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<para><command>export ALT_DEVTOOLS_PATH="/usr/bin"</command>: This
|
|
|
|
changes the location where the build finds the needed executables.</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2007-01-28 15:29:21 +08:00
|
|
|
<para><command>export BUILD_NUMBER="update-10"</command>:
|
2005-05-31 05:37:54 +08:00
|
|
|
This will help you identify the compiled version of the runtime environment
|
|
|
|
and virtual machine by appending this information to the version
|
2005-05-06 00:34:18 +08:00
|
|
|
string.</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<para><command>export DEV_ONLY=true</command>: This command
|
|
|
|
skips compiling the documentation and eliminates a dependency on
|
|
|
|
<application>rpm</application>.</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2006-06-28 14:44:55 +08:00
|
|
|
<para><command>unset JAVA_HOME CLASSPATH CFLAGS CXXFLAGS LDFLAGS</command>:
|
|
|
|
These variables cause miscompilation of the build. Never set them.</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-31 05:37:54 +08:00
|
|
|
<para><command>export INSANE=true</command>: The certified platform for the
|
|
|
|
build is Redhat Enterprise Advanced Server 2.1. This variable ensures that
|
|
|
|
all the errors related to compiling on a non-certified platform will be
|
2005-05-06 00:34:18 +08:00
|
|
|
displayed as warnings instead of errors.</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-31 05:37:54 +08:00
|
|
|
<para><command>export MAKE_VERBOSE=true</command>: Allows the compiler
|
2005-05-06 00:34:18 +08:00
|
|
|
commands to be displayed on the console.</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<para><command>export ALT_CACERTS_FILE...</command>: Specifies the
|
2005-05-31 05:37:54 +08:00
|
|
|
certificate file to use (from the installed binary
|
2005-05-06 00:34:18 +08:00
|
|
|
<application>JDK</application>).</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-11-30 03:07:13 +08:00
|
|
|
<para><command>ln -sf motif21/libmawt.so
|
|
|
|
/opt/jdk/jdk-&jdk-src-version;/jre/lib/i386/</command>: This fixes
|
|
|
|
linking issues with other applications that expect to find the
|
|
|
|
<application>motif</application> libraries with the other
|
2005-06-19 14:05:45 +08:00
|
|
|
<application>JDK</application> libraries.</para>
|
2005-06-19 13:18:07 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
</sect2>
|
2004-06-13 06:56:28 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring JDK</title>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-06-07 01:30:19 +08:00
|
|
|
<para>There are now two Java 2 SDKs installed in
|
2005-05-06 00:34:18 +08:00
|
|
|
<filename>/opt/jdk</filename>. You should decide on which one you
|
2005-11-30 03:07:13 +08:00
|
|
|
would like to use as the default. For example if you decide to use the
|
2005-10-06 13:07:22 +08:00
|
|
|
source compiled <application>JDK</application>, do the following as the
|
2005-06-17 20:46:59 +08:00
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-06-17 21:14:08 +08:00
|
|
|
<screen role="root"><userinput>ln -v -nsf jdk-&jdk-src-version; /opt/jdk/jdk</userinput></screen>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2007-03-25 01:27:29 +08:00
|
|
|
<para>The information below assumes your system is set up using the
|
|
|
|
instructions found in
|
|
|
|
<quote><xref linkend="postlfs-config-profile"/></quote>. You may need to
|
|
|
|
extract the relevant information below and incorporate it into your
|
|
|
|
system's startup files if your system is set up differently.</para>
|
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
<para>Add the following <filename>jdk.sh</filename> shell startup file to
|
2005-05-31 05:37:54 +08:00
|
|
|
the <filename>/etc/profile.d</filename> directory with the following
|
2005-06-17 20:46:59 +08:00
|
|
|
commands as the <systemitem class="username">root</systemitem> user:</para>
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-06-17 21:14:08 +08:00
|
|
|
<screen role="root"><userinput>cat > /etc/profile.d/jdk.sh << "EOF"
|
2005-05-06 00:34:18 +08:00
|
|
|
<literal># Begin /etc/profile.d/jdk.sh
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-04-24 17:52:46 +08:00
|
|
|
# Set JAVA_HOME directory
|
|
|
|
JAVA_HOME=/opt/jdk/jdk
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-05 12:46:02 +08:00
|
|
|
# Adjust PATH
|
2005-04-24 17:52:46 +08:00
|
|
|
pathappend ${JAVA_HOME}/bin PATH
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2007-01-28 15:29:21 +08:00
|
|
|
# Auto Java CLASSPATH
|
|
|
|
# Copy jar files to, or create symlinks in this directory
|
2005-04-24 17:52:46 +08:00
|
|
|
AUTO_CLASSPATH_DIR=/usr/lib/classpath
|
2007-01-29 03:39:54 +08:00
|
|
|
pathprepend . CLASSPATH
|
|
|
|
for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do
|
|
|
|
pathappend $dir CLASSPATH
|
2005-04-24 17:52:46 +08:00
|
|
|
done
|
2007-01-28 15:29:21 +08:00
|
|
|
|
2007-01-29 03:39:54 +08:00
|
|
|
export JAVA_HOME CLASSPATH
|
|
|
|
unset AUTO_CLASSPATH_DIR
|
|
|
|
unset dir
|
2004-06-25 02:44:11 +08:00
|
|
|
|
2005-05-06 00:34:18 +08:00
|
|
|
# End /etc/profile.d/jdk.sh</literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
2005-07-28 04:49:55 +08:00
|
|
|
<para>The <application>Java</application> plugin is located in
|
2005-05-06 00:34:18 +08:00
|
|
|
<filename class="directory">$JAVA_HOME/jre/plugin/i?86/ns7/</filename>.
|
2005-07-28 04:49:55 +08:00
|
|
|
Make a symbolic link to the file in that directory from your browser(s)
|
2005-05-06 00:34:18 +08:00
|
|
|
plugins directory.</para>
|
|
|
|
|
2005-07-28 04:49:55 +08:00
|
|
|
<important>
|
2005-05-06 00:34:18 +08:00
|
|
|
<para>The plugin must be a symlink for it to work. If not, the browsers
|
2005-07-28 04:49:55 +08:00
|
|
|
will crash when you attempt to load a <application>Java</application>
|
2005-05-06 00:34:18 +08:00
|
|
|
application.</para>
|
2005-07-28 04:49:55 +08:00
|
|
|
</important>
|
2005-05-06 00:34:18 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2005-11-30 03:07:13 +08:00
|
|
|
<seg>appletviewer, extcheck, idlj, jar, jarsigner, java, javac,
|
|
|
|
javadoc,javah, javap, javaws, jdb, keytool, native2ascii, orbd,
|
|
|
|
policytool, rmic, rmid, rmiregistry, serialver, servertool, and
|
2005-10-06 13:07:22 +08:00
|
|
|
tnameserv</seg>
|
2005-11-30 03:07:13 +08:00
|
|
|
<seg><envar>$JAVA_HOME</envar>/lib/*,
|
2005-10-06 13:07:22 +08:00
|
|
|
<envar>$JAVA_HOME</envar>/jre/lib/*,
|
2005-05-06 00:34:18 +08:00
|
|
|
and libjavaplugin_oji.so</seg>
|
|
|
|
<seg>/opt/jdk</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="appletviewer">
|
|
|
|
<term><command>appletviewer</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>runs <application>Java</application> applets outside of the
|
2005-05-06 00:34:18 +08:00
|
|
|
context of a browser.</para>
|
|
|
|
<indexterm zone="jdk appletviewer">
|
|
|
|
<primary sortas="b-appletviewer">appletviewer</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="extcheck">
|
|
|
|
<term><command>extcheck</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>checks a specified <filename>JAR</filename> file for title
|
|
|
|
and version conflicts with any extensions installed in the
|
2005-05-06 00:34:18 +08:00
|
|
|
<application>JDK</application> software.</para>
|
|
|
|
<indexterm zone="jdk extcheck">
|
|
|
|
<primary sortas="b-extcheck">extcheck</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="idlj">
|
|
|
|
<term><command>idlj</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>generates <application>Java</application> bindings from a
|
2005-05-06 00:34:18 +08:00
|
|
|
given IDL file.</para>
|
|
|
|
<indexterm zone="jdk idlj">
|
|
|
|
<primary sortas="b-idlj">idlj</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
2005-05-31 00:35:31 +08:00
|
|
|
</varlistentry>
|
2005-05-06 00:34:18 +08:00
|
|
|
|
|
|
|
<varlistentry id="jar">
|
|
|
|
<term><command>jar</command></term>
|
|
|
|
<listitem>
|
2005-05-31 00:35:31 +08:00
|
|
|
<para>combines multiple files into a single <filename>JAR</filename>
|
2005-05-06 00:34:18 +08:00
|
|
|
archive file.</para>
|
|
|
|
<indexterm zone="jdk jar">
|
|
|
|
<primary sortas="b-jar">jar</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="jarsigner">
|
|
|
|
<term><command>jarsigner</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>signs <filename>JAR</filename> (Java ARchive) files and verifies the
|
2005-05-06 00:34:18 +08:00
|
|
|
signatures and integrity of a signed <filename>JAR</filename>.</para>
|
|
|
|
<indexterm zone="jdk jarsigner">
|
|
|
|
<primary sortas="b-jarsigner">jarsigner</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="java">
|
|
|
|
<term><command>java</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>launches a <application>Java</application> application by
|
|
|
|
starting a <application>Java</application> runtime environment, loading a
|
2005-05-06 00:34:18 +08:00
|
|
|
specified class and invoking its main method.</para>
|
|
|
|
<indexterm zone="jdk java">
|
|
|
|
<primary sortas="b-java">java</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="javac">
|
|
|
|
<term><command>javac</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>reads class and interface definitions, written in the
|
|
|
|
<application>Java</application> programming language, and compiles
|
2005-05-06 00:34:18 +08:00
|
|
|
them into bytecode class files.</para>
|
|
|
|
<indexterm zone="jdk javac">
|
|
|
|
<primary sortas="b-javac">javac</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="javadoc">
|
|
|
|
<term><command>javadoc</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>parses the declarations and documentation comments in a set of
|
|
|
|
<application>Java</application> source files and produces a corresponding
|
|
|
|
set of HTML pages describing the classes, interfaces,
|
2005-05-06 00:34:18 +08:00
|
|
|
constructors, methods, and fields.</para>
|
|
|
|
<indexterm zone="jdk javadoc">
|
|
|
|
<primary sortas="b-javadoc">javadoc</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="javah">
|
|
|
|
<term><command>javah</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>generates <application>C</application> header and source files
|
2005-05-06 00:34:18 +08:00
|
|
|
that are needed to implement native methods.</para>
|
|
|
|
<indexterm zone="jdk javah">
|
|
|
|
<primary sortas="b-javah">javah</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="javap">
|
|
|
|
<term><command>javap</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>disassembles a <application>Java</application> class file.</para>
|
|
|
|
<indexterm zone="jdk javap">
|
|
|
|
<primary sortas="b-javap">javap</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="javaws">
|
|
|
|
<term><command>javaws</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>launches <application>Java </application>application/applets
|
2005-05-06 00:34:18 +08:00
|
|
|
hosted on a network.</para>
|
|
|
|
<indexterm zone="jdk javaws">
|
|
|
|
<primary sortas="b-javaws">javaws</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="jdb">
|
|
|
|
<term><command>jdb</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>is a simple command-line debugger for
|
2005-05-06 00:34:18 +08:00
|
|
|
<application>Java</application> classes.</para>
|
|
|
|
<indexterm zone="jdk jdb">
|
|
|
|
<primary sortas="b-jdb">jdb</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="keytool">
|
|
|
|
<term><command>keytool</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a key and certificate management utility.</para>
|
|
|
|
<indexterm zone="jdk keytool">
|
|
|
|
<primary sortas="b-keytool">keytool</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="native2ascii">
|
|
|
|
<term><command>native2ascii</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para> converts files that contain non-supported character encoding
|
2005-05-06 00:34:18 +08:00
|
|
|
into files containing Latin-1 or Unicode-encoded characters.</para>
|
|
|
|
<indexterm zone="jdk native2ascii">
|
|
|
|
<primary sortas="b-native2ascii">native2ascii</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="orbd">
|
|
|
|
<term><command>orbd</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>is used to enable clients to transparently locate and invoke
|
2005-05-06 00:34:18 +08:00
|
|
|
persistent objects on servers in the CORBA environment.</para>
|
|
|
|
<indexterm zone="jdk orbd">
|
|
|
|
<primary sortas="b-orbd">orbd</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="policytool">
|
|
|
|
<term><command>policytool</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>creates and manages a policy file graphically.</para>
|
|
|
|
<indexterm zone="jdk policytool">
|
|
|
|
<primary sortas="b-policytool">policytool</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="rmic">
|
|
|
|
<term><command>rmic</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>generates stub and skeleton class files for remote objects
|
|
|
|
from the names of compiled <application>Java</application> classes that
|
2005-05-06 00:34:18 +08:00
|
|
|
contain remote object implementations.</para>
|
|
|
|
<indexterm zone="jdk rmic">
|
|
|
|
<primary sortas="b-rmic">rmic</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="rmid">
|
|
|
|
<term><command>rmid</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>starts the activation system daemon.</para>
|
|
|
|
<indexterm zone="jdk rmid">
|
|
|
|
<primary sortas="b-rmid">rmid</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="rmiregistry">
|
|
|
|
<term><command>rmiregistry</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>creates and starts a remote object registry on the specified
|
2005-05-06 00:34:18 +08:00
|
|
|
port on the current host.</para>
|
|
|
|
<indexterm zone="jdk rmiregistry">
|
|
|
|
<primary sortas="b-rmiregistry">rmiregistry</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="serialver">
|
|
|
|
<term><command>serialver</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>returns the serialVersionUID for one or more classes in a
|
2005-05-06 00:34:18 +08:00
|
|
|
form suitable for copying into an evolving class.</para>
|
|
|
|
<indexterm zone="jdk serialver">
|
|
|
|
<primary sortas="b-serialver">serialver</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="servertool">
|
|
|
|
<term><command>servertool</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:37:54 +08:00
|
|
|
<para>provides an ease-of-use interface for application programmers
|
2005-05-06 00:34:18 +08:00
|
|
|
to register, unregister, startup and shutdown a server.</para>
|
|
|
|
<indexterm zone="jdk servertool">
|
|
|
|
<primary sortas="b-servertool">servertool</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="tnameserv">
|
|
|
|
<term><command>tnameserv</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>starts the <application>Java</application> IDL name server.</para>
|
|
|
|
<indexterm zone="jdk tnameserv">
|
|
|
|
<primary sortas="b-tnameserv">tnameserv</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2002-08-10 10:42:59 +08:00
|
|
|
|
|
|
|
</sect1>
|