source: general/prog/openjdk.xml@ 5c3f3856

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 5c3f3856 was 5c3f3856, checked in by DJ Lucas <dj@…>, 5 years ago

Update to make-ca-1.0. Fixes #11401.
Use configuration from bash-completions package if it is installed. Added bash-completion-2.8 to ghe BLFS wiki and linked from profile page. Fixes #11399.

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

  • Property mode set to 100644
File size: 35.6 KB
RevLine 
[2c25a56]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
[d61ead0a]7 <!ENTITY ojdk-tarball "jdk-&openjdk-version;+&openjdk-build;.tar.bz2">
[91a82cb]8 <!ENTITY ojdk-repo "http://hg.openjdk.java.net/jdk-updates/jdk10u">
[042f456]9 <!ENTITY ojdk-download "&ojdk-repo;/archive/&ojdk-tarball;">
[49b50d4]10
[a29486e4]11 <!ENTITY anduin-download "&sources-anduin-http;/OpenJDK/OpenJDK-&openjdk-version;">
[49b50d4]12
[d2cb534]13 <!ENTITY ojdk-md5sum "d216524203251f1378e660e6fda0b2ec">
[91a82cb]14 <!ENTITY ojdk-size "84 MB">
[d2cb534]15
16 <!ENTITY jtreg-version "4.2-b13-433">
[55bcdd7]17 <!ENTITY jtreg-download "&anduin-download;/jtreg-&jtreg-version;.tar.gz">
[d2cb534]18 <!ENTITY jtreg-md5sum "a2f25470e005cb7135f61f3bd9c4962e">
[91a82cb]19 <!ENTITY jtreg-size "6.8 MB">
[d61ead0a]20
[d2cb534]21 <!ENTITY ojdk-bdsize "5.8 GB (an additional 346 MB for tests)">
22 <!ENTITY ojdk-time "3.9 SBU with 4 jobs (an additonal 4.7 SBU for tests with 4 jobs)">
[2c25a56]23]>
24
[bf7a1821]25<sect1 id="openjdk" xreflabel="OpenJDK-&openjdk-version;">
[49b50d4]26 <?dbhtml filename="openjdk.html" ?>
[2c25a56]27
28 <sect1info>
29 <othername>$LastChangedBy$</othername>
30 <date>$Date$</date>
31 </sect1info>
32
[042f456]33 <title>OpenJDK-&openjdk-version;</title>
[2c25a56]34
[49b50d4]35 <indexterm zone="openjdk">
36 <primary sortas="a-OpenJDK">OpenJDK</primary>
[2c25a56]37 </indexterm>
38
39 <sect2 role="package">
[042f456]40 <title>Introduction to OpenJDK</title>
41
42 <para>
43 <application>OpenJDK</application> is an open-source implementation
44 of Oracle's Java Standard Edition platform.
45 <application>OpenJDK</application> is useful for developing
46 <application>Java</application> programs, and provides a complete
47 runtime environment to run <application>Java</application> programs.
48 </para>
[2c25a56]49
[d2cb534]50 &lfs83_checked;
[307cb578]51<!--
[042f456]52 <note>
53 <para>
[995ab59e]54 A browser plugin and webstart implementation is provided by the
55 Icedtea project. To provide a complete implementation, you will
56 need to later install <xref linkend="icedtea-web"/>.
[042f456]57 </para>
58 </note>
[307cb578]59-->
[042f456]60 <para>
61 OpenJDK is GPL'd code, with a special exception made for non-free
62 projects to use these classes in their proprietary products.
63 In similar fashion to the LGPL, which allows non-free programs to link
64 to libraries provided by free software, the
65 <ulink url="http://openjdk.java.net/legal/gplv2+ce.html">GNU
66 General Public License, version 2, with the Classpath Exception</ulink>
67 allows third party programs to use classes provided by free software
68 without the requirement that the third party software also be free. As
69 with the LGPL, any modifications made to the free software portions of a
70 third party application, must also be made freely available.
71 </para>
[2c25a56]72
73 <note>
[042f456]74 <para>
75 The <application>OpenJDK</application> source includes a very
76 thorough, open source test suite using the
77 <application>JTreg</application> test harness. The testing instructions
78 below allow to test the just built JDK for reasonable compatibility
79 with the proprietary Oracle JDK. However, in order for an independent
80 implementation to claim compatibility, it must pass a proprietary
81 <application>JCK/TCK</application> test suite. No claims of
82 compatibility, even partial compatibility, may be made without passing
83 an approved test suite.
84 </para>
85
86 <para>
87 Oracle does provide free community access, on a case by case basis, to
88 a closed toolkit to ensure 100% compatibility with its proprietary JDK.
89 Neither the binary version provided on the <xref linkend="java"/> page
90 nor the JVM built with the instructions below have been tested against
91 the <ulink
92 url="http://openjdk.java.net/groups/conformance/JckAccess/jck-access.html">
93 TCK</ulink>. Any version that is built using the instructions given,
94 cannot claim to be compatible with the proprietary JDK, without the
95 user applying for, and completing the compatibility tests themselves.
96 </para>
97
98 <para>
99 With that in mind, the binaries produced using this build method are
100 regularly tested against the TCK by the members listed on the site
101 above. In addition to the community license above, an educational,
102 non-commercial license for the TCK can be obtained from <ulink
103 url="http://www.oracle.com/technetwork/java/index-137188.html">
104 here</ulink>.
105 </para>
[2c25a56]106 </note>
107
[d133d429]108 <bridgehead renderas="sect3">Package Information</bridgehead>
[2c25a56]109 <itemizedlist spacing="compact">
110 <listitem>
[d61ead0a]111 <para>
112 Download (HTTP): <ulink url="&ojdk-download;"/>
113 </para>
114 </listitem>
115 <listitem>
116 <para>
117 Download (FTP): <ulink url=" "/>
118 </para>
119 </listitem>
120 <listitem>
121 <para>
122 Download MD5 sum: &ojdk-md5sum;
123 </para>
124 </listitem>
125 <listitem>
126 <para>
127 Download Size: &ojdk-size;
[2c25a56]128 </para>
129 </listitem>
130 <listitem>
[d61ead0a]131 <para>Estimated disk space required: &ojdk-bdsize;</para>
[042f456]132 </listitem>
133 <listitem>
134 <para>Estimated build time: &ojdk-time;</para>
[2c25a56]135 </listitem>
136 </itemizedlist>
137
138 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
139
[d61ead0a]140 <bridgehead renderas="sect4">Optional test harness</bridgehead>
141
[2c25a56]142 <itemizedlist spacing='compact'>
143 <listitem>
[d61ead0a]144 <para>
145 <ulink url="&jtreg-download;"/>
146 </para>
147 </listitem>
148 <listitem>
149 <para>
150 Download MD5 sum: &jtreg-md5sum;
[b1129a10]151 </para>
[870e4acf]152 </listitem>
[2c25a56]153 <listitem>
[b1129a10]154 <para>
[d61ead0a]155 Download Size: &jtreg-size;
[b1129a10]156 </para>
[2c25a56]157 </listitem>
158 </itemizedlist>
159
[49b50d4]160 <bridgehead renderas="sect3">OpenJDK Dependencies</bridgehead>
[bc00982]161
[92b1341]162 <bridgehead renderas="sect4">Required Dependencies</bridgehead>
[2e41a4f]163 <para role="required">
[042f456]164 An existing binary (<xref linkend="java"/> or an earlier built
[ada4e5f5]165 version of this package. The instructions below assume that
166 you are using <xref linkend="ojdk-conf"/>),
[52a4df28]167 <xref linkend="alsa-lib"/>,
[92b1341]168 <xref linkend="cpio"/>,
[de930747]169 <xref linkend="cups"/>,
[2e41a4f]170 <xref linkend="unzip"/>,
[92b1341]171 <xref linkend="which"/>,
[042f456]172 <xref linkend="xorg7-lib"/>, and
[2e41a4f]173 <xref linkend="zip"/>
174 </para>
[2c25a56]175
[52a4df28]176 <bridgehead renderas="sect4">Recommended</bridgehead>
177 <para role="recommended">
[2198a32]178 <xref linkend="make-ca"/>,
[d61ead0a]179 <xref linkend="giflib"/>,
180 <xref linkend="lcms2"/>,
181 <xref linkend="libjpeg"/>,
182 <xref linkend="libpng"/>, and
[5aa8088]183 <xref linkend="wget"/>
[52a4df28]184 </para>
185
[e01f402]186 <bridgehead renderas="sect4">Optional</bridgehead>
187 <para role="optional">
[91a82cb]188 <xref linkend="graphviz"/>,
189 <xref linkend="mercurial"/>,
190 an X Window manager such as <xref linkend="twm"/> (for the tests), and
191 <ulink url="https://pandoc.org/">pandoc</ulink>
[e01f402]192 </para>
193
[2c25a56]194 <para condition="html" role="usernotes">User Notes:
[49b50d4]195 <ulink url="&blfs-wiki;/openjdk"/></para>
[2c25a56]196
197 </sect2>
198
199 <sect2 role="installation">
[49b50d4]200 <title>Installation of OpenJDK</title>
[2c25a56]201
[042f456]202 <para>
[91a82cb]203 If you have downloaded the optional test harness, unpack it now:
[042f456]204 </para>
[6f01fd2e]205
[5aa8088]206<screen><userinput>tar -xf ../jtreg-&jtreg-version;.tar.gz</userinput></screen>
[bc00982]207
[042f456]208 <note>
209 <para>
210 Before proceeding, you should ensure that your environment
211 <envar>PATH</envar> variable contains the location of the Java
[bf7a1821]212 compiler used for bootstrapping <application>OpenJDK</application>.
[042f456]213 This is the only requirement for the environment. Modern Java
214 installations do not need <envar>JAVA_HOME</envar> and
215 <envar>CLASSPATH</envar> is not used here. Furthermore, OpenJDK
[b82dab5]216 developers recommend to unset <envar>JAVA_HOME</envar>.
[042f456]217 </para>
[49b50d4]218
[042f456]219 <para>
220 The build system does not support the <option>-j</option> switch in
221 <envar>MAKEFLAGS</envar>.
222 </para>
223 </note>
[870e4acf]224
[5aa8088]225 <para>
226 Configure and build the package with the following commands
227 (--with-milestone value can be modified to fit user preferences):
228 </para>
[042f456]229
[d61ead0a]230<screen><userinput>unset JAVA_HOME &amp;&amp;
231bash configure --enable-unlimited-crypto \
232 --disable-warnings-as-errors \
233 --with-stdc++lib=dynamic \
234 --with-giflib=system \
235 --with-jtreg=$PWD/jtreg \
236 --with-lcms=system \
237 --with-libjpeg=system \
238 --with-libpng=system \
239 --with-zlib=system \
[91a82cb]240 --with-version-build="&openjdk-build;" \
[d61ead0a]241 --with-version-pre="" \
242 --with-version-opt="" \
[5c3f3856]243 --with-cacerts-file=/etc/pki/tls/java/cacerts &amp;&amp;
[d61ead0a]244make images</userinput></screen>
[870e4acf]245
[042f456]246 <para>
[d2cb534]247 To test the results, you will need to execute the jtreg program.
248 You can set the number of concurrent tests by adding the
249 <parameter>-conc:<replaceable>&lt;X&gt;</replaceable></parameter>
250 value in the below command (tests will run sequentially otherwise):
[042f456]251 </para>
252
[d2cb534]253<screen><userinput>export JT_JAVA=$(echo $PWD/build/*/jdk) &amp;&amp;
254jtreg/bin/jtreg -jdk:$JT_JAVA -automatic -ignore:quiet -v1 \
255 test/jdk:tier1 test/langtools:tier1</userinput></screen>
256
257 <para>For more control over the test suite, review the documentation
258 available in <filename>jtreg/doc/jtreg/usage.txt</filename>. To review the
259 results, see the files
260 <filename>JTreport/test_{jdk,langtools}/text/stats.txt</filename> and
261 <filename>JTreport/test_{jdk,langtools}/text/summary.txt</filename>.
262 You should expect to see 21 failures and 2 errors in the jdk
263 test suite, and 7 failures in langtools.</para>
264
[2c25a56]265 <para>Install the package with the following commands as the
266 <systemitem class="username">root</systemitem> user:</para>
267
[d61ead0a]268<screen role="root"><userinput>install -vdm755 /opt/jdk-&openjdk-version;+&openjdk-build; &amp;&amp;
269cp -Rv build/*/images/jdk/* /opt/jdk-&openjdk-version;+&openjdk-build; &amp;&amp;
270chown -R root:root /opt/jdk-&openjdk-version;+&openjdk-build; &amp;&amp;
271for s in 16 24 32 48; do
[d2cb534]272 install -vDm644 src/java.desktop/unix/classes/sun/awt/X11/java-icon${s}.png \
[91a82cb]273 /usr/share/icons/hicolor/${s}x${s}/apps/java.png
[d2cb534]274done &amp;&amp;
275unset JT_JAVA
[d61ead0a]276</userinput></screen>
[2c25a56]277
[d61ead0a]278 <note>
279 <para>
280 If you only wish to install the Java Runtime Environment, you can
[55bcdd7]281 substitute <filename>build/*/images/jre</filename> in the above
[d61ead0a]282 <command>cp</command> command.
283 </para>
284 </note>
285
[58cba7f0]286 <para>
287 There are now two <application>OpenJDK</application> SDKs installed
288 in <filename class="directory">/opt</filename>. You should decide on
289 which one you would like to use as the default. Normally, you would opt
290 for the just installed <application>OpenJDK</application>. If so, do
291 the following as the <systemitem class="username">root</systemitem>
292 user:
293 </para>
294
[d61ead0a]295<screen role="root"><userinput>ln -v -nsf jdk-&openjdk-version;+&openjdk-build; /opt/jdk</userinput></screen>
[58cba7f0]296
[bf7a1821]297 <para>
[d61ead0a]298 If desired, you may create .desktop files to add entries
299 in the menu for <command>java</command>, <command>policytool</command>,
300 and <command>jconsole</command>. The needed icons have already been
301 installed. As the <systemitem class="username">root</systemitem> user:
[bf7a1821]302 </para>
[76df61c]303
[b1129a10]304<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
305
[89b38c1e]306cat &gt; /usr/share/applications/openjdk-java.desktop &lt;&lt; "EOF" &amp;&amp;
[76df61c]307<literal>[Desktop Entry]
[91a82cb]308Name=OpenJDK Java &openjdk-version; Runtime
309Comment=OpenJDK Java &openjdk-version; Runtime
[d61ead0a]310Exec=/opt/jdk/bin/java -jar
311Terminal=false
312Type=Application
[91a82cb]313Icon=java
[d61ead0a]314MimeType=application/x-java-archive;application/java-archive;application/x-jar;
315NoDisplay=true</literal>
316EOF
[89b38c1e]317cat &gt; /usr/share/applications/openjdk-jconsole.desktop &lt;&lt; "EOF"
[d61ead0a]318<literal>[Desktop Entry]
[91a82cb]319Name=OpenJDK Java &openjdk-version; Console
320Comment=OpenJDK Java &openjdk-version; Console
[d61ead0a]321Keywords=java;console;monotoring
322Exec=/opt/jdk/bin/jconsole
323Terminal=false
324Type=Application
[91a82cb]325Icon=java
[d61ead0a]326Categories=Application;System;</literal>
327EOF</userinput></screen>
[d2cb534]328
[2c25a56]329 </sect2>
330
331 <sect2 role="commands">
332 <title>Command Explanations</title>
333
[042f456]334 <para>
[d61ead0a]335 <command>bash configure...</command>: the top level
[042f456]336 <filename>configure</filename> is a wrapper around the autotools one.
[d61ead0a]337 It is not executable and must be run through <command>bash</command>.
[042f456]338 </para>
[2c25a56]339
[042f456]340 <para>
[d61ead0a]341 <parameter>--enable-unlimited-crypto</parameter>: Because of limitations
342 on the usage of cryptography in some countries, there is the possibility
343 to limit the size of encryption keys and the use of some algorithms in a
344 policy file. This switch allows to ship a policy file with no
345 restriction. It is the responsibility of the user to ensure proper
346 adherence to the law.
[042f456]347 </para>
[2c25a56]348
[042f456]349 <para>
[d61ead0a]350 <parameter>--disable-warnings-as-errors</parameter>: This switch disables
351 use of <envar>-Werror</envar> in the build.
[042f456]352 </para>
[5292423]353
[042f456]354 <para>
[d61ead0a]355 <parameter>--with-stdc++lib=dynamic</parameter>: This switch forces the
356 build system to link to <filename>libstdc++.so</filename> (dynamic)
357 instead of <filename>libstdc++.a</filename> (static).
[042f456]358 </para>
[5292423]359
[d2cb534]360 <para>
361 <parameter>--with-jobs=<replaceable>&lt;X&gt;</replaceable></parameter>:
362 The <parameter>-j</parameter> passed to make does not work with make as
363 invoked here. By default, the build system will use the number of
364 CPUs - 1.
365 </para>
366
[042f456]367 <para>
[d61ead0a]368 <parameter>--with-jtreg=$PWD/jtreg</parameter>: This switch tells
369 configure where to find jtreg. Omit if you have not downloaded the
370 optional test suite.
[042f456]371 </para>
[52a4df28]372
[042f456]373 <para>
[d61ead0a]374 <parameter>--with-{giflib,lcms,libjpeg,libpng,zlib}=system</parameter>:
375 These switches force the build system to use the system libraries instead
376 of the bundled versions.
[042f456]377 </para>
[e01f402]378
[042f456]379 <para>
[d61ead0a]380 <parameter>--with-version-build</parameter>: Currently, the build
381 system does not include the build number in the version string. It has
382 to be specified here.
[042f456]383 </para>
[c770e18]384
[8eb9e848]385 <para>
[d61ead0a]386 <parameter>--with-version-pre</parameter>: This switch allows you to
387 prefix the version string with a custom string.
[8eb9e848]388 </para>
389
[042f456]390 <para>
[d61ead0a]391 <parameter>--with-version-opt</parameter>: This switch allows you to add
392 an optional build description to the version string.
[042f456]393 </para>
394
395 <para>
[5c3f3856]396 <parameter>--with-cacerts-file=/etc/pki/tls/java/cacerts</parameter>:
[d61ead0a]397 Specifies where to find a <filename>cacerts</filename> file,
[5c3f3856]398 <filename>/etc/pki/tls/java/</filename> on a BLFS system. Otherwise, an
399 empty one is created. You can use the
[120b315]400 <command>/usr/sbin/make-ca --force</command> command to generate it, once
401 you have installed the Java binaries.
[042f456]402 </para>
[df15e9f]403
[042f456]404 <para>
[d61ead0a]405 <option>--with-boot-jdk</option>: This switch provides the
406 location of the temporary <application>JDK</application>. It is normally
407 not needed if <command>java</command> is found in the <envar>PATH</envar>.
[042f456]408 </para>
409
410 <para>
[df15e9f]411 <command>find ... -iname '*.diz' -delete</command>: This command
412 removes redundant files.
[042f456]413 </para>
[5889b848]414
[2c25a56]415 </sect2>
416
[b1129a10]417 <sect2 role="configuration"
418 id="openjdk-config"
419 xreflabel="Configuring OpenJDK">
[49b50d4]420 <title>Configuring OpenJDK</title>
[2c25a56]421
422 <sect3>
423 <title>Configuration Information</title>
424
[5aa8088]425 <para>
426 Normally, the JAVA environment has been configured after installing
427 the binary version, and can be used with the just built package as well.
428 Review <xref linkend="ojdk-conf"/> in case you want to modify
429 something.
430 </para>
[2c25a56]431
[5aa8088]432 <para>
433 To test if the man pages are correctly installed, issue
434 <command>source /etc/profile</command> and <command>man java</command>
435 to display the respective man page.
436 </para>
[76df61c]437
[2c25a56]438 </sect3>
439
[55bcdd7]440 <sect3>
441 <title>
442 Settting up the JRE Certificate Authority Certificates (cacerts) file
443 </title>
[8b9034a]444
[042f456]445 <para>
[c1cd435e]446 If you have run the instructions on the <xref linkend="make-ca"/> page,
447 you only need to create a symlink in the default location for the
448 <filename>cacerts</filename> file. As user <systemitem
[55bcdd7]449 class="username">root</systemitem>:
[042f456]450 </para>
[8b9034a]451
[5c3f3856]452<screen role="root"><userinput>ln -sfv /etc/pki/tls/java/cacerts /opt/jdk/lib/security/cacerts</userinput></screen>
[8b9034a]453
[bf7a1821]454 <para>
[c1cd435e]455 To check the installatiion, issue:
[bf7a1821]456 </para>
[a727127f]457
458<screen role="root"><userinput>cd /opt/jdk
[55bcdd7]459bin/keytool -list -cacerts</userinput></screen>
[5941d6e1]460
[8b9034a]461 </sect3>
462
[2c25a56]463 </sect2>
464
465 <sect2 role="content">
466 <title>Contents</title>
467
468 <segmentedlist>
469 <segtitle>Installed Programs</segtitle>
470 <segtitle>Installed Libraries</segtitle>
471 <segtitle>Installed Directory</segtitle>
472
473 <seglistitem>
[91a82cb]474 <seg>appletviewer, idlj, jaotc, jar,
475 jarsigner, java, javac, javadoc, javap, jcmd, jconsole, jdb,
476 jdeprscan, jdeps, jhsdb, jimage, jinfo, jjs, jlink, jmap, jmod, jps,
477 jrunscript, jshell, jstack, jstat, jstatd, keytool,
478 orbd, pack200, rmic, rmid, rmiregistry,
[2c25a56]479 schemagen, serialver, servertool, tnameserv, unpack200,
480 wsgen, wsimport, and xjc</seg>
[91a82cb]481 <seg>/opt/jdk-&openjdk-version;/lib/*</seg>
482 <seg>/opt/jdk-&openjdk-version;</seg>
[2c25a56]483 </seglistitem>
484 </segmentedlist>
485
486 <variablelist>
487 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
488 <?dbfo list-presentation="list"?>
489 <?dbhtml list-presentation="table"?>
490
[49b50d4]491 <varlistentry id="appletviewer">
492 <term><command>appletviewer</command></term>
493 <listitem>
[042f456]494 <para>allows to run applets outside of a web browser.</para>
[49b50d4]495 <indexterm zone="openjdk appletviewer">
496 <primary sortas="b-appletviewer">appletviewer</primary>
497 </indexterm>
498 </listitem>
499 </varlistentry>
[91a82cb]500<!--
[49b50d4]501 <varlistentry id="extcheck">
[2c25a56]502 <term><command>extcheck</command></term>
503 <listitem>
504 <para>checks a specified jar file for title and version conflicts
[49b50d4]505 with any extensions installed in the
506 <application>OpenJDK</application> software.</para>
507 <indexterm zone="openjdk extcheck">
[2c25a56]508 <primary sortas="b-extcheck">extcheck</primary>
509 </indexterm>
510 </listitem>
511 </varlistentry>
[91a82cb]512-->
[49b50d4]513 <varlistentry id="idlj">
[2c25a56]514 <term><command>idlj</command></term>
515 <listitem>
516 <para>generates Java bindings from a given IDL file.</para>
[49b50d4]517 <indexterm zone="openjdk idlj">
[2c25a56]518 <primary sortas="b-idlj">idlj</primary>
519 </indexterm>
520 </listitem>
521 </varlistentry>
522
[91a82cb]523 <varlistentry id="jaotc">
524 <term><command>jaotc</command></term>
525 <listitem>
526 <para>is an <quote>ahead-of-time</quote> java class compiler.</para>
527 <indexterm zone="openjdk jaotc">
528 <primary sortas="b-jaotc">jaotc</primary>
529 </indexterm>
530 </listitem>
531 </varlistentry>
532
[49b50d4]533 <varlistentry id="jar">
[2c25a56]534 <term><command>jar</command></term>
535 <listitem>
536 <para>combines multiple files into a single jar archive.</para>
[49b50d4]537 <indexterm zone="openjdk jar">
[2c25a56]538 <primary sortas="b-jar">jar</primary>
539 </indexterm>
540 </listitem>
541 </varlistentry>
542
[49b50d4]543 <varlistentry id="jarsigner">
[2c25a56]544 <term><command>jarsigner</command></term>
545 <listitem>
546 <para>signs jar files and verifies the signatures and integrity
547 of a signed jar file.</para>
[49b50d4]548 <indexterm zone="openjdk jarsigner">
[2c25a56]549 <primary sortas="b-jarsigner">jarsigner</primary>
550 </indexterm>
551 </listitem>
552 </varlistentry>
553
[784a1a7f]554 <varlistentry id="java-prog">
[2c25a56]555 <term><command>java</command></term>
556 <listitem>
557 <para>launches a Java application by starting a Java runtime
558 environment, loading a specified class and invoking its main
559 method.</para>
[784a1a7f]560 <indexterm zone="openjdk java-prog">
561 <primary sortas="b-java-prog">java</primary>
[2c25a56]562 </indexterm>
563 </listitem>
564 </varlistentry>
565
[49b50d4]566 <varlistentry id="javac">
[2c25a56]567 <term><command>javac</command></term>
568 <listitem>
569 <para>reads class and interface definitions, written in the
570 Java programming language, and compiles them into bytecode
571 class files.</para>
[49b50d4]572 <indexterm zone="openjdk javac">
[2c25a56]573 <primary sortas="b-javac">javac</primary>
574 </indexterm>
575 </listitem>
576 </varlistentry>
577
[49b50d4]578 <varlistentry id="javadoc">
[2c25a56]579 <term><command>javadoc</command></term>
580 <listitem>
581 <para>parses the declarations and documentation comments in a
582 set of Java source files and produces a corresponding set of
[042f456]583 HTML pages describing the classes, interfaces, constructors,
[2c25a56]584 methods, and fields.</para>
[49b50d4]585 <indexterm zone="openjdk javadoc">
[2c25a56]586 <primary sortas="b-javadoc">javadoc</primary>
587 </indexterm>
588 </listitem>
589 </varlistentry>
590
[91a82cb]591<!--
[49b50d4]592 <varlistentry id="javah">
[2c25a56]593 <term><command>javah</command></term>
594 <listitem>
595 <para>generates C header and source files
596 that are needed to implement native methods.</para>
[49b50d4]597 <indexterm zone="openjdk javah">
[2c25a56]598 <primary sortas="b-javah">javah</primary>
599 </indexterm>
600 </listitem>
601 </varlistentry>
[91a82cb]602-->
[49b50d4]603 <varlistentry id="javap">
[2c25a56]604 <term><command>javap</command></term>
605 <listitem>
606 <para>disassembles a Java class file.</para>
[49b50d4]607 <indexterm zone="openjdk javap">
[2c25a56]608 <primary sortas="b-javap">javap</primary>
609 </indexterm>
610 </listitem>
611 </varlistentry>
[91a82cb]612<!--
[49b50d4]613 <varlistentry id="java-rmi.cgi">
[2c25a56]614 <term><command>java-rmi.cgi</command></term>
615 <listitem>
616 <para>is the Java RMI client.</para>
[49b50d4]617 <indexterm zone="openjdk java-rmi.cgi">
[2c25a56]618 <primary sortas="b-java-rmi.cgi">java-rmi.cgi</primary>
619 </indexterm>
620 </listitem>
621 </varlistentry>
[91a82cb]622-->
[49b50d4]623 <varlistentry id="jcmd">
624 <term><command>jcmd</command></term>
625 <listitem>
626 <para>is a utility to send diagnostic command requests to a running
627 Java Virtual Machine.</para>
628 <indexterm zone="openjdk jcmd">
629 <primary sortas="b-jcmd">jcmd</primary>
630 </indexterm>
631 </listitem>
632 </varlistentry>
633
634 <varlistentry id="jconsole">
[2c25a56]635 <term><command>jconsole</command></term>
636 <listitem>
637 <para>is a graphical console tool to monitor and manage both
638 local and remote Java applications and virtual machines.</para>
[49b50d4]639 <indexterm zone="openjdk jconsole">
[2c25a56]640 <primary sortas="b-jconsole">jconsole</primary>
641 </indexterm>
642 </listitem>
643 </varlistentry>
644
[49b50d4]645 <varlistentry id="jdb">
[2c25a56]646 <term><command>jdb</command></term>
647 <listitem>
648 <para>is a simple command-line debugger for Java classes.</para>
[49b50d4]649 <indexterm zone="openjdk jdb">
[2c25a56]650 <primary sortas="b-jdb">jdb</primary>
651 </indexterm>
652 </listitem>
653 </varlistentry>
654
[91a82cb]655 <varlistentry id="jdeprscan">
656 <term><command>jdeprscan</command></term>
657 <listitem>
658 <para>scans class or jar files for uses of deprecated API
659 elements.</para>
660 <indexterm zone="openjdk jdeprscan">
661 <primary sortas="b-jdeprscan">jdeprscan</primary>
662 </indexterm>
663 </listitem>
664 </varlistentry>
665
[042f456]666 <varlistentry id="jdeps">
667 <term><command>jdeps</command></term>
668 <listitem>
669 <para>shows the package-level or class-level dependencies of
670 Java class files.</para>
671 <indexterm zone="openjdk jdeps">
672 <primary sortas="b-jdeps">jdeps</primary>
673 </indexterm>
674 </listitem>
675 </varlistentry>
676
[91a82cb]677 <varlistentry id="jhsdb">
678 <term><command>jhsdb</command></term>
679 <listitem>
680 <para>is a tool to analyze the content of a core dump from a
681 crashed Java Virtual Machine (JVM).</para>
682 <indexterm zone="openjdk jhsdb">
683 <primary sortas="b-jhsdb">jhsdb</primary>
684 </indexterm>
685 </listitem>
686 </varlistentry>
687<!--
[49b50d4]688 <varlistentry id="jhat">
[2c25a56]689 <term><command>jhat</command></term>
690 <listitem>
[042f456]691 <para>parses a java heap dump file and allows viewing it
[4d180035]692 in a web browser.</para>
[49b50d4]693 <indexterm zone="openjdk jhat">
[2c25a56]694 <primary sortas="b-jhat">jhat</primary>
695 </indexterm>
696 </listitem>
697 </varlistentry>
[91a82cb]698-->
699 <varlistentry id="jimage">
700 <term><command>jimage</command></term>
701 <listitem>
702 <para>is used to list, extract, verify, or get information about
703 modules in <emphasis>jimage</emphasis> format.</para>
704 <indexterm zone="openjdk jimage">
705 <primary sortas="b-jimage">jimage</primary>
706 </indexterm>
707 </listitem>
708 </varlistentry>
[2c25a56]709
[49b50d4]710 <varlistentry id="jinfo">
[2c25a56]711 <term><command>jinfo</command></term>
712 <listitem>
713 <para>prints Java configuration information for a given Java
714 process, core file, or a remote debug server.</para>
[49b50d4]715 <indexterm zone="openjdk jinfo">
[2c25a56]716 <primary sortas="b-jinfo">jinfo</primary>
717 </indexterm>
[042f456]718 </listitem>
719 </varlistentry>
720
721 <varlistentry id="jjs">
722 <term><command>jjs</command></term>
723 <listitem>
724 <para>is a command-line tool used to invoke the Nashorn engine. It
725 can be used to interpret one or several script files, or to run
726 an interactive shell.</para>
727 <indexterm zone="openjdk jjs">
728 <primary sortas="b-jjs">jjs</primary>
729 </indexterm>
[2c25a56]730 </listitem>
731 </varlistentry>
732
[91a82cb]733 <varlistentry id="jlink">
734 <term><command>jlink</command></term>
735 <listitem>
736 <para>is used to assemble and optimize a set of modules and their
737 dependencies into a custom runtime image.</para>
738 <indexterm zone="openjdk jlink">
739 <primary sortas="b-jlink">jlink</primary>
740 </indexterm>
741 </listitem>
742 </varlistentry>
743
[49b50d4]744 <varlistentry id="jmap">
[2c25a56]745 <term><command>jmap</command></term>
746 <listitem>
747 <para>prints shared object memory maps or heap memory details
748 of a given process, core file, or a remote debug server.</para>
[49b50d4]749 <indexterm zone="openjdk jmap">
[2c25a56]750 <primary sortas="b-jmap">jmap</primary>
751 </indexterm>
752 </listitem>
753 </varlistentry>
754
[91a82cb]755 <varlistentry id="jmod">
756 <term><command>jmod</command></term>
757 <listitem>
758 <para>creates JMOD files and lists the content of existing JMOD
759 files.</para>
760 <indexterm zone="openjdk jmod">
761 <primary sortas="b-jmod">jmod</primary>
762 </indexterm>
763 </listitem>
764 </varlistentry>
765
766
[49b50d4]767 <varlistentry id="jps">
[2c25a56]768 <term><command>jps</command></term>
769 <listitem>
770 <para>lists the instrumented JVMs on the target system.</para>
[49b50d4]771 <indexterm zone="openjdk jps">
[2c25a56]772 <primary sortas="b-jps">jps</primary>
773 </indexterm>
774 </listitem>
775 </varlistentry>
776
[49b50d4]777 <varlistentry id="jrunscript">
[2c25a56]778 <term><command>jrunscript</command></term>
779 <listitem>
780 <para>is a command line script shell.</para>
[49b50d4]781 <indexterm zone="openjdk jrunscript">
[2c25a56]782 <primary sortas="b-jrunscript">jrunscript</primary>
783 </indexterm>
784 </listitem>
785 </varlistentry>
786
[91a82cb]787 <varlistentry id="jshell">
788 <term><command>jshell</command></term>
789 <listitem>
790 <para>is an interactive tool for learning the Java programming
791 language and prototyping Java code.</para>
792 <indexterm zone="openjdk jshell">
793 <primary sortas="b-jshell">jshell</primary>
794 </indexterm>
795 </listitem>
796 </varlistentry>
797<!--
[49b50d4]798 <varlistentry id="jsadebugd">
[2c25a56]799 <term><command>jsadebugd</command></term>
800 <listitem>
801 <para>attaches to a Java process or core file and acts as a
802 debug server.</para>
[49b50d4]803 <indexterm zone="openjdk jsadebugd">
[2c25a56]804 <primary sortas="b-jsadebugd">jsadebugd</primary>
805 </indexterm>
806 </listitem>
807 </varlistentry>
[91a82cb]808-->
[49b50d4]809 <varlistentry id="jstack">
[2c25a56]810 <term><command>jstack</command></term>
811 <listitem>
812 <para>prints Java stack traces of Java threads for a given
813 Java process, core file, or a remote debug server.</para>
[49b50d4]814 <indexterm zone="openjdk jstack">
[2c25a56]815 <primary sortas="b-jstack">jstack</primary>
816 </indexterm>
817 </listitem>
818 </varlistentry>
819
[49b50d4]820 <varlistentry id="jstat">
[2c25a56]821 <term><command>jstat</command></term>
822 <listitem>
823 <para>displays performance statistics for an instrumented JVM.</para>
[49b50d4]824 <indexterm zone="openjdk jstat">
[2c25a56]825 <primary sortas="b-jstat">jstat</primary>
826 </indexterm>
827 </listitem>
828 </varlistentry>
829
[49b50d4]830 <varlistentry id="jstatd">
[2c25a56]831 <term><command>jstatd</command></term>
832 <listitem>
833 <para>is an RMI server application that monitors for the creation
834 and termination of instrumented JVMs.</para>
[49b50d4]835 <indexterm zone="openjdk jstatd">
[2c25a56]836 <primary sortas="b-jstatd">jstatd</primary>
837 </indexterm>
838 </listitem>
839 </varlistentry>
840
[49b50d4]841 <varlistentry id="keytool">
[2c25a56]842 <term><command>keytool</command></term>
843 <listitem>
844 <para>is a key and certificate management utility.</para>
[49b50d4]845 <indexterm zone="openjdk keytool">
[2c25a56]846 <primary sortas="b-keytool">keytool</primary>
847 </indexterm>
848 </listitem>
849 </varlistentry>
[91a82cb]850<!--
[49b50d4]851 <varlistentry id="native2ascii">
[2c25a56]852 <term><command>native2ascii</command></term>
853 <listitem>
854 <para> converts files that contain non-supported character encoding
855 into files containing Latin-1 or Unicode-encoded characters.</para>
[49b50d4]856 <indexterm zone="openjdk native2ascii">
[2c25a56]857 <primary sortas="b-native2ascii">native2ascii</primary>
858 </indexterm>
859 </listitem>
860 </varlistentry>
[91a82cb]861-->
[49b50d4]862 <varlistentry id="orbd">
[2c25a56]863 <term><command>orbd</command></term>
864 <listitem>
865 <para>is used to enable clients to transparently locate and invoke
866 persistent objects on servers in the CORBA environment.</para>
[49b50d4]867 <indexterm zone="openjdk orbd">
[2c25a56]868 <primary sortas="b-orbd">orbd</primary>
869 </indexterm>
870 </listitem>
871 </varlistentry>
872
[49b50d4]873 <varlistentry id="pack200">
[2c25a56]874 <term><command>pack200</command></term>
875 <listitem>
876 <para>is a Java application that transforms a jar file into a
877 compressed pack200 file using the Java gzip compressor.</para>
[49b50d4]878 <indexterm zone="openjdk pack200">
[2c25a56]879 <primary sortas="b-pack200">pack200</primary>
880 </indexterm>
881 </listitem>
882 </varlistentry>
[91a82cb]883<!--
[49b50d4]884 <varlistentry id="policytool">
[2c25a56]885 <term><command>policytool</command></term>
886 <listitem>
887 <para>creates and manages a policy file graphically.</para>
[49b50d4]888 <indexterm zone="openjdk policytool">
[2c25a56]889 <primary sortas="b-policytool">policytool</primary>
890 </indexterm>
891 </listitem>
892 </varlistentry>
[91a82cb]893-->
[49b50d4]894 <varlistentry id="rmic">
[2c25a56]895 <term><command>rmic</command></term>
896 <listitem>
897 <para>generates stub and skeleton class files for remote objects
898 from the names of compiled Java classes that contain remote
899 object implementations.</para>
[49b50d4]900 <indexterm zone="openjdk rmic">
[2c25a56]901 <primary sortas="b-rmic">rmic</primary>
902 </indexterm>
903 </listitem>
904 </varlistentry>
905
[49b50d4]906 <varlistentry id="rmid">
[2c25a56]907 <term><command>rmid</command></term>
908 <listitem>
909 <para>starts the activation system daemon.</para>
[49b50d4]910 <indexterm zone="openjdk rmid">
[2c25a56]911 <primary sortas="b-rmid">rmid</primary>
912 </indexterm>
913 </listitem>
914 </varlistentry>
915
[49b50d4]916 <varlistentry id="rmiregistry">
[2c25a56]917 <term><command>rmiregistry</command></term>
918 <listitem>
919 <para>creates and starts a remote object registry on the specified
920 port on the current host.</para>
[49b50d4]921 <indexterm zone="openjdk rmiregistry">
[2c25a56]922 <primary sortas="b-rmiregistry">rmiregistry</primary>
923 </indexterm>
924 </listitem>
925 </varlistentry>
926
[49b50d4]927 <varlistentry id="schemagen">
[2c25a56]928 <term><command>schemagen</command></term>
929 <listitem>
930 <para>is a Java XML binding schema generator.</para>
[49b50d4]931 <indexterm zone="openjdk schemagen">
[2c25a56]932 <primary sortas="b-schemagen">schemagen</primary>
933 </indexterm>
934 </listitem>
935 </varlistentry>
936
[49b50d4]937 <varlistentry id="serialver">
[2c25a56]938 <term><command>serialver</command></term>
939 <listitem>
940 <para>returns the serialVersionUID for one or more classes in a
941 form suitable for copying into an evolving class.</para>
[49b50d4]942 <indexterm zone="openjdk serialver">
[2c25a56]943 <primary sortas="b-serialver">serialver</primary>
944 </indexterm>
945 </listitem>
946 </varlistentry>
947
[49b50d4]948 <varlistentry id="servertool">
[2c25a56]949 <term><command>servertool</command></term>
950 <listitem>
951 <para>provides an ease-of-use interface for application programmers
952 to register, unregister, startup and shutdown a server.</para>
[49b50d4]953 <indexterm zone="openjdk servertool">
[2c25a56]954 <primary sortas="b-servertool">servertool</primary>
955 </indexterm>
956 </listitem>
957 </varlistentry>
958
[49b50d4]959 <varlistentry id="tnameserv">
[2c25a56]960 <term><command>tnameserv</command></term>
961 <listitem>
962 <para>starts the Java IDL name server.</para>
[49b50d4]963 <indexterm zone="openjdk tnameserv">
[2c25a56]964 <primary sortas="b-tnameserv">tnameserv</primary>
965 </indexterm>
966 </listitem>
967 </varlistentry>
968
[49b50d4]969 <varlistentry id="unpack200">
[2c25a56]970 <term><command>unpack200</command></term>
971 <listitem>
972 <para>is a native implementation that transforms a packed file
973 produced by <application>pack200</application> into a jar
974 file.</para>
[49b50d4]975 <indexterm zone="openjdk unpack200">
[2c25a56]976 <primary sortas="b-unpack200">unpack200</primary>
977 </indexterm>
978 </listitem>
979 </varlistentry>
980
[49b50d4]981 <varlistentry id="wsgen">
[2c25a56]982 <term><command>wsgen</command></term>
983 <listitem>
984 <para>generates JAX-WS portable artifacts used in JAX-WS
985 web services.</para>
[49b50d4]986 <indexterm zone="openjdk wsgen">
[2c25a56]987 <primary sortas="b-wsgen">wsgen</primary>
988 </indexterm>
989 </listitem>
990 </varlistentry>
991
[49b50d4]992 <varlistentry id="wsimport">
[2c25a56]993 <term><command>wsimport</command></term>
994 <listitem>
995 <para>generates JAX-WS portable artifacts.</para>
[49b50d4]996 <indexterm zone="openjdk wsimport">
[2c25a56]997 <primary sortas="b-wsimport">wsimport</primary>
998 </indexterm>
999 </listitem>
1000 </varlistentry>
1001
[49b50d4]1002 <varlistentry id="xjc">
[2c25a56]1003 <term><command>xjc</command></term>
1004 <listitem>
1005 <para>is a Java XML binding compiler.</para>
[49b50d4]1006 <indexterm zone="openjdk xjc">
[2c25a56]1007 <primary sortas="b-xjc">xjc</primary>
1008 </indexterm>
1009 </listitem>
1010 </varlistentry>
1011
1012 </variablelist>
1013
1014 </sect2>
1015
1016</sect1>
Note: See TracBrowser for help on using the repository browser.