source: general/prog/openjdk.xml@ 3d678dc

10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 3d678dc was 3d678dc, checked in by Pierre Labastie <pieere@…>, 3 years ago

Tag openjdk, the last one in the "general ..." chapter

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

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