source: general/prog/jdk.xml@ 90bc173

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 90bc173 was 428434e7, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated references to source and md5sum files on the Anduin server due to the Anduin reorganization

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

  • Property mode set to 100644
File size: 24.5 KB
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[ff769b8c]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[99a7cb0]7 <!ENTITY jdk-download-source "https://tiger.dev.java.net/jdk_5_0_05.html">
[5f0bab7]8 <!ENTITY jdk-download-binary "http://java.sun.com/j2se/1.5.0/download.jsp">
[bdf7e1b]9 <!ENTITY jdk-source-md5sum "http://anduin.linuxfromscratch.org/sources/BLFS/SVN/I-K/JDK/jdk-&jdk-src-version;.md5sums">
[99a7cb0]10 <!ENTITY jdk-bin-md5sum "2f83bf2a38fff1f8ac51b02ec7391ca3">
[bdf7e1b]11 <!ENTITY jdk-bin-size "48.7 MB">
[cb61e3a8]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">
[52d29f7]15]>
16
[5f0bab7]17<sect1 id="jdk" xreflabel="JDK-&jdk-src-version;">
[4378f935]18 <?dbhtml filename="jdk.html" ?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
[5eaa6873]25 <title>JDK-&jdk-src-version;</title>
[4378f935]26
27 <indexterm zone="jdk">
28 <primary sortas="a-JDK">JDK</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to JDK</title>
33
[dae2ba0b]34 <para>The <application>JDK</application> package contains
[cb61e3a8]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
[4378f935]39 <application>Java</application> aware.</para>
40
[cb61e3a8]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>
[4378f935]46
47 <para>In order to use the source code and patches, you must read and agree
[cb61e3a8]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>,
[99a7cb0]59 <filename>jdk-&jdk-src-string;-fcs-src-b05-jrl-13_oct_2005.jar</filename>
[cb61e3a8]60 (or optionally the JIUL version),
[99a7cb0]61 <filename>jdk-&jdk-src-string;-fcs-bin-b05-13_oct_2005.jar</filename>, and
62 <filename>jdk-&jdk-src-string;-mozilla_headers-b05-unix-26_aug_2005.jar</filename>.
[cb61e3a8]63 </para>
[4378f935]64
65 <bridgehead renderas="sect3">Package Information</bridgehead>
66 <itemizedlist spacing="compact">
67 <listitem>
68 <para>Binary download: <ulink url="&jdk-download-binary;"/></para>
69 </listitem>
70 <listitem>
[bdf7e1b]71 <para>Version used (binary): &jdk-bin-version;</para>
[4378f935]72 </listitem>
73 <listitem>
74 <para>Download MD5 sum (binary): &jdk-bin-md5sum;</para>
75 </listitem>
76 <listitem>
77 <para>Source download: <ulink url="&jdk-download-source;"/></para>
78 </listitem>
[428434e7]79
80 <!-- Commented out right now as there is no md5sums file on Anduin
81
[4378f935]82 <listitem>
[bdf7e1b]83 <para>Download MD5 sum (source): <ulink url="&jdk-source-md5sum;"/></para>
[4378f935]84 </listitem>
[428434e7]85
86 -->
87
[4378f935]88 <listitem>
89 <para>Download size (binary): &jdk-bin-size;</para>
90 </listitem>
91 <listitem>
92 <para>Download size (source): &jdk-src-size;</para>
93 </listitem>
94 <listitem>
95 <para>Estimated disk space required: &jdk-src-buildsize;</para>
96 </listitem>
97 <listitem>
98 <para>Estimated build time: &jdk-time;</para>
99 </listitem>
100 </itemizedlist>
101
102 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
103
104 <bridgehead renderas="sect4">Required Patches</bridgehead>
105 <itemizedlist spacing='compact'>
106 <listitem>
107 <para><ulink
[d71866ba]108 url="&patch-root;/jdk-&jdk-src-version;-gcc4-1.patch"/></para>
[4378f935]109 </listitem>
110 <listitem>
[dae2ba0b]111 <para><ulink
[4378f935]112 url="&patch-root;/jdk-&jdk-src-version;-motif_mkmsgcat-1.patch"/></para>
113 </listitem>
114 <listitem>
115 <para><ulink
116 url="&patch-root;/jdk-&jdk-src-version;-nptl-1.patch"/></para></listitem>
117 <listitem>
[dae2ba0b]118 <para><ulink
[4378f935]119 url="&patch-root;/jdk-&jdk-src-version;-remove_broken_demo-1.patch"/></para>
120 </listitem>
121 <listitem>
122 <para><ulink
[d71866ba]123 url="&patch-root;/jdk-&jdk-src-version;-remove_fixed_paths-1.patch"/></para>
[4378f935]124 </listitem>
125 </itemizedlist>
126
127 <bridgehead renderas="sect4">Recommended Patches</bridgehead>
128 <itemizedlist spacing='compact'>
129 <listitem>
[dae2ba0b]130 <para><ulink
[4378f935]131 url="&patch-root;/jdk-&jdk-src-version;-remove_debug_image-1.patch"/>
[bdf7e1b]132 (skips compiling of the <application>JDK</application> debug image)</para>
[4378f935]133 </listitem>
134 <listitem>
[dae2ba0b]135 <para><ulink
[4378f935]136 url="&patch-root;/jdk-&jdk-src-version;-static_cxx-1.patch"/>
[bdf7e1b]137 (forces dynamic linking to <application>GCC</application> libs)</para></listitem>
[1d61428d]138 </itemizedlist>
139
[0b584261]140 <bridgehead renderas="sect4">Optional Patch</bridgehead>
[1d61428d]141 <itemizedlist spacing='compact'>
[4378f935]142 <listitem>
[dae2ba0b]143 <para><ulink
[0619e6d]144 url="&patch-root;/jdk-&jdk-src-version;-xorg-6.8.1-1.patch"/>
[bdf7e1b]145 (only required if building against <xref linkend="xorg"/>)</para>
[4378f935]146 </listitem>
147 </itemizedlist>
148
[42a04581]149 <bridgehead renderas="sect3">JDK Dependencies</bridgehead>
[4378f935]150
[5eaa6873]151 <bridgehead renderas="sect4">Required (to Build JDK from Source)</bridgehead>
[dae2ba0b]152 <para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
153 <xref linkend="zip"/>,
154 <xref linkend="unzip"/>,
155 <xref linkend="cpio"/>,
156 <xref linkend="alsa"/>, and
[4378f935]157 <xref linkend="tcsh"/></para>
158
159 </sect2>
160
161 <sect2 role="installation">
162 <title>Installation of JDK</title>
163
164 <para>Both versions will be installed in parallel. You may choose to keep
165 either or both.</para>
166
167 <para>Install the precompiled <application>JDK</application> with the
168 following commands:</para>
169
[cb61e3a8]170<screen><userinput>sed -i "s:^PATH=.*::" jdk-&jdk-bin-string;-linux-i?86.bin &amp;&amp;
171chmod -v +x jdk-&jdk-bin-string;-linux-i?86.bin &amp;&amp;
[4378f935]172mkdir -v -p bin &amp;&amp;
173ln -v -sf /bin/true bin/more &amp;&amp;
[cb61e3a8]174yes | PATH=$PWD/bin:$PATH ./jdk-&jdk-bin-string;-linux-i?86.bin &amp;&amp;
175cd jdk&jdk-bin-version;</userinput></screen>
[2a7340c2]176
[4378f935]177 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[2a7340c2]178
[cb61e3a8]179<screen role="root"><userinput>install -v -d /opt/jdk/jdk-precompiled-&jdk-bin-version; &amp;&amp;
180mv -v * /opt/jdk/jdk-precompiled-&jdk-bin-version; &amp;&amp;
181chown -v -R root:root /opt/jdk/jdk-precompiled-&jdk-bin-version;</userinput></screen>
[014d11ad]182
[4378f935]183 <para>The binary version is now installed.</para>
[014d11ad]184
[dae2ba0b]185 <para>If you don't want to compile the source or are not in a position to
186 download the source owing to license restrictions, skip ahead to the
[4378f935]187 configuration section.</para>
[014d11ad]188
[cb61e3a8]189 <para>Save the existing path, and append the recently installed
190 <application>JDK</application>.</para>
[014d11ad]191
[cb61e3a8]192<screen><userinput>export JAVA_HOME=/opt/jdk/jdk-precompiled-&jdk-bin-version; &amp;&amp;
193export PATH_HOLD=${PATH} &amp;&amp;
194export PATH=${PATH}:${JAVA_HOME}/bin</userinput></screen>
[014d11ad]195
[b89c7ca]196 <para>The source code is contained in a self-extracting
197 <filename class='extension'>jar</filename> file. You
198 will need to be in a windowed environment to extract the sources.
[cb61e3a8]199 Create a directory to store the extracted sources. Choose the newly
200 created <filename class="directory">jdk-build</filename> directory
201 when prompted for the target directory.</para>
[014d11ad]202
[4378f935]203<screen><userinput>mkdir jdk-build &amp;&amp;
[5f0bab7]204cd jdk-build &amp;&amp;
[cb61e3a8]205for JAR in ../jdk-&jdk-src-string;*.jar
206 do java -jar ${JAR}
207done</userinput></screen>
[014d11ad]208
[b89c7ca]209 <para>Apply all the patches downloaded above:</para>
[014d11ad]210
[4378f935]211<screen><userinput>for PATCH in ../jdk-&jdk-src-version;*.patch
[5f0bab7]212 do patch -Np1 -i ${PATCH}
[4378f935]213done</userinput></screen>
[014d11ad]214
[4378f935]215 <para>Set/unset some variables which affect the build:</para>
[2a7340c2]216
[4378f935]217<screen><userinput>export ALT_BOOTDIR="$JAVA_HOME" &amp;&amp;
[52d29f7]218unset JAVA_HOME &amp;&amp;
219unset CLASSPATH
220unset CFLAGS
221unset CXXFLAGS
222unset LDFLAGS
223export ALT_DEVTOOLS_PATH="/usr/bin" &amp;&amp;
[99a7cb0]224export BUILD_NUMBER="update-05" &amp;&amp;
[52d29f7]225export DEV_ONLY=true &amp;&amp;
[cb61e3a8]226export ALT_MOZILLA_HEADERS_PATH=$PWD/share/plugin/ &amp;&amp;
[52d29f7]227export INSANE=true &amp;&amp;
228export MAKE_VERBOSE=true &amp;&amp;
[4378f935]229export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts</userinput></screen>
[014d11ad]230
[4378f935]231 <warning>
[dae2ba0b]232 <para>Setting CFLAGS/CXXFLAGS/LDFLAGS is guaranteed to make the build
[0b584261]233 fail. If you are interested in optimizing the build, set
234 OTHER_CFLAGS/OTHER_CXXFLAGS/OTHER_LDFLAGS instead. -O3, even in
235 OTHER_C{,XX}FLAGS, is known to cause a build failure.</para>
[4378f935]236 </warning>
[014d11ad]237
[40d6bab]238 <para>Additionally, if you would like to <command>make</command> in
239 parallel, add the following:</para>
[2a7340c2]240
[4378f935]241<screen><userinput>export HOTSPOT_BUILD_JOBS=<replaceable>[3]</replaceable></userinput></screen>
[014d11ad]242
[4378f935]243 <para>Build the <application>JDK</application> with the following
244 commands. There will be a lot of messages about missing files that look like
[bdf7e1b]245 errors. These are caused by not meeting the expected build environment
[dae2ba0b]246 (Red Hat). As long as the build doesn't stop, the messages
[4378f935]247 are harmless.</para>
[014d11ad]248
[4378f935]249<screen><userinput>cd control/make &amp;&amp;
[52d29f7]250make &amp;&amp;
[4378f935]251cd ../build/linux-i?86</userinput></screen>
[2a7340c2]252
[dae2ba0b]253 <para>Now, as the <systemitem class="username">root</systemitem> user,
[4378f935]254 install the <application>JDK</application>:</para>
[2a7340c2]255
[4378f935]256<screen role="root"><userinput>cp -v -a j2sdk-image /opt/jdk/jdk-&jdk-src-version; &amp;&amp;
[61e058b]257chown -v -R root:root /opt/jdk/jdk-&jdk-src-version; &amp;&amp;
[6dd0164]258ln -sf motif21/libmawt.so /opt/jdk/jdk-&jdk-src-version;/jre/lib/i386/</userinput></screen>
[2a7340c2]259
[40d6bab]260 <para>Restore the unprivileged user's environment using the following
261 commands:</para>
[2a7340c2]262
[cb61e3a8]263<screen><userinput>unset ALT_BOOTDIR &amp;&amp;
[2a7340c2]264unset ALT_DEVTOOLS_PATH &amp;&amp;
265unset BUILD_NUMBER &amp;&amp;
266unset DEV_ONLY &amp;&amp;
[cb61e3a8]267unset ALT_MOZILLA_HEADERS_PATH &amp;&amp;
[2a7340c2]268unset INSANE &amp;&amp;
269unset MAKE_VERBOSE &amp;&amp;
[cb61e3a8]270unset ALT_CACERTS_FILE &amp;&amp;
271export PATH=${PATH_HOLD} &amp;&amp;
272unset PATH_HOLD</userinput></screen>
[014d11ad]273
[4378f935]274 </sect2>
[52d29f7]275
[4378f935]276 <sect2 role="commands">
277 <title>Command Explanations</title>
[014d11ad]278
[40d6bab]279 <para><command>export ALT_BOOTDIR="$JAVA_HOME"</command>: This variable sets
[4378f935]280 the location of the bootstrap <application>JDK</application>.</para>
[014d11ad]281
[cb61e3a8]282 <para><command>export ALT_MOZILLA_HEADERS_PATH=$PWD/share/plugin/</command>:
283 This tells the build exactly where to find the
284 <application>Mozilla</application> headers. This has changed since the
285 previous version and is not mentioned in the installation documentation
286 included with the package source.</para>
[014d11ad]287
[4378f935]288 <para><command>export ALT_DEVTOOLS_PATH="/usr/bin"</command>: This
289 changes the location where the build finds the needed executables.</para>
[014d11ad]290
[dae2ba0b]291 <para><command>export BUILD_NUMBER="blfs-&blfs-version;"</command>:
292 This will help you identify the compiled version of the runtime environment
293 and virtual machine by appending this information to the version
[4378f935]294 string.</para>
[014d11ad]295
[4378f935]296 <para><command>export DEV_ONLY=true</command>: This command
297 skips compiling the documentation and eliminates a dependency on
298 <application>rpm</application>.</para>
[014d11ad]299
[4378f935]300 <para><command>unset JAVA_HOME</command>: This clears the
[dae2ba0b]301 <envar>JAVA_HOME</envar> variable as recommended by the build
[4378f935]302 instructions.</para>
[014d11ad]303
[4378f935]304 <para><command>unset CLASSPATH</command>: This clears the
[40d6bab]305 <envar>CLASSPATH</envar> variable as recommended by the build
[4378f935]306 instructions.</para>
[014d11ad]307
[dae2ba0b]308 <para><command>unset CFLAGS/CXXFLAGS...</command>: These variables cause
[4378f935]309 miscompilation of the build. Never set them.</para>
[014d11ad]310
[dae2ba0b]311 <para><command>export INSANE=true</command>: The certified platform for the
312 build is Redhat Enterprise Advanced Server 2.1. This variable ensures that
313 all the errors related to compiling on a non-certified platform will be
[4378f935]314 displayed as warnings instead of errors.</para>
[014d11ad]315
[dae2ba0b]316 <para><command>export MAKE_VERBOSE=true</command>: Allows the compiler
[4378f935]317 commands to be displayed on the console.</para>
[014d11ad]318
[4378f935]319 <para><command>export ALT_CACERTS_FILE...</command>: Specifies the
[dae2ba0b]320 certificate file to use (from the installed binary
[4378f935]321 <application>JDK</application>).</para>
[014d11ad]322
[61e058b]323 <para><command>ln -sf motif21/libmawt.so
[6dd0164]324 /opt/jdk/jdk-&jdk-src-version;/jre/lib/i386/</command>: This fixes
325 linking issues with other applications that expect to find the
326 <application>motif</application> libraries with the other
327 <application>JDK</application> libraries.</para>
[61e058b]328
[4378f935]329 </sect2>
[52d29f7]330
[4378f935]331 <sect2 role="configuration">
332 <title>Configuring JDK</title>
[014d11ad]333
[4378f935]334 <sect3>
335 <title>Configuration Information</title>
[014d11ad]336
[bdf7e1b]337 <para>There are now two Java 2 SDKs installed in
[4378f935]338 <filename>/opt/jdk</filename>. You should decide on which one you
[cb61e3a8]339 would like to use as the default. For example if you decide to use the
340 source compiled <application>JDK</application>, do the following as the
[ceafb03e]341 <systemitem class="username">root</systemitem> user:</para>
[014d11ad]342
[8a64f4b]343<screen role="root"><userinput>ln -v -nsf jdk-&jdk-src-version; /opt/jdk/jdk</userinput></screen>
[014d11ad]344
[4378f935]345 <para>Add the following <filename>jdk.sh</filename> shell startup file to
[dae2ba0b]346 the <filename>/etc/profile.d</filename> directory with the following
[ceafb03e]347 commands as the <systemitem class="username">root</systemitem> user:</para>
[014d11ad]348
[8a64f4b]349<screen role="root"><userinput>cat &gt; /etc/profile.d/jdk.sh &lt;&lt; "EOF"
[4378f935]350<literal># Begin /etc/profile.d/jdk.sh
[014d11ad]351
[5f0bab7]352# Set JAVA_HOME directory
353JAVA_HOME=/opt/jdk/jdk
354export JAVA_HOME
[014d11ad]355
[92b34a8]356# Adjust PATH
[5f0bab7]357pathappend ${JAVA_HOME}/bin PATH
[014d11ad]358
[5f0bab7]359# Auto Java Classpath Updating
360# Create symlinks to this directory for auto classpath setting
361AUTO_CLASSPATH_DIR=/usr/lib/classpath
362if [ -z ${CLASSPATH} ]; then
363 CLASSPATH=.:${AUTO_CLASSPATH_DIR}
364else
[4859a7f]365 CLASSPATH="${CLASSPATH}:.:${AUTO_CLASSPATH_DIR}"
[5f0bab7]366fi
[014d11ad]367
[92b34a8]368# Check for empty AUTO_CLASSPATH_DIR
369ls ${AUTO_CLASSPATH_DIR}/*.jar &amp;> /dev/null &amp;&amp;
370for i in ${AUTO_CLASSPATH_DIR}/*.jar
371 do CLASSPATH=${CLASSPATH}:"${i}"
[5f0bab7]372done
[92b34a8]373export CLASSPATH
[014d11ad]374
[4378f935]375# End /etc/profile.d/jdk.sh</literal>
376EOF</userinput></screen>
377
[40d6bab]378 <para>The <application>Java</application> plugin is located in
[4378f935]379 <filename class="directory">$JAVA_HOME/jre/plugin/i?86/ns7/</filename>.
[40d6bab]380 Make a symbolic link to the file in that directory from your browser(s)
[4378f935]381 plugins directory.</para>
382
[40d6bab]383 <important>
[4378f935]384 <para>The plugin must be a symlink for it to work. If not, the browsers
[40d6bab]385 will crash when you attempt to load a <application>Java</application>
[4378f935]386 application.</para>
[40d6bab]387 </important>
[4378f935]388
389 </sect3>
390
391 </sect2>
392
393 <sect2 role="content">
394 <title>Contents</title>
395
396 <segmentedlist>
397 <segtitle>Installed Programs</segtitle>
398 <segtitle>Installed Libraries</segtitle>
399 <segtitle>Installed Directory</segtitle>
400
401 <seglistitem>
[cb61e3a8]402 <seg>appletviewer, extcheck, idlj, jar, jarsigner, java, javac,
403 javadoc,javah, javap, javaws, jdb, keytool, native2ascii, orbd,
404 policytool, rmic, rmid, rmiregistry, serialver, servertool, and
405 tnameserv</seg>
406 <seg><envar>$JAVA_HOME</envar>/lib/*,
407 <envar>$JAVA_HOME</envar>/jre/lib/*,
[4378f935]408 and libjavaplugin_oji.so</seg>
409 <seg>/opt/jdk</seg>
410 </seglistitem>
411 </segmentedlist>
412
413 <variablelist>
414 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
415 <?dbfo list-presentation="list"?>
416 <?dbhtml list-presentation="table"?>
417
418 <varlistentry id="appletviewer">
419 <term><command>appletviewer</command></term>
420 <listitem>
[dae2ba0b]421 <para>runs <application>Java</application> applets outside of the
[4378f935]422 context of a browser.</para>
423 <indexterm zone="jdk appletviewer">
424 <primary sortas="b-appletviewer">appletviewer</primary>
425 </indexterm>
426 </listitem>
427 </varlistentry>
428
429 <varlistentry id="extcheck">
430 <term><command>extcheck</command></term>
431 <listitem>
[dae2ba0b]432 <para>checks a specified <filename>JAR</filename> file for title
433 and version conflicts with any extensions installed in the
[4378f935]434 <application>JDK</application> software.</para>
435 <indexterm zone="jdk extcheck">
436 <primary sortas="b-extcheck">extcheck</primary>
437 </indexterm>
438 </listitem>
439 </varlistentry>
440
441 <varlistentry id="idlj">
442 <term><command>idlj</command></term>
443 <listitem>
[dae2ba0b]444 <para>generates <application>Java</application> bindings from a
[4378f935]445 given IDL file.</para>
446 <indexterm zone="jdk idlj">
447 <primary sortas="b-idlj">idlj</primary>
448 </indexterm>
449 </listitem>
[0619e6d]450 </varlistentry>
[4378f935]451
452 <varlistentry id="jar">
453 <term><command>jar</command></term>
454 <listitem>
[0619e6d]455 <para>combines multiple files into a single <filename>JAR</filename>
[4378f935]456 archive file.</para>
457 <indexterm zone="jdk jar">
458 <primary sortas="b-jar">jar</primary>
459 </indexterm>
460 </listitem>
461 </varlistentry>
462
463 <varlistentry id="jarsigner">
464 <term><command>jarsigner</command></term>
465 <listitem>
[dae2ba0b]466 <para>signs <filename>JAR</filename> (Java ARchive) files and verifies the
[4378f935]467 signatures and integrity of a signed <filename>JAR</filename>.</para>
468 <indexterm zone="jdk jarsigner">
469 <primary sortas="b-jarsigner">jarsigner</primary>
470 </indexterm>
471 </listitem>
472 </varlistentry>
473
474 <varlistentry id="java">
475 <term><command>java</command></term>
476 <listitem>
[dae2ba0b]477 <para>launches a <application>Java</application> application by
478 starting a <application>Java</application> runtime environment, loading a
[4378f935]479 specified class and invoking its main method.</para>
480 <indexterm zone="jdk java">
481 <primary sortas="b-java">java</primary>
482 </indexterm>
483 </listitem>
484 </varlistentry>
485
486 <varlistentry id="javac">
487 <term><command>javac</command></term>
488 <listitem>
[dae2ba0b]489 <para>reads class and interface definitions, written in the
490 <application>Java</application> programming language, and compiles
[4378f935]491 them into bytecode class files.</para>
492 <indexterm zone="jdk javac">
493 <primary sortas="b-javac">javac</primary>
494 </indexterm>
495 </listitem>
496 </varlistentry>
497
498 <varlistentry id="javadoc">
499 <term><command>javadoc</command></term>
500 <listitem>
[dae2ba0b]501 <para>parses the declarations and documentation comments in a set of
502 <application>Java</application> source files and produces a corresponding
503 set of HTML pages describing the classes, interfaces,
[4378f935]504 constructors, methods, and fields.</para>
505 <indexterm zone="jdk javadoc">
506 <primary sortas="b-javadoc">javadoc</primary>
507 </indexterm>
508 </listitem>
509 </varlistentry>
510
511 <varlistentry id="javah">
512 <term><command>javah</command></term>
513 <listitem>
[dae2ba0b]514 <para>generates <application>C</application> header and source files
[4378f935]515 that are needed to implement native methods.</para>
516 <indexterm zone="jdk javah">
517 <primary sortas="b-javah">javah</primary>
518 </indexterm>
519 </listitem>
520 </varlistentry>
521
522 <varlistentry id="javap">
523 <term><command>javap</command></term>
524 <listitem>
525 <para>disassembles a <application>Java</application> class file.</para>
526 <indexterm zone="jdk javap">
527 <primary sortas="b-javap">javap</primary>
528 </indexterm>
529 </listitem>
530 </varlistentry>
531
532 <varlistentry id="javaws">
533 <term><command>javaws</command></term>
534 <listitem>
[dae2ba0b]535 <para>launches <application>Java </application>application/applets
[4378f935]536 hosted on a network.</para>
537 <indexterm zone="jdk javaws">
538 <primary sortas="b-javaws">javaws</primary>
539 </indexterm>
540 </listitem>
541 </varlistentry>
542
543 <varlistentry id="jdb">
544 <term><command>jdb</command></term>
545 <listitem>
[dae2ba0b]546 <para>is a simple command-line debugger for
[4378f935]547 <application>Java</application> classes.</para>
548 <indexterm zone="jdk jdb">
549 <primary sortas="b-jdb">jdb</primary>
550 </indexterm>
551 </listitem>
552 </varlistentry>
553
554 <varlistentry id="keytool">
555 <term><command>keytool</command></term>
556 <listitem>
557 <para>is a key and certificate management utility.</para>
558 <indexterm zone="jdk keytool">
559 <primary sortas="b-keytool">keytool</primary>
560 </indexterm>
561 </listitem>
562 </varlistentry>
563
564 <varlistentry id="native2ascii">
565 <term><command>native2ascii</command></term>
566 <listitem>
[dae2ba0b]567 <para> converts files that contain non-supported character encoding
[4378f935]568 into files containing Latin-1 or Unicode-encoded characters.</para>
569 <indexterm zone="jdk native2ascii">
570 <primary sortas="b-native2ascii">native2ascii</primary>
571 </indexterm>
572 </listitem>
573 </varlistentry>
574
575 <varlistentry id="orbd">
576 <term><command>orbd</command></term>
577 <listitem>
[dae2ba0b]578 <para>is used to enable clients to transparently locate and invoke
[4378f935]579 persistent objects on servers in the CORBA environment.</para>
580 <indexterm zone="jdk orbd">
581 <primary sortas="b-orbd">orbd</primary>
582 </indexterm>
583 </listitem>
584 </varlistentry>
585
586 <varlistentry id="policytool">
587 <term><command>policytool</command></term>
588 <listitem>
589 <para>creates and manages a policy file graphically.</para>
590 <indexterm zone="jdk policytool">
591 <primary sortas="b-policytool">policytool</primary>
592 </indexterm>
593 </listitem>
594 </varlistentry>
595
596 <varlistentry id="rmic">
597 <term><command>rmic</command></term>
598 <listitem>
[dae2ba0b]599 <para>generates stub and skeleton class files for remote objects
600 from the names of compiled <application>Java</application> classes that
[4378f935]601 contain remote object implementations.</para>
602 <indexterm zone="jdk rmic">
603 <primary sortas="b-rmic">rmic</primary>
604 </indexterm>
605 </listitem>
606 </varlistentry>
607
608 <varlistentry id="rmid">
609 <term><command>rmid</command></term>
610 <listitem>
611 <para>starts the activation system daemon.</para>
612 <indexterm zone="jdk rmid">
613 <primary sortas="b-rmid">rmid</primary>
614 </indexterm>
615 </listitem>
616 </varlistentry>
617
618 <varlistentry id="rmiregistry">
619 <term><command>rmiregistry</command></term>
620 <listitem>
[dae2ba0b]621 <para>creates and starts a remote object registry on the specified
[4378f935]622 port on the current host.</para>
623 <indexterm zone="jdk rmiregistry">
624 <primary sortas="b-rmiregistry">rmiregistry</primary>
625 </indexterm>
626 </listitem>
627 </varlistentry>
628
629 <varlistentry id="serialver">
630 <term><command>serialver</command></term>
631 <listitem>
[dae2ba0b]632 <para>returns the serialVersionUID for one or more classes in a
[4378f935]633 form suitable for copying into an evolving class.</para>
634 <indexterm zone="jdk serialver">
635 <primary sortas="b-serialver">serialver</primary>
636 </indexterm>
637 </listitem>
638 </varlistentry>
639
640 <varlistentry id="servertool">
641 <term><command>servertool</command></term>
642 <listitem>
[dae2ba0b]643 <para>provides an ease-of-use interface for application programmers
[4378f935]644 to register, unregister, startup and shutdown a server.</para>
645 <indexterm zone="jdk servertool">
646 <primary sortas="b-servertool">servertool</primary>
647 </indexterm>
648 </listitem>
649 </varlistentry>
650
651 <varlistentry id="tnameserv">
652 <term><command>tnameserv</command></term>
653 <listitem>
654 <para>starts the <application>Java</application> IDL name server.</para>
655 <indexterm zone="jdk tnameserv">
656 <primary sortas="b-tnameserv">tnameserv</primary>
657 </indexterm>
658 </listitem>
659 </varlistentry>
660
661 </variablelist>
662
663 </sect2>
[74c1100]664
665</sect1>
Note: See TracBrowser for help on using the repository browser.