source: general/prog/jdk.xml@ 71cd2a5a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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
Last change on this file since 71cd2a5a was 71cd2a5a, checked in by Randy McMurchy <randy@…>, 17 years ago

Replaced some /usr/X11R6 hacks with references to the compatibility symlink

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

  • Property mode set to 100644
File size: 28.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY jdk-download-binary "http://java.sun.com/javase/downloads/index_jdk5.jsp">
8 <!ENTITY jdk-bin-md5sum "14ba8eccfd97f6bd23d8dc32b38b1121">
9 <!ENTITY jdk-bin-size "49 MB">
10 <!ENTITY jdk-bin-buildsize "150 MB">
11
12 <!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">
13 <!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">
14 <!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">
15 <!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">
16
17 <!ENTITY jdk-source-jrl-md5sum "e6661cce9c94009e2fa909a151c0160c">
18 <!ENTITY jdk-source-jiul-md5sum "be3653bc93d9efe715cb7a64c513eeef">
19 <!ENTITY jdk-source-bin-md5sum "7c952fba37101c154f1636dc401aa093">
20 <!ENTITY jdk-source-moz-md5sum "16ed66d11701496e3b4e10a24edd3f1b">
21
22 <!ENTITY jdk-source-jrl-size "57 MB">
23 <!ENTITY jdk-source-jiul-size "57 MB">
24 <!ENTITY jdk-source-bin-size "2.2 MB">
25 <!ENTITY jdk-source-moz-size "7.4 MB">
26
27 <!ENTITY jdk-src-buildsize "1.9 GB">
28 <!ENTITY jdk-time "30 SBU">
29]>
30
31<sect1 id="jdk" xreflabel="JDK-&jdk-src-version;">
32 <?dbhtml filename="jdk.html" ?>
33
34 <sect1info>
35 <othername>$LastChangedBy$</othername>
36 <date>$Date$</date>
37 </sect1info>
38
39 <title>JDK-&jdk-src-version;</title>
40
41 <indexterm zone="jdk">
42 <primary sortas="a-JDK">JDK</primary>
43 </indexterm>
44
45 <sect2 role="package">
46 <title>Introduction to JDK</title>
47
48 <para>The <application>JDK</application> package contains
49 Sun's <application>Java</application> development environment. This is
50 useful for developing <application>Java</application> programs and provides
51 the runtime environment necessary to run <application>Java</application>
52 programs. It also includes a plug-in for browsers so that they can be
53 <application>Java</application> aware.</para>
54
55 <!-- Previously, the plugin included
56 in the <application>JDK</application> binary package was unusable on LFS
57 owing to incompatibilities with <application>GCC</application>-3 compiled
58 browsers. This is not the case anymore.</para>
59
60 <para>In order to use the source code and patches, you must read and agree
61 to the Sun <ulink url="http://www.java.net/jrl.csp"> Java Research
62 License</ulink> or optionally, the Sun <ulink
63 url="http://java.net/jiul.csp">Java Internal Use License</ulink>. In
64 addition, the source code is not allowed to be downloaded to some
65 countries, so for users in those countries, the binary is the only
66 option.</para> -->
67
68 <para>The <application>JDK</application> comes in two flavors, a
69 precompiled binary and a source package. You will first need to download
70 and install the binary version of the <application>JDK</application>
71 (you'll need to click and agree to the <quote>Sun Microsystems, Inc.
72 Binary Code License Agreement</quote>). To build from the source, you will
73 also need to download the additional files and patches to complete the
74 source build as detailed below. Note that in some countries you cannot
75 download the source code.</para>
76
77 <bridgehead renderas="sect3">Precompiled Package Information</bridgehead>
78 <itemizedlist spacing="compact">
79 <listitem>
80 <para>Binary download (jdk-&jdk-bin-string;-linux-i586.bin):
81 <ulink url="&jdk-download-binary;"/></para>
82 </listitem>
83 <listitem>
84 <para>Download MD5 sum: &jdk-bin-md5sum;</para>
85 </listitem>
86 <listitem>
87 <para>Download size (binary): &jdk-bin-size;</para>
88 </listitem>
89 <listitem>
90 <para>Estimated disk space required: &jdk-bin-buildsize;</para>
91 </listitem>
92 </itemizedlist>
93
94 <bridgehead renderas="sect3">Source Package Information</bridgehead>
95 <para>The source code is distributed under two licenses and most will need
96 the JRL version. The JIUL version is listed as well, but you only need to
97 download one or the other.</para>
98
99 <itemizedlist spacing="compact">
100 <listitem>
101 <para>JRL Source
102 <simplelist>
103 <member><ulink url="&jdk-download-source-jrl;"/></member>
104 <member>&jdk-source-jrl-md5sum;</member>
105 <member>&jdk-source-jrl-size;</member>
106 </simplelist>
107 </para>
108 </listitem>
109 <listitem>
110 <para>JIUL Source
111 <simplelist>
112 <member><ulink url="&jdk-download-source-jiul;"/></member>
113 <member>&jdk-source-jiul-md5sum;</member>
114 <member>&jdk-source-jiul-size;</member>
115 </simplelist>
116 </para>
117 </listitem>
118 <listitem>
119 <para>Source Binaries
120 <simplelist>
121 <member><ulink url="&jdk-download-source-bin;"/></member>
122 <member>&jdk-source-bin-md5sum;</member>
123 <member>&jdk-source-bin-size;</member>
124 </simplelist>
125 </para>
126 </listitem>
127 <listitem>
128 <para>Mozilla Headers
129 <simplelist>
130 <member><ulink url="&jdk-download-source-moz;"/></member>
131 <member>&jdk-source-moz-md5sum;</member>
132 <member>&jdk-source-moz-size;</member>
133 </simplelist>
134 </para>
135 </listitem>
136 <listitem>
137 <para>Estimated disk space required: &jdk-src-buildsize;</para>
138 </listitem>
139 <listitem>
140 <para>Estimated build time: &jdk-time;</para>
141 </listitem>
142 </itemizedlist>
143
144 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
145
146 <bridgehead renderas="sect4">Required Patches</bridgehead>
147 <itemizedlist spacing='compact'>
148 <listitem>
149 <para><ulink
150 url="&patch-root;/jdk-&jdk-src-version;-gcc4-1.patch"/></para>
151 </listitem>
152 <listitem>
153 <para><ulink
154 url="&patch-root;/jdk-&jdk-src-version;-motif_fixes-1.patch"/></para>
155 </listitem>
156 <listitem>
157 <para><ulink
158 url="&patch-root;/jdk-&jdk-src-version;-nptl-1.patch"/></para></listitem>
159 <listitem>
160 <para><ulink
161 url="&patch-root;/jdk-&jdk-src-version;-remove_broken_demo-1.patch"/></para>
162 </listitem>
163 <listitem>
164 <para><ulink
165 url="&patch-root;/jdk-&jdk-src-version;-remove_fixed_paths-1.patch"/></para>
166 </listitem>
167 </itemizedlist>
168
169 <bridgehead renderas="sect4">Recommended Patches</bridgehead>
170 <itemizedlist spacing='compact'>
171 <listitem>
172 <para><ulink
173 url="&patch-root;/jdk-&jdk-src-version;-remove_debug_image-1.patch"/>
174 (skips compiling of the <application>JDK</application> debug image)</para>
175 </listitem>
176 <listitem>
177 <para><ulink
178 url="&patch-root;/jdk-&jdk-src-version;-static_cxx-1.patch"/>
179 (forces dynamic linking to <application>GCC</application> libs)</para></listitem>
180 </itemizedlist>
181
182 <bridgehead renderas="sect3">JDK Dependencies</bridgehead>
183
184 <bridgehead renderas="sect4">Required (to Build JDK from Source)</bridgehead>
185 <para role="required"><xref linkend="x-window-system"/>,
186 <xref linkend="zip"/>,
187 <xref linkend="unzip"/>,
188 <xref linkend="cpio"/>,
189 <xref linkend="alsa-lib"/>, and
190 <xref linkend="tcsh"/></para>
191
192 <para condition="html" role="usernotes">User Notes:
193 <ulink url="&blfs-wiki;/jdk"/></para>
194
195 </sect2>
196
197 <sect2 role="installation">
198 <title>Installation of JDK</title>
199
200 <para>The instructions below install both the binary and source versions.
201 You may stop after installing the binary version or continue on installing
202 the source version. You can choose to keep either or both.</para>
203
204 <tip>
205 <para>The <command>./jdk-mod.bin</command>
206 command below unpacks the distribution into a
207 <filename class='directory'>jdk&jdk-bin-version;</filename> directory.
208 You will be required to view, and then accept (by entering a
209 <keycap>y</keycap> keypress), a license agreement before any files are
210 unpacked. If you are scripting (automating) the build, you'll need to
211 account for this. There is information about automating build commands
212 in the <xref linkend="automating-builds"/> section of Chapter 2. Towards
213 the end of this section, specific information for automating this type of
214 installation is discussed.</para>
215 </tip>
216
217 <para>Normally in BLFS, the files are unpacked into a subdirectory
218 and the starting point for the installation procedures is that
219 location. For this application only, start in the directory where all
220 the downloaded files are located.</para>
221
222 <para>Install the precompiled <application>JDK</application> with the
223 following commands:</para>
224
225<screen><userinput>install -m755 jdk-&jdk-bin-string;-linux-i?86.bin jdk-mod.bin &amp;&amp;
226sed -i "s:^PATH=.*::" jdk-mod.bin &amp;&amp;
227./jdk-mod.bin &amp;&amp;
228rm jdk-mod.bin</userinput></screen>
229
230 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
231
232<screen role="root"><userinput>cd jdk&jdk-bin-version; &amp;&amp;
233install -v -m755 -d /opt/jdk/jdk-precompiled-&jdk-bin-version; &amp;&amp;
234mv -v * /opt/jdk/jdk-precompiled-&jdk-bin-version; &amp;&amp;
235chown -v -R root:root /opt/jdk/jdk-precompiled-&jdk-bin-version; &amp;&amp;
236ln -v -sf motif21/libmawt.so \
237 /opt/jdk/jdk-precompiled-&jdk-bin-version;/jre/lib/i386/ &amp;&amp;
238cd ..</userinput></screen>
239
240 <para>The binary version is now installed.</para>
241
242 <para>If you don't want to compile the source or are not in a position to
243 download the source owing to license restrictions, skip ahead to the
244 configuration section.</para>
245
246 <para>Save the existing path, and append the recently installed
247 <application>JDK</application>.</para>
248
249<screen><userinput>export JAVA_HOME=/opt/jdk/jdk-precompiled-&jdk-bin-version; &amp;&amp;
250export PATH_HOLD=${PATH} &amp;&amp;
251export PATH=${PATH}:${JAVA_HOME}/bin</userinput></screen>
252
253 <para>The source code is contained in self-extracting
254 <filename class='extension'>jar</filename> files. You
255 will need to be in a windowed environment to extract the sources.
256 Create a directory to store the extracted sources. Choose the newly
257 created <filename class="directory">jdk-build</filename> directory
258 when prompted for the target directory.</para>
259
260<screen><userinput>mkdir jdk-build &amp;&amp;
261cd jdk-build &amp;&amp;
262for JAR in ../jdk-&jdk-src-string;*.jar
263 do java -jar ${JAR}
264done</userinput></screen>
265
266 <para>Apply all the patches downloaded above:</para>
267
268<screen><userinput>for PATCH in ../jdk-&jdk-src-version;*.patch
269 do patch -Np1 -i ${PATCH}
270done</userinput></screen>
271
272 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
273 href="../../xincludes/X11R6_symlink.xml"/>
274
275 <!-- <para>If your <application>X Window System</application> is installed into
276 any prefix other than <filename class="directory">/usr/X11R6</filename>,
277 execute the following command, replacing
278 <replaceable>&lt;PREFIX&gt;</replaceable> with the installation prefix of
279 the <application>X Window System</application>:</para>
280
281<screen><userinput>find . -type f -exec sed -i 's@/usr/X11R6@<replaceable>&lt;PREFIX&gt;</replaceable>@g' {} \;</userinput></screen> -->
282
283 <para>Set/unset some variables which affect the build:</para>
284
285<screen><userinput>export ALT_BOOTDIR=${JAVA_HOME} &amp;&amp;
286export CLASSPATH_HOLD=${CLASSPATH} &amp;&amp;
287unset JAVA_HOME CLASSPATH CFLAGS CXXFLAGS LDFLAGS &amp;&amp;
288export ALT_DEVTOOLS_PATH="/usr/bin" &amp;&amp;
289export BUILD_NUMBER="update-10" &amp;&amp;
290export DEV_ONLY=true &amp;&amp;
291export ALT_MOZILLA_HEADERS_PATH=${PWD}/share/plugin/ &amp;&amp;
292export INSANE=true &amp;&amp;
293export MAKE_VERBOSE=true &amp;&amp;
294export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts</userinput></screen>
295
296 <warning>
297 <para>Setting CFLAGS/CXXFLAGS/LDFLAGS is guaranteed to make the build
298 fail. If you are interested in optimizing the build, set
299 OTHER_CFLAGS/OTHER_CXXFLAGS/OTHER_LDFLAGS instead. -O3, even in
300 OTHER_C{,XX}FLAGS, is known to cause a build failure.</para>
301 </warning>
302
303 <para>Additionally, if you would like to <command>make</command> in
304 parallel, add the following:</para>
305
306<screen><userinput>export HOTSPOT_BUILD_JOBS=<replaceable>&lt;3&gt;</replaceable></userinput></screen>
307
308 <para>Build the <application>JDK</application> with the following
309 commands. There will be a few messages about missing files that look like
310 errors. These are caused by not meeting the expected build environment
311 (Red Hat). As long as the build doesn't stop, the messages
312 are harmless.</para>
313
314<screen><userinput>pushd control/make &amp;&amp;
315make &amp;&amp;
316popd</userinput></screen>
317
318 <para>To test the results, you can run one of the provided demo programs
319 using the newly created <command>java</command> binary. Issue the
320 following commands:</para>
321
322<screen><userinput>pushd control/build/linux-i?86/j2sdk-image/demo/jfc/Java2D &amp;&amp;
323../../../bin/java -jar Java2Demo.jar &amp;&amp;
324popd</userinput></screen>
325
326 <para>Now, as the <systemitem class="username">root</systemitem> user,
327 install the <application>JDK</application>:</para>
328
329<screen role="root"><userinput>pushd control/build/linux-i?86 &amp;&amp;
330cp -v -a j2sdk-image /opt/jdk/jdk-&jdk-src-version; &amp;&amp;
331chown -v -R root:root /opt/jdk/jdk-&jdk-src-version; &amp;&amp;
332ln -v -sf motif21/libmawt.so /opt/jdk/jdk-&jdk-src-version;/jre/lib/i386/ &amp;&amp;
333find /opt/jdk/jdk-&jdk-src-version; \
334 -type f -perm 600 -exec chmod -v 644 {} \; &amp;&amp;
335find /opt/jdk/jdk-&jdk-src-version; \
336 -name "*.so" -exec chmod -v 755 {} \; &amp;&amp;
337chmod -v 755 /opt/jdk/jdk-&jdk-src-version;/jre/bin/* &amp;&amp;
338popd</userinput></screen>
339
340 <para>Restore the unprivileged user's environment using the following
341 commands:</para>
342
343<screen><userinput>export JAVA_HOME=${ALT_BOOTDIR} &amp;&amp;
344export CLASSPATH=${CLASSPATH_HOLD} &amp;&amp;
345export PATH=${PATH_HOLD} &amp;&amp;
346unset ALT_BOOTDIR CLASSPATH_HOLD ALT_DEVTOOLS_PATH BUILD_NUMBER &amp;&amp;
347unset DEV_ONLY ALT_MOZILLA_HEADERS_PATH INSANE MAKE_VERBOSE &amp;&amp;
348unset ALT_CACERTS_FILE PATH_HOLD</userinput></screen>
349
350 </sect2>
351
352 <sect2 role="commands">
353 <title>Command Explanations</title>
354
355 <para><command>export ALT_BOOTDIR=${JAVA_HOME}</command>: This variable sets
356 the location of the bootstrap <application>JDK</application>.</para>
357
358 <para><command>export ALT_MOZILLA_HEADERS_PATH=${PWD}/share/plugin/</command>:
359 This tells the build exactly where to find the
360 <application>Mozilla</application> headers. This has changed since the
361 previous version and is not mentioned in the installation documentation
362 included with the package source.</para>
363
364 <para><command>export ALT_DEVTOOLS_PATH="/usr/bin"</command>: This
365 changes the location where the build finds the needed executables.</para>
366
367 <para><command>export BUILD_NUMBER="update-10"</command>:
368 This will help you identify the compiled version of the runtime environment
369 and virtual machine by appending this information to the version
370 string.</para>
371
372 <para><command>export DEV_ONLY=true</command>: This command
373 skips compiling the documentation and eliminates a dependency on
374 <application>rpm</application>.</para>
375
376 <para><command>unset JAVA_HOME CLASSPATH CFLAGS CXXFLAGS LDFLAGS</command>:
377 These variables cause miscompilation of the build. Never set them.</para>
378
379 <para><command>export INSANE=true</command>: The certified platform for the
380 build is Redhat Enterprise Advanced Server 2.1. This variable ensures that
381 all the errors related to compiling on a non-certified platform will be
382 displayed as warnings instead of errors.</para>
383
384 <para><command>export MAKE_VERBOSE=true</command>: Allows the compiler
385 commands to be displayed on the console.</para>
386
387 <para><command>export ALT_CACERTS_FILE...</command>: Specifies the
388 certificate file to use (from the installed binary
389 <application>JDK</application>).</para>
390
391 <para><command>ln -sf motif21/libmawt.so
392 /opt/jdk/jdk-&jdk-src-version;/jre/lib/i386/</command>: This fixes
393 linking issues with other applications that expect to find the
394 <application>motif</application> libraries with the other
395 <application>JDK</application> libraries.</para>
396
397 </sect2>
398
399 <sect2 role="configuration">
400 <title>Configuring JDK</title>
401
402 <sect3>
403 <title>Configuration Information</title>
404
405 <para>There are now two Java 2 SDKs installed in
406 <filename>/opt/jdk</filename>. You should decide on which one you
407 would like to use as the default. For example if you decide to use the
408 source compiled <application>JDK</application>, do the following as the
409 <systemitem class="username">root</systemitem> user:</para>
410
411<screen role="root"><userinput>ln -v -nsf jdk-&jdk-src-version; /opt/jdk/jdk</userinput></screen>
412
413 <para>The information below assumes your system is set up using the
414 instructions found in
415 <quote><xref linkend="postlfs-config-profile"/></quote>. You may need to
416 extract the relevant information below and incorporate it into your
417 system's startup files if your system is set up differently.</para>
418
419 <para>Add the following <filename>jdk.sh</filename> shell startup file to
420 the <filename>/etc/profile.d</filename> directory with the following
421 commands as the <systemitem class="username">root</systemitem> user:</para>
422
423<screen role="root"><userinput>cat &gt; /etc/profile.d/jdk.sh &lt;&lt; "EOF"
424<literal># Begin /etc/profile.d/jdk.sh
425
426# Set JAVA_HOME directory
427JAVA_HOME=/opt/jdk/jdk
428
429# Adjust PATH
430pathappend ${JAVA_HOME}/bin PATH
431
432# Auto Java CLASSPATH
433# Copy jar files to, or create symlinks in this directory
434AUTO_CLASSPATH_DIR=/usr/lib/classpath
435pathprepend . CLASSPATH
436for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do
437 pathappend $dir CLASSPATH
438done
439
440export JAVA_HOME CLASSPATH
441unset AUTO_CLASSPATH_DIR
442unset dir
443
444# End /etc/profile.d/jdk.sh</literal>
445EOF</userinput></screen>
446
447 <para>The <application>Java</application> plugin is located in
448 <filename class="directory">$JAVA_HOME/jre/plugin/i?86/ns7/</filename>.
449 Make a symbolic link to the file in that directory from your browser(s)
450 plugins directory.</para>
451
452 <important>
453 <para>The plugin must be a symlink for it to work. If not, the browsers
454 will crash when you attempt to load a <application>Java</application>
455 application.</para>
456 </important>
457
458 </sect3>
459
460 </sect2>
461
462 <sect2 role="content">
463 <title>Contents</title>
464
465 <segmentedlist>
466 <segtitle>Installed Programs</segtitle>
467 <segtitle>Installed Libraries</segtitle>
468 <segtitle>Installed Directory</segtitle>
469
470 <seglistitem>
471 <seg>appletviewer, extcheck, idlj, jar, jarsigner, java, javac,
472 javadoc,javah, javap, javaws, jdb, keytool, native2ascii, orbd,
473 policytool, rmic, rmid, rmiregistry, serialver, servertool, and
474 tnameserv</seg>
475 <seg><envar>$JAVA_HOME</envar>/lib/*,
476 <envar>$JAVA_HOME</envar>/jre/lib/*,
477 and libjavaplugin_oji.so</seg>
478 <seg>/opt/jdk</seg>
479 </seglistitem>
480 </segmentedlist>
481
482 <variablelist>
483 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
484 <?dbfo list-presentation="list"?>
485 <?dbhtml list-presentation="table"?>
486
487 <varlistentry id="appletviewer">
488 <term><command>appletviewer</command></term>
489 <listitem>
490 <para>runs <application>Java</application> applets outside of the
491 context of a browser.</para>
492 <indexterm zone="jdk appletviewer">
493 <primary sortas="b-appletviewer">appletviewer</primary>
494 </indexterm>
495 </listitem>
496 </varlistentry>
497
498 <varlistentry id="extcheck">
499 <term><command>extcheck</command></term>
500 <listitem>
501 <para>checks a specified <filename>JAR</filename> file for title
502 and version conflicts with any extensions installed in the
503 <application>JDK</application> software.</para>
504 <indexterm zone="jdk extcheck">
505 <primary sortas="b-extcheck">extcheck</primary>
506 </indexterm>
507 </listitem>
508 </varlistentry>
509
510 <varlistentry id="idlj">
511 <term><command>idlj</command></term>
512 <listitem>
513 <para>generates <application>Java</application> bindings from a
514 given IDL file.</para>
515 <indexterm zone="jdk idlj">
516 <primary sortas="b-idlj">idlj</primary>
517 </indexterm>
518 </listitem>
519 </varlistentry>
520
521 <varlistentry id="jar">
522 <term><command>jar</command></term>
523 <listitem>
524 <para>combines multiple files into a single <filename>JAR</filename>
525 archive file.</para>
526 <indexterm zone="jdk jar">
527 <primary sortas="b-jar">jar</primary>
528 </indexterm>
529 </listitem>
530 </varlistentry>
531
532 <varlistentry id="jarsigner">
533 <term><command>jarsigner</command></term>
534 <listitem>
535 <para>signs <filename>JAR</filename> (Java ARchive) files and verifies the
536 signatures and integrity of a signed <filename>JAR</filename>.</para>
537 <indexterm zone="jdk jarsigner">
538 <primary sortas="b-jarsigner">jarsigner</primary>
539 </indexterm>
540 </listitem>
541 </varlistentry>
542
543 <varlistentry id="java">
544 <term><command>java</command></term>
545 <listitem>
546 <para>launches a <application>Java</application> application by
547 starting a <application>Java</application> runtime environment, loading a
548 specified class and invoking its main method.</para>
549 <indexterm zone="jdk java">
550 <primary sortas="b-java">java</primary>
551 </indexterm>
552 </listitem>
553 </varlistentry>
554
555 <varlistentry id="javac">
556 <term><command>javac</command></term>
557 <listitem>
558 <para>reads class and interface definitions, written in the
559 <application>Java</application> programming language, and compiles
560 them into bytecode class files.</para>
561 <indexterm zone="jdk javac">
562 <primary sortas="b-javac">javac</primary>
563 </indexterm>
564 </listitem>
565 </varlistentry>
566
567 <varlistentry id="javadoc">
568 <term><command>javadoc</command></term>
569 <listitem>
570 <para>parses the declarations and documentation comments in a set of
571 <application>Java</application> source files and produces a corresponding
572 set of HTML pages describing the classes, interfaces,
573 constructors, methods, and fields.</para>
574 <indexterm zone="jdk javadoc">
575 <primary sortas="b-javadoc">javadoc</primary>
576 </indexterm>
577 </listitem>
578 </varlistentry>
579
580 <varlistentry id="javah">
581 <term><command>javah</command></term>
582 <listitem>
583 <para>generates <application>C</application> header and source files
584 that are needed to implement native methods.</para>
585 <indexterm zone="jdk javah">
586 <primary sortas="b-javah">javah</primary>
587 </indexterm>
588 </listitem>
589 </varlistentry>
590
591 <varlistentry id="javap">
592 <term><command>javap</command></term>
593 <listitem>
594 <para>disassembles a <application>Java</application> class file.</para>
595 <indexterm zone="jdk javap">
596 <primary sortas="b-javap">javap</primary>
597 </indexterm>
598 </listitem>
599 </varlistentry>
600
601 <varlistentry id="javaws">
602 <term><command>javaws</command></term>
603 <listitem>
604 <para>launches <application>Java </application>application/applets
605 hosted on a network.</para>
606 <indexterm zone="jdk javaws">
607 <primary sortas="b-javaws">javaws</primary>
608 </indexterm>
609 </listitem>
610 </varlistentry>
611
612 <varlistentry id="jdb">
613 <term><command>jdb</command></term>
614 <listitem>
615 <para>is a simple command-line debugger for
616 <application>Java</application> classes.</para>
617 <indexterm zone="jdk jdb">
618 <primary sortas="b-jdb">jdb</primary>
619 </indexterm>
620 </listitem>
621 </varlistentry>
622
623 <varlistentry id="keytool">
624 <term><command>keytool</command></term>
625 <listitem>
626 <para>is a key and certificate management utility.</para>
627 <indexterm zone="jdk keytool">
628 <primary sortas="b-keytool">keytool</primary>
629 </indexterm>
630 </listitem>
631 </varlistentry>
632
633 <varlistentry id="native2ascii">
634 <term><command>native2ascii</command></term>
635 <listitem>
636 <para> converts files that contain non-supported character encoding
637 into files containing Latin-1 or Unicode-encoded characters.</para>
638 <indexterm zone="jdk native2ascii">
639 <primary sortas="b-native2ascii">native2ascii</primary>
640 </indexterm>
641 </listitem>
642 </varlistentry>
643
644 <varlistentry id="orbd">
645 <term><command>orbd</command></term>
646 <listitem>
647 <para>is used to enable clients to transparently locate and invoke
648 persistent objects on servers in the CORBA environment.</para>
649 <indexterm zone="jdk orbd">
650 <primary sortas="b-orbd">orbd</primary>
651 </indexterm>
652 </listitem>
653 </varlistentry>
654
655 <varlistentry id="policytool">
656 <term><command>policytool</command></term>
657 <listitem>
658 <para>creates and manages a policy file graphically.</para>
659 <indexterm zone="jdk policytool">
660 <primary sortas="b-policytool">policytool</primary>
661 </indexterm>
662 </listitem>
663 </varlistentry>
664
665 <varlistentry id="rmic">
666 <term><command>rmic</command></term>
667 <listitem>
668 <para>generates stub and skeleton class files for remote objects
669 from the names of compiled <application>Java</application> classes that
670 contain remote object implementations.</para>
671 <indexterm zone="jdk rmic">
672 <primary sortas="b-rmic">rmic</primary>
673 </indexterm>
674 </listitem>
675 </varlistentry>
676
677 <varlistentry id="rmid">
678 <term><command>rmid</command></term>
679 <listitem>
680 <para>starts the activation system daemon.</para>
681 <indexterm zone="jdk rmid">
682 <primary sortas="b-rmid">rmid</primary>
683 </indexterm>
684 </listitem>
685 </varlistentry>
686
687 <varlistentry id="rmiregistry">
688 <term><command>rmiregistry</command></term>
689 <listitem>
690 <para>creates and starts a remote object registry on the specified
691 port on the current host.</para>
692 <indexterm zone="jdk rmiregistry">
693 <primary sortas="b-rmiregistry">rmiregistry</primary>
694 </indexterm>
695 </listitem>
696 </varlistentry>
697
698 <varlistentry id="serialver">
699 <term><command>serialver</command></term>
700 <listitem>
701 <para>returns the serialVersionUID for one or more classes in a
702 form suitable for copying into an evolving class.</para>
703 <indexterm zone="jdk serialver">
704 <primary sortas="b-serialver">serialver</primary>
705 </indexterm>
706 </listitem>
707 </varlistentry>
708
709 <varlistentry id="servertool">
710 <term><command>servertool</command></term>
711 <listitem>
712 <para>provides an ease-of-use interface for application programmers
713 to register, unregister, startup and shutdown a server.</para>
714 <indexterm zone="jdk servertool">
715 <primary sortas="b-servertool">servertool</primary>
716 </indexterm>
717 </listitem>
718 </varlistentry>
719
720 <varlistentry id="tnameserv">
721 <term><command>tnameserv</command></term>
722 <listitem>
723 <para>starts the <application>Java</application> IDL name server.</para>
724 <indexterm zone="jdk tnameserv">
725 <primary sortas="b-tnameserv">tnameserv</primary>
726 </indexterm>
727 </listitem>
728 </varlistentry>
729
730 </variablelist>
731
732 </sect2>
733
734</sect1>
Note: See TracBrowser for help on using the repository browser.