source: general/prog/openjdk.xml@ de33b2a

10.0 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 de33b2a was de33b2a, checked in by Pierre Labastie <pieere@…>, 4 years ago

Format general/prog

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

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