source: general/prog/openjdk.xml@ aa41434

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.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 aa41434 was aa41434, checked in by Pierre Labastie <pieere@…>, 4 years ago

Fix <option> vs <parameter>, and sometimes a little more

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

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