source: general/prog/openjdk.xml@ 45ab6c7

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 45ab6c7 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

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