source: general/prog/openjdk.xml@ f2f955a

12.2 gimp3 lazarus trunk xry111/for-12.3 xry111/spidermonkey128
Last change on this file since f2f955a was b480490, checked in by Bruce Dubbs <bdubbs@…>, 3 months ago

Fix openjdk url.

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