source: general/prog/openjdk.xml@ 84231e06

11.2 11.3 12.0 12.1 gimp3 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 xry111/for-12.3 xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/xf86-video-removal
Last change on this file since 84231e06 was 113b43c6, checked in by Pierre Labastie <pierre.labastie@…>, 3 years ago

Tag java and openjdk for 11.1

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