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