[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 |
|
---|
[8770a48] | 7 | <!ENTITY ojdk-upd "51">
|
---|
| 8 | <!ENTITY ojdk-bd "b16">
|
---|
[cdd1013] | 9 | <!ENTITY ojdk-tarball "jdk8u&ojdk-upd;-&ojdk-bd;.tar.bz2">
|
---|
[8770a48] | 10 | <!ENTITY ojdk-repo "http://hg.openjdk.java.net/jdk8u/jdk8u60">
|
---|
[cdd1013] | 11 | <!ENTITY ojdk-download "&ojdk-repo;/archive/&ojdk-tarball;">
|
---|
[49b50d4] | 12 |
|
---|
[e9ac749] | 13 | <!ENTITY anduin-download "http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK-&openjdk-version;">
|
---|
[49b50d4] | 14 |
|
---|
[8770a48] | 15 | <!ENTITY ojdk-md5sum "b7ff36d84ddef546ea84e7e05c19a43f">
|
---|
[ac38e9dc] | 16 | <!ENTITY ojdk-size "388 KB">
|
---|
[49b50d4] | 17 |
|
---|
[cdd1013] | 18 | <!ENTITY corba-download "&anduin-download;/corba.tar.xz">
|
---|
[8770a48] | 19 | <!ENTITY corba-md5sum "90bf1db1628913a590b1be044dc61569">
|
---|
| 20 | <!ENTITY corba-size "918 KB">
|
---|
[49b50d4] | 21 |
|
---|
[cdd1013] | 22 | <!ENTITY hotspot-download "&anduin-download;/hotspot.tar.xz">
|
---|
[8770a48] | 23 | <!ENTITY hotspot-md5sum "5702b0b10817111fd2136e9abc82f4d8">
|
---|
[ac38e9dc] | 24 | <!ENTITY hotspot-size "6.3 MB">
|
---|
[49b50d4] | 25 |
|
---|
[cdd1013] | 26 | <!ENTITY jaxp-download "&anduin-download;/jaxp.tar.xz">
|
---|
[8770a48] | 27 | <!ENTITY jaxp-md5sum "37afb7eea36dd0443baa6de379f441b1">
|
---|
[cdd1013] | 28 | <!ENTITY jaxp-size "2.2 MB">
|
---|
[49b50d4] | 29 |
|
---|
[cdd1013] | 30 | <!ENTITY jaxws-download "&anduin-download;/jaxws.tar.xz">
|
---|
[8770a48] | 31 | <!ENTITY jaxws-md5sum "180c01db60522f2e349348cca72ff90c">
|
---|
[ac38e9dc] | 32 | <!ENTITY jaxws-size "2.2 MB">
|
---|
[49b50d4] | 33 |
|
---|
[cdd1013] | 34 | <!ENTITY jdk-download "&anduin-download;/jdk.tar.xz">
|
---|
[8770a48] | 35 | <!ENTITY jdk-md5sum "0c0b0c2a4698ca8669e78251327ec3ad">
|
---|
[ac38e9dc] | 36 | <!ENTITY jdk-size "36.4 MB">
|
---|
[49b50d4] | 37 |
|
---|
[cdd1013] | 38 | <!ENTITY langtools-download "&anduin-download;/langtools.tar.xz">
|
---|
[8770a48] | 39 | <!ENTITY langtools-md5sum "b2f3787e284e1df1abe66d728e290abb">
|
---|
[cdd1013] | 40 | <!ENTITY langtools-size "2.0 MB">
|
---|
[49b50d4] | 41 |
|
---|
[cdd1013] | 42 | <!ENTITY nashorn-download "&anduin-download;/nashorn.tar.xz">
|
---|
[8770a48] | 43 | <!ENTITY nashorn-md5sum "9c9882d6b603274be3e9c7def0edba40">
|
---|
[ac38e9dc] | 44 | <!ENTITY nashorn-size "2.1 MB">
|
---|
[49b50d4] | 45 |
|
---|
[8770a48] | 46 | <!ENTITY jtreg-version "4.1-b12-356">
|
---|
[ac38e9dc] | 47 | <!ENTITY jtreg-download "&anduin-download;/jtreg&jtreg-version;.tar.xz">
|
---|
[8770a48] | 48 | <!ENTITY jtreg-md5sum "1c8609e1078411a4f6efdd0c194c1716">
|
---|
[ac38e9dc] | 49 | <!ENTITY jtreg-size "7.2 MB">
|
---|
[cdd1013] | 50 |
|
---|
| 51 | <!ENTITY icedtea-web-download "http://icedtea.classpath.org/download/source/icedtea-web-&icedtea-web-version;.tar.gz">
|
---|
| 52 |
|
---|
[8770a48] | 53 | <!ENTITY ojdk-buildsize "3.6 GB (additional 536 MB for tests)">
|
---|
| 54 | <!ENTITY ojdk-time "10 SBU (additional 105 SBU for tests)">
|
---|
[2c25a56] | 55 | ]>
|
---|
| 56 |
|
---|
[cdd1013] | 57 | <sect1 id="openjdk"
|
---|
| 58 | xreflabel="OpenJDK-&openjdk-version;">
|
---|
[49b50d4] | 59 | <?dbhtml filename="openjdk.html" ?>
|
---|
[2c25a56] | 60 |
|
---|
| 61 | <sect1info>
|
---|
| 62 | <othername>$LastChangedBy$</othername>
|
---|
| 63 | <date>$Date$</date>
|
---|
| 64 | </sect1info>
|
---|
| 65 |
|
---|
[cdd1013] | 66 | <title>OpenJDK-&openjdk-version;</title>
|
---|
[2c25a56] | 67 |
|
---|
[49b50d4] | 68 | <indexterm zone="openjdk">
|
---|
| 69 | <primary sortas="a-OpenJDK">OpenJDK</primary>
|
---|
[2c25a56] | 70 | </indexterm>
|
---|
| 71 |
|
---|
| 72 | <sect2 role="package">
|
---|
[cdd1013] | 73 | <title>Introduction to OpenJDK</title>
|
---|
| 74 |
|
---|
| 75 | <para>
|
---|
| 76 | <application>OpenJDK</application> is an open-source implementation
|
---|
| 77 | of Oracle's Java Standard Edition platform.
|
---|
| 78 | <application>OpenJDK</application> is useful for developing
|
---|
| 79 | <application>Java</application> programs, and provides a complete
|
---|
| 80 | runtime environment to run <application>Java</application> programs.
|
---|
| 81 | </para>
|
---|
[2c25a56] | 82 |
|
---|
[ac38e9dc] | 83 | &lfs77_checked;
|
---|
[efd03f7] | 84 |
|
---|
[cdd1013] | 85 | <note>
|
---|
| 86 | <para>
|
---|
| 87 | A browser plugin and webstart implementation, as well as a
|
---|
| 88 | pulseaudio sound backend are provided by the Icedtea project. To provide
|
---|
| 89 | a complete implementation, you will need to later install
|
---|
| 90 | <xref linkend="icedtea-web"/> and <xref linkend="icedtea-sound"/>.
|
---|
| 91 | </para>
|
---|
| 92 | </note>
|
---|
| 93 |
|
---|
| 94 | <para>
|
---|
| 95 | OpenJDK is GPL'd code, with a special exception made for non-free
|
---|
| 96 | projects to use these classes in their proprietary products.
|
---|
| 97 | In similar fashion to the LGPL, which allows non-free programs to link
|
---|
| 98 | to libraries provided by free software, the
|
---|
| 99 | <ulink url="http://openjdk.java.net/legal/gplv2+ce.html">GNU
|
---|
| 100 | General Public License, version 2, with the Classpath Exception</ulink>
|
---|
| 101 | allows third party programs to use classes provided by free software
|
---|
| 102 | without the requirement that the third party software also be free. As
|
---|
| 103 | with the LGPL, any modifications made to the free software portions of a
|
---|
| 104 | third party application, must also be made freely available.
|
---|
| 105 | </para>
|
---|
[2c25a56] | 106 |
|
---|
| 107 | <note>
|
---|
[cdd1013] | 108 | <para>
|
---|
| 109 | The <application>OpenJDK</application> source includes a very
|
---|
| 110 | thorough, open source test suite using the
|
---|
| 111 | <application>JTreg</application> test harness. The testing instructions
|
---|
| 112 | below allow to test the just built JDK for reasonable compatibility
|
---|
| 113 | with the proprietary Oracle JDK. However, in order for an independent
|
---|
| 114 | implementation to claim compatibility, it must pass a proprietary
|
---|
| 115 | <application>JCK/TCK</application> test suite. No claims of
|
---|
| 116 | compatibility, even partial compatibility, may be made without passing
|
---|
| 117 | an approved test suite.
|
---|
| 118 | </para>
|
---|
| 119 |
|
---|
| 120 | <para>
|
---|
| 121 | Oracle does provide free community access, on a case by case basis, to
|
---|
| 122 | a closed toolkit to ensure 100% compatibility with its proprietary JDK.
|
---|
| 123 | Neither the binary version provided on the <xref linkend="java"/> page
|
---|
| 124 | nor the JVM built with the instructions below have been tested against
|
---|
| 125 | the <ulink
|
---|
| 126 | url="http://openjdk.java.net/groups/conformance/JckAccess/jck-access.html">
|
---|
| 127 | TCK</ulink>. Any version that is built using the instructions given,
|
---|
| 128 | cannot claim to be compatible with the proprietary JDK, without the
|
---|
| 129 | user applying for, and completing the compatibility tests themselves.
|
---|
| 130 | </para>
|
---|
| 131 |
|
---|
| 132 | <para>
|
---|
| 133 | With that in mind, the binaries produced using this build method are
|
---|
| 134 | regularly tested against the TCK by the members listed on the site
|
---|
| 135 | above. In addition to the community license above, an educational,
|
---|
| 136 | non-commercial license for the TCK can be obtained from <ulink
|
---|
| 137 | url="http://www.oracle.com/technetwork/java/index-137188.html">
|
---|
| 138 | here</ulink>.
|
---|
| 139 | </para>
|
---|
[2c25a56] | 140 | </note>
|
---|
| 141 |
|
---|
| 142 | <bridgehead renderas="sect3">Source Package Information</bridgehead>
|
---|
| 143 | <itemizedlist spacing="compact">
|
---|
| 144 | <listitem>
|
---|
[cdd1013] | 145 | <para>OpenJDK Root Package
|
---|
[2c25a56] | 146 | <simplelist>
|
---|
[cdd1013] | 147 | <member>Download: <ulink url="&ojdk-download;"/></member>
|
---|
| 148 | <member>Download MD5 sum: &ojdk-md5sum;</member>
|
---|
| 149 | <member>Download Size: &ojdk-size;</member>
|
---|
[2c25a56] | 150 | </simplelist>
|
---|
| 151 | </para>
|
---|
| 152 | </listitem>
|
---|
[f533b0d] | 153 | </itemizedlist>
|
---|
| 154 |
|
---|
[cdd1013] | 155 | <para>
|
---|
| 156 | The following files may be downladed from the OpenJDK mercurial
|
---|
| 157 | repository using the addresses <ulink
|
---|
[ac38e9dc] | 158 | url="&ojdk-repo;/<component>/archive/&ojdk-tarball;"/>,
|
---|
[cdd1013] | 159 | where <component> is the name of the JVM component (corba,
|
---|
| 160 | hostspot, and so on), but that involves renaming the downloaded files,
|
---|
| 161 | and renaming the extracted directories.
|
---|
| 162 | For convenience, the BLFS editors have made the files available in an LFS
|
---|
| 163 | website.
|
---|
| 164 | </para>
|
---|
[f533b0d] | 165 |
|
---|
| 166 | <itemizedlist spacing="compact">
|
---|
[2c25a56] | 167 | <listitem>
|
---|
[49b50d4] | 168 | <para>Corba Source
|
---|
| 169 | <simplelist>
|
---|
| 170 | <member>Download: <ulink url="&corba-download;"/></member>
|
---|
| 171 | <member>Download MD5 sum: &corba-md5sum;</member>
|
---|
| 172 | <member>Download Size: &corba-size;</member>
|
---|
| 173 | </simplelist>
|
---|
| 174 | </para>
|
---|
| 175 | </listitem>
|
---|
| 176 | <listitem>
|
---|
| 177 | <para>Hotspot Source
|
---|
[2c25a56] | 178 | <simplelist>
|
---|
[49b50d4] | 179 | <member>Download: <ulink url="&hotspot-download;"/></member>
|
---|
| 180 | <member>Download MD5 sum: &hotspot-md5sum;</member>
|
---|
| 181 | <member>Download Size: &hotspot-size;</member>
|
---|
[2c25a56] | 182 | </simplelist>
|
---|
| 183 | </para>
|
---|
| 184 | </listitem>
|
---|
| 185 | <listitem>
|
---|
| 186 | <para>JAXP Source
|
---|
| 187 | <simplelist>
|
---|
[49b50d4] | 188 | <member>Download: <ulink url="&jaxp-download;"/></member>
|
---|
| 189 | <member>Download MD5 sum: &jaxp-md5sum;</member>
|
---|
| 190 | <member>Download Size: &jaxp-size;</member>
|
---|
[2c25a56] | 191 | </simplelist>
|
---|
| 192 | </para>
|
---|
| 193 | </listitem>
|
---|
| 194 | <listitem>
|
---|
| 195 | <para>JAXWS Source
|
---|
| 196 | <simplelist>
|
---|
[49b50d4] | 197 | <member>Download: <ulink url="&jaxws-download;"/></member>
|
---|
| 198 | <member>Download MD5 sum: &jaxws-md5sum;</member>
|
---|
| 199 | <member>Download Size: &jaxws-size;</member>
|
---|
| 200 | </simplelist>
|
---|
| 201 | </para>
|
---|
| 202 | </listitem>
|
---|
| 203 | <listitem>
|
---|
| 204 | <para>Langtools Source
|
---|
| 205 | <simplelist>
|
---|
| 206 | <member>Download: <ulink url="&langtools-download;"/></member>
|
---|
| 207 | <member>Download MD5 sum: &langtools-md5sum;</member>
|
---|
| 208 | <member>Download Size: &langtools-size;</member>
|
---|
| 209 | </simplelist>
|
---|
| 210 | </para>
|
---|
| 211 | </listitem>
|
---|
| 212 | <listitem>
|
---|
[cdd1013] | 213 | <para>JDK Source
|
---|
[49b50d4] | 214 | <simplelist>
|
---|
| 215 | <member>Download: <ulink url="&jdk-download;"/></member>
|
---|
| 216 | <member>Download MD5 sum: &jdk-md5sum;</member>
|
---|
| 217 | <member>Download Size: &jdk-size;</member>
|
---|
[2c25a56] | 218 | </simplelist>
|
---|
| 219 | </para>
|
---|
| 220 | </listitem>
|
---|
| 221 | <listitem>
|
---|
[cdd1013] | 222 | <para>Nashorn Source
|
---|
| 223 | <simplelist>
|
---|
| 224 | <member>Download: <ulink url="&nashorn-download;"/></member>
|
---|
| 225 | <member>Download MD5 sum: &nashorn-md5sum;</member>
|
---|
| 226 | <member>Download Size: &nashorn-size;</member>
|
---|
| 227 | </simplelist>
|
---|
| 228 | </para>
|
---|
| 229 | </listitem>
|
---|
| 230 | <listitem>
|
---|
| 231 | <para>Estimated disk space required: &ojdk-buildsize;</para>
|
---|
[2c25a56] | 232 | </listitem>
|
---|
| 233 | <listitem>
|
---|
[cdd1013] | 234 | <para>Estimated build time: &ojdk-time;</para>
|
---|
[2c25a56] | 235 | </listitem>
|
---|
| 236 | </itemizedlist>
|
---|
| 237 |
|
---|
| 238 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 239 |
|
---|
| 240 | <itemizedlist spacing='compact'>
|
---|
| 241 | <listitem>
|
---|
[cdd1013] | 242 | <para>
|
---|
| 243 | Optional package (to get an icon for the
|
---|
| 244 | <filename>openjdk-8-policytool.desktop</filename> file):
|
---|
| 245 | <ulink url="&icedtea-web-download;"/>
|
---|
| 246 | </para>
|
---|
[2c25a56] | 247 | </listitem>
|
---|
| 248 | <listitem>
|
---|
[cdd1013] | 249 | <para>
|
---|
[ac38e9dc] | 250 | Recommended test harness: <ulink url="&jtreg-download;"/>
|
---|
[2c25a56] | 251 | </para>
|
---|
| 252 | </listitem>
|
---|
| 253 | </itemizedlist>
|
---|
[cdd1013] | 254 |
|
---|
[49b50d4] | 255 | <bridgehead renderas="sect3">OpenJDK Dependencies</bridgehead>
|
---|
[bc00982] | 256 |
|
---|
[92b1341] | 257 | <bridgehead renderas="sect4">Required Dependencies</bridgehead>
|
---|
[2e41a4f] | 258 | <para role="required">
|
---|
[cdd1013] | 259 | An existing binary (<xref linkend="java"/> or an earlier built
|
---|
[710fb64] | 260 | version of this package),
|
---|
[52a4df28] | 261 | <xref linkend="alsa-lib"/>,
|
---|
[92b1341] | 262 | <xref linkend="cpio"/>,
|
---|
[de930747] | 263 | <xref linkend="cups"/>,
|
---|
[2e41a4f] | 264 | <xref linkend="unzip"/>,
|
---|
[92b1341] | 265 | <xref linkend="which"/>,
|
---|
[cdd1013] | 266 | <xref linkend="xorg7-lib"/>, and
|
---|
[2e41a4f] | 267 | <xref linkend="zip"/>
|
---|
| 268 | </para>
|
---|
[2c25a56] | 269 |
|
---|
[52a4df28] | 270 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 271 | <para role="recommended">
|
---|
[cdd1013] | 272 | <xref linkend="cacerts"/> and
|
---|
| 273 | <xref linkend="giflib"/>
|
---|
[52a4df28] | 274 | </para>
|
---|
| 275 |
|
---|
[e01f402] | 276 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 277 | <para role="optional">
|
---|
[cdd1013] | 278 | <xref linkend="mercurial"/> and
|
---|
[ac38e9dc] | 279 | an X Window manager such as <xref linkend="twm"/> (for the tests)
|
---|
[e01f402] | 280 | </para>
|
---|
| 281 |
|
---|
[2c25a56] | 282 | <para condition="html" role="usernotes">User Notes:
|
---|
[49b50d4] | 283 | <ulink url="&blfs-wiki;/openjdk"/></para>
|
---|
[2c25a56] | 284 |
|
---|
| 285 | </sect2>
|
---|
| 286 |
|
---|
| 287 | <sect2 role="installation">
|
---|
[49b50d4] | 288 | <title>Installation of OpenJDK</title>
|
---|
[2c25a56] | 289 |
|
---|
[cdd1013] | 290 | <para>
|
---|
| 291 | Unlike other packages in BLFS, the <application>OpenJDK</application>
|
---|
| 292 | source packages are distributed in multiple tar balls. You need to first
|
---|
| 293 | extract the source root from <filename>&ojdk-tarball;</filename>, change
|
---|
| 294 | into the extracted directory, then proceed with the following
|
---|
| 295 | instructions:
|
---|
| 296 | </para>
|
---|
[2c25a56] | 297 |
|
---|
[cdd1013] | 298 | <screen><userinput>tar -xf ../corba.tar.xz &&
|
---|
| 299 | tar -xf ../hotspot.tar.xz &&
|
---|
| 300 | tar -xf ../jaxp.tar.xz &&
|
---|
| 301 | tar -xf ../jaxws.tar.xz &&
|
---|
| 302 | tar -xf ../jdk.tar.xz &&
|
---|
| 303 | tar -xf ../langtools.tar.xz &&
|
---|
| 304 | tar -xf ../nashorn.tar.xz</userinput></screen>
|
---|
[bc00982] | 305 |
|
---|
[cdd1013] | 306 | <para>
|
---|
[ac38e9dc] | 307 | If you have downloaded the recommended test harness, unpack it too:
|
---|
[cdd1013] | 308 | </para>
|
---|
[2c25a56] | 309 |
|
---|
[ac38e9dc] | 310 | <screen><userinput>tar -xf ../jtreg&jtreg-version;.tar.xz</userinput></screen>
|
---|
[cdd1013] | 311 |
|
---|
| 312 | <!--TODO: it might be better to add instructions for the cacerts file at
|
---|
| 313 | this place and to use the switch "with-cacerts-file" -->
|
---|
| 314 |
|
---|
| 315 | <para>
|
---|
| 316 | Fix an issue with the new (since 5.1.0) giflib API:
|
---|
| 317 | </para>
|
---|
[49b50d4] | 318 |
|
---|
[cdd1013] | 319 | <screen><userinput>sed -e 's/DGifCloseFile(gif/&, NULL/' \
|
---|
| 320 | -e '/DGifOpen/s/c)/c, NULL)/' \
|
---|
| 321 | -i jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c</userinput></screen>
|
---|
[49b50d4] | 322 |
|
---|
[cdd1013] | 323 | <para>
|
---|
[ac38e9dc] | 324 | One file in hotspot needs a change, since it relies on a non-normative
|
---|
| 325 | compiler behavior, which has changed with GCC version 5. Note that the change
|
---|
| 326 | works also with previous versions.
|
---|
[cdd1013] | 327 | </para>
|
---|
[6f01fd2e] | 328 |
|
---|
[ac38e9dc] | 329 | <screen><userinput>sed -e 's/(hi - lo)/ hi - lo /' \
|
---|
| 330 | -e 's/(lo - hi)/ lo - hi /' \
|
---|
| 331 | -i hotspot/src/share/vm/opto/type.cpp</userinput></screen>
|
---|
[2c25a56] | 332 |
|
---|
[cdd1013] | 333 | <note>
|
---|
| 334 | <para>
|
---|
| 335 | Before proceeding, you should ensure that your environment
|
---|
| 336 | <envar>PATH</envar> variable contains the location of the Java
|
---|
| 337 | compilers used for bootstrapping <application>OpenJDK</application>.
|
---|
| 338 | This is the only requirement for the environment. Modern Java
|
---|
| 339 | installations do not need <envar>JAVA_HOME</envar> and
|
---|
| 340 | <envar>CLASSPATH</envar> is not used here. Furthermore, OpenJDK
|
---|
| 341 | developers recommand to unset <envar>JAVA_HOME</envar>.
|
---|
| 342 | </para>
|
---|
| 343 |
|
---|
| 344 | <para>
|
---|
| 345 | The build system does not support the <option>-j</option> switch in
|
---|
| 346 | <envar>MAKEFLAGS</envar>.
|
---|
| 347 | </para>
|
---|
| 348 | </note>
|
---|
[bc00982] | 349 |
|
---|
[cdd1013] | 350 | <para>Configure and build the package with the following commands
|
---|
| 351 | (--with-milestone value can be modified to fit user preferences):</para>
|
---|
| 352 |
|
---|
| 353 | <screen><userinput>unset JAVA_HOME &&
|
---|
| 354 | sh ./configure \
|
---|
| 355 | --with-update-version=&ojdk-upd; \
|
---|
| 356 | --with-build-number=&ojdk-bd; \
|
---|
| 357 | --with-milestone=BLFS \
|
---|
| 358 | --enable-unlimited-crypto \
|
---|
| 359 | --with-zlib=system \
|
---|
| 360 | --with-giflib=system &&
|
---|
[ac38e9dc] | 361 | make DEBUG_BINARIES=true \
|
---|
| 362 | DISABLE_HOTSPOT_OS_VERSION_CHECK=ok \
|
---|
| 363 | all &&
|
---|
| 364 | find build/*/images/j2sdk-image -iname \*.diz -delete
|
---|
| 365 | </userinput></screen>
|
---|
| 366 |
|
---|
| 367 | <note>
|
---|
| 368 | <para>
|
---|
| 369 | Testing will involve the interplay of pairs of JVMs using the
|
---|
| 370 | networking interface, so networking must be started. If it
|
---|
| 371 | isn't, not only will these tests fail, but the test cleanup
|
---|
| 372 | will leave orphaned JVMs running. There will be many of
|
---|
| 373 | them. Rebooting may be the easiest recovery.
|
---|
| 374 | </para>
|
---|
| 375 | </note>
|
---|
[bc00982] | 376 |
|
---|
[cdd1013] | 377 | <para>
|
---|
[ac38e9dc] | 378 | Testing the newly built JVM involves several steps.
|
---|
[cdd1013] | 379 | First, it is better to run the test suite in a frame buffer on a
|
---|
| 380 | different display, using Xvfb:
|
---|
| 381 | </para>
|
---|
[49b50d4] | 382 |
|
---|
[cdd1013] | 383 | <!-- Careful with the && below:
|
---|
| 384 | "export DISPLAY=... && somecommand &" exports only DISPLAY to "somecommand"
|
---|
| 385 | but not to the current environment, and
|
---|
| 386 | "echo $! .... &&" does not echo the right PID. SO all && suppressed.-->
|
---|
| 387 | <screen role='nodump'><userinput>if [ -n "$DISPLAY" ]; then
|
---|
| 388 | OLD_DISP=$DISPLAY
|
---|
| 389 | fi
|
---|
| 390 | export DISPLAY=:20
|
---|
| 391 | nohup Xvfb $DISPLAY \
|
---|
| 392 | -fbdir $(pwd) \
|
---|
| 393 | -pixdepths 8 16 24 32 > Xvfb.out 2>&1 &
|
---|
| 394 | echo $! > Xvfb.pid
|
---|
| 395 | echo Waiting for Xvfb to initialize; sleep 1
|
---|
| 396 | nohup twm -display $DISPLAY \
|
---|
| 397 | -f /dev/null > twm.out 2>&1 &
|
---|
| 398 | echo $! > twm.pid
|
---|
| 399 | echo Waiting for twm to initialize; sleep 1
|
---|
| 400 | xhost +</userinput></screen>
|
---|
[870e4acf] | 401 |
|
---|
[cdd1013] | 402 | <para>
|
---|
[ac38e9dc] | 403 | Then, it is necessary to modify some files<!-- (replace <N> with the
|
---|
| 404 | number of JAVA VM allowed to run concurrently)-->:
|
---|
[cdd1013] | 405 | </para>
|
---|
[870e4acf] | 406 |
|
---|
[cdd1013] | 407 | <screen role='nodump'><userinput>echo -e "
|
---|
| 408 | jdk_all = :jdk_core \\
|
---|
| 409 | :jdk_svc \\
|
---|
| 410 | :jdk_beans \\
|
---|
| 411 | :jdk_imageio \\
|
---|
| 412 | :jdk_sound \\
|
---|
| 413 | :jdk_sctp \\
|
---|
| 414 | com/sun/awt \\
|
---|
| 415 | javax/accessibility \\
|
---|
| 416 | javax/print \\
|
---|
| 417 | sun/pisces \\
|
---|
| 418 | com/sun/java/swing" >> jdk/test/TEST.groups &&
|
---|
[ac38e9dc] | 419 | sed -e 's/all:.*jck.*/all: jtreg/' \
|
---|
| 420 | -e '/^JTREG /s@\$(JT_PLATFORM)/@@' \
|
---|
| 421 | -i langtools/test/Makefile<!-- &&
|
---|
| 422 | sed -i 's@/win32@@' jdk/test/Makefile &&
|
---|
| 423 | sed -e 's@JTREG_HOME@JT_PLATFORM="" &@' \
|
---|
| 424 | -e 's@TEST="@CONCURRENCY=<N> &@' \
|
---|
| 425 | -i test/Makefile--></userinput></screen>
|
---|
[49b50d4] | 426 |
|
---|
[cdd1013] | 427 | <para>
|
---|
| 428 | Some variables have to be set:
|
---|
| 429 | </para>
|
---|
[49b50d4] | 430 |
|
---|
[cdd1013] | 431 | <screen role='nodump'><userinput>JT_JAVA=$(type -p javac | sed 's@/bin.*@@') &&
|
---|
| 432 | JT_HOME=$(pwd)/jtreg &&
|
---|
| 433 | PRODUCT_HOME=$(echo $(pwd)/build/*/images/j2sdk-image)</userinput></screen>
|
---|
| 434 |
|
---|
| 435 | <para>
|
---|
| 436 | The tests are run as follows:
|
---|
| 437 | </para>
|
---|
| 438 |
|
---|
[ac38e9dc] | 439 | <!-- no && here either, because the first "make" may return an error -->
|
---|
[cdd1013] | 440 | <screen role='nodump'><userinput>LANG=C make -k -C test \
|
---|
| 441 | JT_HOME=${JT_HOME} \
|
---|
| 442 | JT_JAVA=${JT_JAVA} \
|
---|
[ac38e9dc] | 443 | PRODUCT_HOME=${PRODUCT_HOME} all
|
---|
| 444 | LANG=C ${JT_HOME}/bin/jtreg -a -v:fail,error \
|
---|
| 445 | -dir:$(pwd)/hotspot/test \
|
---|
| 446 | -k:\!ignore \
|
---|
| 447 | -jdk:${PRODUCT_HOME} \
|
---|
| 448 | <!-- -agentvm -conc:<N> \
|
---|
| 449 | --> :jdk</userinput></screen>
|
---|
[cdd1013] | 450 |
|
---|
| 451 | <para>
|
---|
| 452 | The test results can be compared to
|
---|
| 453 | <ulink url="http://download.java.net/openjdk/testresults/8/">these
|
---|
[ac38e9dc] | 454 | results</ulink>, although they usually are run on a newer version.
|
---|
| 455 | Some failures can be expected, the number of which depends on various
|
---|
| 456 | conditions, like whether the computer is connected to network. Also, some
|
---|
| 457 | tests may timeout if the machine is under load.
|
---|
| 458 | </para>
|
---|
| 459 |
|
---|
| 460 | <para>
|
---|
| 461 | Next some cleanup has to be done. The instructions below only stop the
|
---|
| 462 | frame buffer, but it has been reported that some java VM may be left running
|
---|
| 463 | after the tests, so it is necessary to check orphaned processes:
|
---|
[cdd1013] | 464 | </para>
|
---|
| 465 |
|
---|
| 466 | <screen role='nodump'><userinput>kill -9 `cat twm.pid` &&
|
---|
[92b1341] | 467 | kill -9 `cat Xvfb.pid` &&
|
---|
[cdd1013] | 468 | rm -f Xvfb.out twm.out &&
|
---|
| 469 | rm -f Xvfb.pid twm.pid &&
|
---|
| 470 | if [ -n "$OLD_DISP" ]; then
|
---|
| 471 | DISPLAY=$OLD_DISP
|
---|
| 472 | fi</userinput></screen>
|
---|
[92b1341] | 473 |
|
---|
[2c25a56] | 474 | <para>Install the package with the following commands as the
|
---|
| 475 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 476 |
|
---|
[ac38e9dc] | 477 | <screen role="root"><userinput>cp -RT build/*/images/j2sdk-image /opt/OpenJDK-&openjdk-version; &&
|
---|
[49b50d4] | 478 | chown -R root:root /opt/OpenJDK-&openjdk-version;</userinput></screen>
|
---|
[2c25a56] | 479 |
|
---|
[ac38e9dc] | 480 | <para>
|
---|
| 481 | There are now two <application>OpenJDK</application> SDKs installed
|
---|
| 482 | in <filename class="directory">/opt</filename>. You should decide on
|
---|
| 483 | which one you would like to use as the default. Normally, you would opt
|
---|
| 484 | for the just installed <application>OpenJDK</application>. If so, do
|
---|
| 485 | the following as the <systemitem class="username">root</systemitem>
|
---|
| 486 | user:
|
---|
| 487 | </para>
|
---|
| 488 |
|
---|
| 489 | <screen role="root"><userinput>ln -sfvn OpenJDK-&openjdk-version; /opt/jdk</userinput></screen>
|
---|
| 490 |
|
---|
| 491 | <para>If desired, you may install a .desktop file corresponding to an entry
|
---|
| 492 | in a desktop menu for <command>policytool</command>. First, you need to
|
---|
| 493 | obtain an icon from <xref linkend="icedtea-web"/>:</para>
|
---|
[300b4ee] | 494 |
|
---|
[ac38e9dc] | 495 | <screen><userinput>tar -xf ../icedtea-web-&icedtea-web-version;.tar.gz \
|
---|
[e520fdef] | 496 | icedtea-web-&icedtea-web-version;/javaws.png \
|
---|
| 497 | --strip-components=1</userinput></screen>
|
---|
| 498 |
|
---|
| 499 | <para>Now, as <systemitem class="username">root</systemitem> user:</para>
|
---|
| 500 |
|
---|
[cdd1013] | 501 | <screen role="root"><userinput>mkdir -pv /usr/share/applications &&
|
---|
| 502 |
|
---|
| 503 | cat > /usr/share/applications/openjdk-8-policytool.desktop << "EOF" &&
|
---|
[300b4ee] | 504 | <literal>[Desktop Entry]
|
---|
[cdd1013] | 505 | Name=OpenJDK Java Policy Tool
|
---|
| 506 | Name[pt_BR]=OpenJDK Java - Ferramenta de Política
|
---|
| 507 | Comment=OpenJDK Java Policy Tool
|
---|
| 508 | Comment[pt_BR]=OpenJDK Java - Ferramenta de Política
|
---|
[300b4ee] | 509 | Exec=/opt/jdk/bin/policytool
|
---|
| 510 | Terminal=false
|
---|
| 511 | Type=Application
|
---|
| 512 | Icon=javaws
|
---|
| 513 | Categories=Settings;</literal>
|
---|
| 514 | EOF
|
---|
| 515 |
|
---|
[e520fdef] | 516 | install -v -Dm644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen>
|
---|
| 517 |
|
---|
[ac38e9dc] | 518 | <para>The choice of pt_BR is just an example. You can add any translation
|
---|
| 519 | by adding lines corresponding to your locale, e.g. for fr_FR,
|
---|
| 520 | <quote>Name[fr_FR]=</quote> and <quote>Comment[fr_FR]=</quote> with the
|
---|
| 521 | appropriate text as values.</para>
|
---|
[300b4ee] | 522 |
|
---|
[2c25a56] | 523 | </sect2>
|
---|
| 524 |
|
---|
| 525 | <sect2 role="commands">
|
---|
| 526 | <title>Command Explanations</title>
|
---|
| 527 |
|
---|
[cdd1013] | 528 | <para>
|
---|
| 529 | <command>sh configure...</command>: the top level
|
---|
| 530 | <filename>configure</filename> is a wrapper around the autotools one.
|
---|
| 531 | It is not executable and must be run through <command>sh</command>.
|
---|
| 532 | </para>
|
---|
| 533 |
|
---|
| 534 | <para>
|
---|
| 535 | <option>--with-boot-jdk</option>: This switch provides the
|
---|
| 536 | location of the temporary <application>JDK</application>. It is normally
|
---|
| 537 | not needed if <command>java</command> is found in the <envar>PATH</envar>.
|
---|
| 538 | </para>
|
---|
| 539 |
|
---|
| 540 | <para>
|
---|
| 541 | <parameter>--with-update-version</parameter>: Currently, the build
|
---|
| 542 | system does not include the update number in the version string. It has
|
---|
| 543 | to be specified here.
|
---|
| 544 | </para>
|
---|
[2c25a56] | 545 |
|
---|
[cdd1013] | 546 | <para>
|
---|
| 547 | <parameter>--with-build-number</parameter>: Again, the build
|
---|
[ac38e9dc] | 548 | system does not include the build number in the version string. It has
|
---|
[cdd1013] | 549 | to be specified here too.
|
---|
| 550 | </para>
|
---|
| 551 |
|
---|
| 552 | <para>
|
---|
| 553 | <parameter>--with-milestone</parameter>: Used to customize the
|
---|
| 554 | version string.
|
---|
| 555 | </para>
|
---|
[2c25a56] | 556 |
|
---|
[cdd1013] | 557 | <para>
|
---|
| 558 | <parameter>--enable-unlimited-crypto</parameter>: Because of limitations
|
---|
| 559 | on the usage of cryptography in some countries, there is the possibility
|
---|
| 560 | to limit the size of encryption keys and the use of some algorithms in a
|
---|
| 561 | policy file. This switch allows to ship a policy file with no
|
---|
| 562 | restriction. It is the responsability of the user to ensure proper
|
---|
| 563 | adherence to the law.
|
---|
| 564 | </para>
|
---|
[5292423] | 565 |
|
---|
[cdd1013] | 566 | <para>
|
---|
| 567 | <parameter>--with-zlib=system, --with-giflib=system</parameter>: Allows
|
---|
| 568 | to use the system libraries instead of the bundled ones.
|
---|
| 569 | </para>
|
---|
[5292423] | 570 |
|
---|
[cdd1013] | 571 | <para>
|
---|
[ac38e9dc] | 572 | <option>--with-jobs=N</option>: Allows setting the number
|
---|
[cdd1013] | 573 | of jobs for <command>make</command> equal to N. The default is the
|
---|
| 574 | result of a calculation involving the available memory and the number
|
---|
[ac38e9dc] | 575 | of processors. Note that even if you specify N=1, some parallelization
|
---|
| 576 | may be used during the build. The SBU given above are with parallel jobs
|
---|
| 577 | disabled, on a single processor, single core, virtual machine.
|
---|
[cdd1013] | 578 | </para>
|
---|
[52a4df28] | 579 |
|
---|
[cdd1013] | 580 | <para>
|
---|
| 581 | <option>--with-cacerts-file=...</option>: Specifies where to find a
|
---|
[ac38e9dc] | 582 | <filename>cacerts</filename> file, typically <filename>
|
---|
| 583 | /opt/jdk/jre/lib/security</filename>. Otherwise, an empty one is created.
|
---|
| 584 | You can get it from an earlier version of the package, or use the
|
---|
[cdd1013] | 585 | script below to generate one.
|
---|
| 586 | </para>
|
---|
[e01f402] | 587 |
|
---|
[cdd1013] | 588 | <para>
|
---|
[ac38e9dc] | 589 | <command>make DEBUG_BINARIES=true
|
---|
[8770a48] | 590 | DISABLE_HOTSPOT_OS_VERSION_CHECK=ok all</command>: The build fails on
|
---|
| 591 | 32-bit machines if DEBUG_BINARIES is not set to true.
|
---|
| 592 | Furthermore, OS version checking in hotspot's Makefile does not account
|
---|
| 593 | for Linux version 4.x. Disabling the test is harmless and allows building.
|
---|
[cdd1013] | 594 | </para>
|
---|
[c770e18] | 595 |
|
---|
[cdd1013] | 596 | <para>
|
---|
[ac38e9dc] | 597 | <command>find ... -iname '*.diz' -delete</command>: This command
|
---|
| 598 | removes redundant files.
|
---|
[cdd1013] | 599 | </para>
|
---|
[5889b848] | 600 |
|
---|
[2c25a56] | 601 | </sect2>
|
---|
| 602 |
|
---|
[ac38e9dc] | 603 | <sect2 role="configuration"
|
---|
| 604 | id="openjdk-config"
|
---|
| 605 | xreflabel="Configuring OpenJDK">
|
---|
[49b50d4] | 606 | <title>Configuring OpenJDK</title>
|
---|
[2c25a56] | 607 |
|
---|
| 608 | <sect3>
|
---|
| 609 | <title>Configuration Information</title>
|
---|
| 610 |
|
---|
[ac38e9dc] | 611 | <para>Normally, the JAVA environment has been configured after installing
|
---|
| 612 | the binary version, and can be used with the just built package as well.
|
---|
| 613 | Review <xref linkend="ojdk-conf"/> in case you want to modify
|
---|
| 614 | something.</para>
|
---|
[ef5eb8e] | 615 |
|
---|
[ac38e9dc] | 616 | <para>To test if the man pages are correctly installed, issue
|
---|
| 617 | <command>source /etc/profile</command> and <command>man java</command> to
|
---|
| 618 | display the respective man page.</para>
|
---|
[300b4ee] | 619 |
|
---|
[2c25a56] | 620 | </sect3>
|
---|
| 621 |
|
---|
[ac38e9dc] | 622 | <sect3 id='ojdk-certs' xreflabel='JRE Certificate Authorithy Certificates'>
|
---|
| 623 | <title>Install or update the JRE Certificate Authority Certificates
|
---|
| 624 | (cacerts) file</title>
|
---|
[8b9034a] | 625 |
|
---|
[cdd1013] | 626 | <para>
|
---|
[ac38e9dc] | 627 | <application>OpenJDK</application> uses its own format for the
|
---|
| 628 | CA certificates. Those certificates are located in a file named <filename>
|
---|
| 629 | /opt/jdk/jre/lib/security/cacerts</filename>. That file may be generated
|
---|
| 630 | from the one installed using the instructions on the <xref
|
---|
| 631 | linkend="cacerts"/> page, using the following procedure.
|
---|
| 632 | First, generate the <command>mkcacerts</command> script
|
---|
[cdd1013] | 633 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 634 | </para>
|
---|
[8b9034a] | 635 |
|
---|
| 636 | <screen role="root"><userinput>cat > /opt/jdk/bin/mkcacerts << "EOF"
|
---|
| 637 | <literal>#!/bin/sh
|
---|
| 638 | # Simple script to extract x509 certificates and create a JRE cacerts file.
|
---|
| 639 |
|
---|
| 640 | function get_args()
|
---|
| 641 | {
|
---|
| 642 | if test -z "${1}" ; then
|
---|
| 643 | showhelp
|
---|
| 644 | exit 1
|
---|
| 645 | fi
|
---|
| 646 |
|
---|
| 647 | while test -n "${1}" ; do
|
---|
| 648 | case "${1}" in
|
---|
| 649 | -f | --cafile)
|
---|
| 650 | check_arg $1 $2
|
---|
| 651 | CAFILE="${2}"
|
---|
| 652 | shift 2
|
---|
| 653 | ;;
|
---|
| 654 | -d | --cadir)
|
---|
| 655 | check_arg $1 $2
|
---|
| 656 | CADIR="${2}"
|
---|
| 657 | shift 2
|
---|
| 658 | ;;
|
---|
| 659 | -o | --outfile)
|
---|
| 660 | check_arg $1 $2
|
---|
| 661 | OUTFILE="${2}"
|
---|
| 662 | shift 2
|
---|
| 663 | ;;
|
---|
| 664 | -k | --keytool)
|
---|
| 665 | check_arg $1 $2
|
---|
| 666 | KEYTOOL="${2}"
|
---|
| 667 | shift 2
|
---|
| 668 | ;;
|
---|
| 669 | -s | --openssl)
|
---|
| 670 | check_arg $1 $2
|
---|
| 671 | OPENSSL="${2}"
|
---|
| 672 | shift 2
|
---|
| 673 | ;;
|
---|
| 674 | -h | --help)
|
---|
| 675 | showhelp
|
---|
| 676 | exit 0
|
---|
| 677 | ;;
|
---|
| 678 | *)
|
---|
| 679 | showhelp
|
---|
| 680 | exit 1
|
---|
| 681 | ;;
|
---|
| 682 | esac
|
---|
| 683 | done
|
---|
| 684 | }
|
---|
| 685 |
|
---|
| 686 | function check_arg()
|
---|
| 687 | {
|
---|
| 688 | echo "${2}" | grep -v "^-" > /dev/null
|
---|
| 689 | if [ -z "$?" -o ! -n "$2" ]; then
|
---|
| 690 | echo "Error: $1 requires a valid argument."
|
---|
| 691 | exit 1
|
---|
| 692 | fi
|
---|
| 693 | }
|
---|
| 694 |
|
---|
| 695 | # The date binary is not reliable on 32bit systems for dates after 2038
|
---|
| 696 | function mydate()
|
---|
| 697 | {
|
---|
| 698 | local y=$( echo $1 | cut -d" " -f4 )
|
---|
| 699 | local M=$( echo $1 | cut -d" " -f1 )
|
---|
| 700 | local d=$( echo $1 | cut -d" " -f2 )
|
---|
| 701 | local m
|
---|
| 702 |
|
---|
| 703 | if [ ${d} -lt 10 ]; then d="0${d}"; fi
|
---|
| 704 |
|
---|
| 705 | case $M in
|
---|
| 706 | Jan) m="01";;
|
---|
| 707 | Feb) m="02";;
|
---|
| 708 | Mar) m="03";;
|
---|
| 709 | Apr) m="04";;
|
---|
| 710 | May) m="05";;
|
---|
| 711 | Jun) m="06";;
|
---|
| 712 | Jul) m="07";;
|
---|
| 713 | Aug) m="08";;
|
---|
| 714 | Sep) m="09";;
|
---|
| 715 | Oct) m="10";;
|
---|
| 716 | Nov) m="11";;
|
---|
| 717 | Dec) m="12";;
|
---|
| 718 | esac
|
---|
| 719 |
|
---|
| 720 | certdate="${y}${m}${d}"
|
---|
| 721 | }
|
---|
| 722 |
|
---|
| 723 | function showhelp()
|
---|
| 724 | {
|
---|
| 725 | echo "`basename ${0}` creates a valid cacerts file for use with IcedTea."
|
---|
| 726 | echo ""
|
---|
[ac38e9dc] | 727 | echo " -f --cafile The path to a file containing PEM"
|
---|
| 728 | echo " formated CA certificates. May not be"
|
---|
| 729 | echo " used with -d/--cadir."
|
---|
[8b9034a] | 730 | echo ""
|
---|
[ac38e9dc] | 731 | echo " -d --cadir The path to a directory of PEM formatted"
|
---|
| 732 | echo " CA certificates. May not be used with"
|
---|
| 733 | echo " -f/--cafile."
|
---|
[8b9034a] | 734 | echo ""
|
---|
[ac38e9dc] | 735 | echo " -o --outfile The path to the output file."
|
---|
[8b9034a] | 736 | echo ""
|
---|
[ac38e9dc] | 737 | echo " -k --keytool The path to the java keytool utility."
|
---|
| 738 | echo ""
|
---|
| 739 | echo " -s --openssl The path to the openssl utility."
|
---|
| 740 | echo ""
|
---|
| 741 | echo " -h --help Show this help message and exit."
|
---|
[8b9034a] | 742 | echo ""
|
---|
| 743 | echo ""
|
---|
| 744 | }
|
---|
| 745 |
|
---|
[a407a1c] | 746 | # Initialize empty variables so that the shell does not pollute the script
|
---|
[8b9034a] | 747 | CAFILE=""
|
---|
| 748 | CADIR=""
|
---|
| 749 | OUTFILE=""
|
---|
| 750 | OPENSSL=""
|
---|
| 751 | KEYTOOL=""
|
---|
| 752 | certdate=""
|
---|
| 753 | date=""
|
---|
| 754 | today=$( date +%Y%m%d )
|
---|
| 755 |
|
---|
| 756 | # Process command line arguments
|
---|
| 757 | get_args ${@}
|
---|
| 758 |
|
---|
| 759 | # Handle common errors
|
---|
| 760 | if test "${CAFILE}x" == "x" -a "${CADIR}x" == "x" ; then
|
---|
| 761 | echo "ERROR! You must provide an x509 certificate store!"
|
---|
| 762 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
| 763 | echo ""
|
---|
| 764 | exit 1
|
---|
| 765 | fi
|
---|
| 766 |
|
---|
| 767 | if test "${CAFILE}x" != "x" -a "${CADIR}x" != "x" ; then
|
---|
| 768 | echo "ERROR! You cannot provide two x509 certificate stores!"
|
---|
| 769 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
| 770 | echo ""
|
---|
| 771 | exit 1
|
---|
| 772 | fi
|
---|
| 773 |
|
---|
| 774 | if test "${KEYTOOL}x" == "x" ; then
|
---|
| 775 | echo "ERROR! You must provide a valid keytool program!"
|
---|
| 776 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
| 777 | echo ""
|
---|
| 778 | exit 1
|
---|
| 779 | fi
|
---|
| 780 |
|
---|
| 781 | if test "${OPENSSL}x" == "x" ; then
|
---|
| 782 | echo "ERROR! You must provide a valid path to openssl!"
|
---|
| 783 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
| 784 | echo ""
|
---|
| 785 | exit 1
|
---|
| 786 | fi
|
---|
| 787 |
|
---|
| 788 | if test "${OUTFILE}x" == "x" ; then
|
---|
| 789 | echo "ERROR! You must provide a valid output file!"
|
---|
| 790 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
| 791 | echo ""
|
---|
| 792 | exit 1
|
---|
| 793 | fi
|
---|
| 794 |
|
---|
| 795 | # Get on with the work
|
---|
| 796 |
|
---|
| 797 | # If using a CAFILE, split it into individual files in a temp directory
|
---|
| 798 | if test "${CAFILE}x" != "x" ; then
|
---|
| 799 | TEMPDIR=`mktemp -d`
|
---|
| 800 | CADIR="${TEMPDIR}"
|
---|
| 801 |
|
---|
| 802 | # Get a list of staring lines for each cert
|
---|
| 803 | CERTLIST=`grep -n "^-----BEGIN" "${CAFILE}" | cut -d ":" -f 1`
|
---|
| 804 |
|
---|
| 805 | # Get a list of ending lines for each cert
|
---|
| 806 | ENDCERTLIST=`grep -n "^-----END" "${CAFILE}" | cut -d ":" -f 1`
|
---|
| 807 |
|
---|
| 808 | # Start a loop
|
---|
| 809 | for certbegin in `echo "${CERTLIST}"` ; do
|
---|
| 810 | for certend in `echo "${ENDCERTLIST}"` ; do
|
---|
| 811 | if test "${certend}" -gt "${certbegin}"; then
|
---|
| 812 | break
|
---|
| 813 | fi
|
---|
| 814 | done
|
---|
| 815 | sed -n "${certbegin},${certend}p" "${CAFILE}" > "${CADIR}/${certbegin}.pem"
|
---|
| 816 | keyhash=`${OPENSSL} x509 -noout -in "${CADIR}/${certbegin}.pem" -hash`
|
---|
| 817 | echo "Generated PEM file with hash: ${keyhash}."
|
---|
| 818 | done
|
---|
| 819 | fi
|
---|
| 820 |
|
---|
| 821 | # Write the output file
|
---|
| 822 | for cert in `find "${CADIR}" -type f -name "*.pem" -o -name "*.crt"`
|
---|
| 823 | do
|
---|
| 824 |
|
---|
| 825 | # Make sure the certificate date is valid...
|
---|
| 826 | date=$( ${OPENSSL} x509 -enddate -in "${cert}" -noout | sed 's/^notAfter=//' )
|
---|
| 827 | mydate "${date}"
|
---|
| 828 | if test "${certdate}" -lt "${today}" ; then
|
---|
| 829 | echo "${cert} expired on ${certdate}! Skipping..."
|
---|
| 830 | unset date certdate
|
---|
| 831 | continue
|
---|
| 832 | fi
|
---|
| 833 | unset date certdate
|
---|
| 834 | ls "${cert}"
|
---|
| 835 | tempfile=`mktemp`
|
---|
| 836 | certbegin=`grep -n "^-----BEGIN" "${cert}" | cut -d ":" -f 1`
|
---|
| 837 | certend=`grep -n "^-----END" "${cert}" | cut -d ":" -f 1`
|
---|
| 838 | sed -n "${certbegin},${certend}p" "${cert}" > "${tempfile}"
|
---|
[ac38e9dc] | 839 | echo yes | env LC_ALL=C "${KEYTOOL}" -import \
|
---|
| 840 | -alias `basename "${cert}"` \
|
---|
| 841 | -keystore "${OUTFILE}" \
|
---|
| 842 | -storepass 'changeit' \
|
---|
| 843 | -file "${tempfile}"
|
---|
[8b9034a] | 844 | rm "${tempfile}"
|
---|
| 845 | done
|
---|
| 846 |
|
---|
| 847 | if test "${TEMPDIR}x" != "x" ; then
|
---|
| 848 | rm -rf "${TEMPDIR}"
|
---|
| 849 | fi
|
---|
| 850 | exit 0</literal>
|
---|
| 851 | EOF
|
---|
| 852 |
|
---|
[ac38e9dc] | 853 | chmod -v 755 /opt/jdk/bin/mkcacerts</userinput></screen>
|
---|
[cdd1013] | 854 |
|
---|
[8b9034a] | 855 | <note>
|
---|
| 856 | <para>
|
---|
| 857 | Doing a very large copy/paste directly to a terminal may result in a
|
---|
| 858 | corrupted file. Copying to an editor may overcome this issue.
|
---|
| 859 | </para>
|
---|
| 860 | </note>
|
---|
| 861 |
|
---|
[ac38e9dc] | 862 | <para>
|
---|
| 863 | Generate the <application>OpenJDK</application> <filename>cacerts</filename>
|
---|
| 864 | file as the <systemitem class="username">root</systemitem> user:
|
---|
| 865 | </para>
|
---|
[8b9034a] | 866 |
|
---|
[ac38e9dc] | 867 | <screen role="root"><userinput>if [ -f /opt/jdk/jre/lib/security/cacerts ]; then
|
---|
| 868 | mv /opt/jdk/jre/lib/security/cacerts \
|
---|
| 869 | /opt/jdk/jre/lib/security/cacerts.bak
|
---|
| 870 | fi &&
|
---|
| 871 | /opt/jdk/bin/mkcacerts \
|
---|
| 872 | -d "/etc/ssl/certs/" \
|
---|
| 873 | -k "/opt/jdk/bin/keytool" \
|
---|
| 874 | -s "/usr/bin/openssl" \
|
---|
| 875 | -o "/opt/jdk/jre/lib/security/cacerts"</userinput></screen>
|
---|
| 876 |
|
---|
| 877 | <para>Use the following commands to check if the
|
---|
| 878 | <filename>cacerts</filename> file has been successfully installed:</para>
|
---|
| 879 |
|
---|
| 880 | <screen role="root"><userinput>cd /opt/jdk
|
---|
| 881 | bin/keytool -list -keystore jre/lib/security/cacerts</userinput></screen>
|
---|
| 882 |
|
---|
| 883 | <para>At the prompt "Enter keystore password:", press the "Enter" key if
|
---|
| 884 | there is no keystore password defined. If the <filename>cacerts</filename>
|
---|
| 885 | file was installed correctly, you will see a list of the certificates with
|
---|
| 886 | related information for each one. If not, you need to reinstall
|
---|
| 887 | them.</para>
|
---|
[8b9034a] | 888 |
|
---|
| 889 | </sect3>
|
---|
| 890 |
|
---|
[2c25a56] | 891 | </sect2>
|
---|
| 892 |
|
---|
| 893 | <sect2 role="content">
|
---|
| 894 | <title>Contents</title>
|
---|
| 895 |
|
---|
| 896 | <segmentedlist>
|
---|
| 897 | <segtitle>Installed Programs</segtitle>
|
---|
| 898 | <segtitle>Installed Libraries</segtitle>
|
---|
| 899 | <segtitle>Installed Directory</segtitle>
|
---|
| 900 |
|
---|
| 901 | <seglistitem>
|
---|
[cdd1013] | 902 | <seg>appletviewer, extcheck, idlj, jar,
|
---|
[2c25a56] | 903 | jarsigner, java, javac, javadoc, javah, javap, java-rmi.cgi,
|
---|
[cdd1013] | 904 | jcmd, jconsole, jdb, jdeps, jhat, jinfo, jjs, jmap, jps,
|
---|
[486c27a] | 905 | jrunscript, jsadebugd, jstack, jstat, jstatd, keytool, mkcacerts,
|
---|
[2c25a56] | 906 | native2ascii, orbd, pack200, policytool, rmic, rmid, rmiregistry,
|
---|
| 907 | schemagen, serialver, servertool, tnameserv, unpack200,
|
---|
| 908 | wsgen, wsimport, and xjc</seg>
|
---|
[4d180035] | 909 | <seg>/opt/OpenJDK-&openjdk-version;/lib/*, and
|
---|
| 910 | /opt/OpenJDK-&openjdk-version;/jre/lib/*</seg>
|
---|
| 911 | <seg>/opt/OpenJDK-&openjdk-version;</seg>
|
---|
[2c25a56] | 912 | </seglistitem>
|
---|
| 913 | </segmentedlist>
|
---|
| 914 |
|
---|
| 915 | <variablelist>
|
---|
| 916 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 917 | <?dbfo list-presentation="list"?>
|
---|
| 918 | <?dbhtml list-presentation="table"?>
|
---|
| 919 |
|
---|
[49b50d4] | 920 | <varlistentry id="appletviewer">
|
---|
| 921 | <term><command>appletviewer</command></term>
|
---|
| 922 | <listitem>
|
---|
[cdd1013] | 923 | <para>allows to run applets outside of a web browser.</para>
|
---|
[49b50d4] | 924 | <indexterm zone="openjdk appletviewer">
|
---|
| 925 | <primary sortas="b-appletviewer">appletviewer</primary>
|
---|
| 926 | </indexterm>
|
---|
| 927 | </listitem>
|
---|
| 928 | </varlistentry>
|
---|
| 929 |
|
---|
| 930 | <varlistentry id="extcheck">
|
---|
[2c25a56] | 931 | <term><command>extcheck</command></term>
|
---|
| 932 | <listitem>
|
---|
| 933 | <para>checks a specified jar file for title and version conflicts
|
---|
[49b50d4] | 934 | with any extensions installed in the
|
---|
| 935 | <application>OpenJDK</application> software.</para>
|
---|
| 936 | <indexterm zone="openjdk extcheck">
|
---|
[2c25a56] | 937 | <primary sortas="b-extcheck">extcheck</primary>
|
---|
| 938 | </indexterm>
|
---|
| 939 | </listitem>
|
---|
| 940 | </varlistentry>
|
---|
| 941 |
|
---|
[49b50d4] | 942 | <varlistentry id="idlj">
|
---|
[2c25a56] | 943 | <term><command>idlj</command></term>
|
---|
| 944 | <listitem>
|
---|
| 945 | <para>generates Java bindings from a given IDL file.</para>
|
---|
[49b50d4] | 946 | <indexterm zone="openjdk idlj">
|
---|
[2c25a56] | 947 | <primary sortas="b-idlj">idlj</primary>
|
---|
| 948 | </indexterm>
|
---|
| 949 | </listitem>
|
---|
| 950 | </varlistentry>
|
---|
| 951 |
|
---|
[49b50d4] | 952 | <varlistentry id="jar">
|
---|
[2c25a56] | 953 | <term><command>jar</command></term>
|
---|
| 954 | <listitem>
|
---|
| 955 | <para>combines multiple files into a single jar archive.</para>
|
---|
[49b50d4] | 956 | <indexterm zone="openjdk jar">
|
---|
[2c25a56] | 957 | <primary sortas="b-jar">jar</primary>
|
---|
| 958 | </indexterm>
|
---|
| 959 | </listitem>
|
---|
| 960 | </varlistentry>
|
---|
| 961 |
|
---|
[49b50d4] | 962 | <varlistentry id="jarsigner">
|
---|
[2c25a56] | 963 | <term><command>jarsigner</command></term>
|
---|
| 964 | <listitem>
|
---|
| 965 | <para>signs jar files and verifies the signatures and integrity
|
---|
| 966 | of a signed jar file.</para>
|
---|
[49b50d4] | 967 | <indexterm zone="openjdk jarsigner">
|
---|
[2c25a56] | 968 | <primary sortas="b-jarsigner">jarsigner</primary>
|
---|
| 969 | </indexterm>
|
---|
| 970 | </listitem>
|
---|
| 971 | </varlistentry>
|
---|
| 972 |
|
---|
[784a1a7f] | 973 | <varlistentry id="java-prog">
|
---|
[2c25a56] | 974 | <term><command>java</command></term>
|
---|
| 975 | <listitem>
|
---|
| 976 | <para>launches a Java application by starting a Java runtime
|
---|
| 977 | environment, loading a specified class and invoking its main
|
---|
| 978 | method.</para>
|
---|
[784a1a7f] | 979 | <indexterm zone="openjdk java-prog">
|
---|
| 980 | <primary sortas="b-java-prog">java</primary>
|
---|
[2c25a56] | 981 | </indexterm>
|
---|
| 982 | </listitem>
|
---|
| 983 | </varlistentry>
|
---|
| 984 |
|
---|
[49b50d4] | 985 | <varlistentry id="javac">
|
---|
[2c25a56] | 986 | <term><command>javac</command></term>
|
---|
| 987 | <listitem>
|
---|
| 988 | <para>reads class and interface definitions, written in the
|
---|
| 989 | Java programming language, and compiles them into bytecode
|
---|
| 990 | class files.</para>
|
---|
[49b50d4] | 991 | <indexterm zone="openjdk javac">
|
---|
[2c25a56] | 992 | <primary sortas="b-javac">javac</primary>
|
---|
| 993 | </indexterm>
|
---|
| 994 | </listitem>
|
---|
| 995 | </varlistentry>
|
---|
| 996 |
|
---|
[49b50d4] | 997 | <varlistentry id="javadoc">
|
---|
[2c25a56] | 998 | <term><command>javadoc</command></term>
|
---|
| 999 | <listitem>
|
---|
| 1000 | <para>parses the declarations and documentation comments in a
|
---|
| 1001 | set of Java source files and produces a corresponding set of
|
---|
[cdd1013] | 1002 | HTML pages describing the classes, interfaces, constructors,
|
---|
[2c25a56] | 1003 | methods, and fields.</para>
|
---|
[49b50d4] | 1004 | <indexterm zone="openjdk javadoc">
|
---|
[2c25a56] | 1005 | <primary sortas="b-javadoc">javadoc</primary>
|
---|
| 1006 | </indexterm>
|
---|
| 1007 | </listitem>
|
---|
| 1008 | </varlistentry>
|
---|
| 1009 |
|
---|
[49b50d4] | 1010 | <varlistentry id="javah">
|
---|
[2c25a56] | 1011 | <term><command>javah</command></term>
|
---|
| 1012 | <listitem>
|
---|
| 1013 | <para>generates C header and source files
|
---|
| 1014 | that are needed to implement native methods.</para>
|
---|
[49b50d4] | 1015 | <indexterm zone="openjdk javah">
|
---|
[2c25a56] | 1016 | <primary sortas="b-javah">javah</primary>
|
---|
| 1017 | </indexterm>
|
---|
| 1018 | </listitem>
|
---|
| 1019 | </varlistentry>
|
---|
| 1020 |
|
---|
[49b50d4] | 1021 | <varlistentry id="javap">
|
---|
[2c25a56] | 1022 | <term><command>javap</command></term>
|
---|
| 1023 | <listitem>
|
---|
| 1024 | <para>disassembles a Java class file.</para>
|
---|
[49b50d4] | 1025 | <indexterm zone="openjdk javap">
|
---|
[2c25a56] | 1026 | <primary sortas="b-javap">javap</primary>
|
---|
| 1027 | </indexterm>
|
---|
| 1028 | </listitem>
|
---|
| 1029 | </varlistentry>
|
---|
| 1030 |
|
---|
[49b50d4] | 1031 | <varlistentry id="java-rmi.cgi">
|
---|
[2c25a56] | 1032 | <term><command>java-rmi.cgi</command></term>
|
---|
| 1033 | <listitem>
|
---|
| 1034 | <para>is the Java RMI client.</para>
|
---|
[49b50d4] | 1035 | <indexterm zone="openjdk java-rmi.cgi">
|
---|
[2c25a56] | 1036 | <primary sortas="b-java-rmi.cgi">java-rmi.cgi</primary>
|
---|
| 1037 | </indexterm>
|
---|
| 1038 | </listitem>
|
---|
| 1039 | </varlistentry>
|
---|
| 1040 |
|
---|
[49b50d4] | 1041 | <varlistentry id="jcmd">
|
---|
| 1042 | <term><command>jcmd</command></term>
|
---|
| 1043 | <listitem>
|
---|
| 1044 | <para>is a utility to send diagnostic command requests to a running
|
---|
| 1045 | Java Virtual Machine.</para>
|
---|
| 1046 | <indexterm zone="openjdk jcmd">
|
---|
| 1047 | <primary sortas="b-jcmd">jcmd</primary>
|
---|
| 1048 | </indexterm>
|
---|
| 1049 | </listitem>
|
---|
| 1050 | </varlistentry>
|
---|
| 1051 |
|
---|
| 1052 | <varlistentry id="jconsole">
|
---|
[2c25a56] | 1053 | <term><command>jconsole</command></term>
|
---|
| 1054 | <listitem>
|
---|
| 1055 | <para>is a graphical console tool to monitor and manage both
|
---|
| 1056 | local and remote Java applications and virtual machines.</para>
|
---|
[49b50d4] | 1057 | <indexterm zone="openjdk jconsole">
|
---|
[2c25a56] | 1058 | <primary sortas="b-jconsole">jconsole</primary>
|
---|
| 1059 | </indexterm>
|
---|
| 1060 | </listitem>
|
---|
| 1061 | </varlistentry>
|
---|
| 1062 |
|
---|
[49b50d4] | 1063 | <varlistentry id="jdb">
|
---|
[2c25a56] | 1064 | <term><command>jdb</command></term>
|
---|
| 1065 | <listitem>
|
---|
| 1066 | <para>is a simple command-line debugger for Java classes.</para>
|
---|
[49b50d4] | 1067 | <indexterm zone="openjdk jdb">
|
---|
[2c25a56] | 1068 | <primary sortas="b-jdb">jdb</primary>
|
---|
| 1069 | </indexterm>
|
---|
| 1070 | </listitem>
|
---|
| 1071 | </varlistentry>
|
---|
| 1072 |
|
---|
[cdd1013] | 1073 | <varlistentry id="jdeps">
|
---|
| 1074 | <term><command>jdeps</command></term>
|
---|
| 1075 | <listitem>
|
---|
| 1076 | <para>shows the package-level or class-level dependencies of
|
---|
| 1077 | Java class files.</para>
|
---|
| 1078 | <indexterm zone="openjdk jdeps">
|
---|
| 1079 | <primary sortas="b-jdeps">jdeps</primary>
|
---|
| 1080 | </indexterm>
|
---|
| 1081 | </listitem>
|
---|
| 1082 | </varlistentry>
|
---|
| 1083 |
|
---|
[49b50d4] | 1084 | <varlistentry id="jhat">
|
---|
[2c25a56] | 1085 | <term><command>jhat</command></term>
|
---|
| 1086 | <listitem>
|
---|
[cdd1013] | 1087 | <para>parses a java heap dump file and allows viewing it
|
---|
[4d180035] | 1088 | in a web browser.</para>
|
---|
[49b50d4] | 1089 | <indexterm zone="openjdk jhat">
|
---|
[2c25a56] | 1090 | <primary sortas="b-jhat">jhat</primary>
|
---|
| 1091 | </indexterm>
|
---|
| 1092 | </listitem>
|
---|
| 1093 | </varlistentry>
|
---|
| 1094 |
|
---|
[49b50d4] | 1095 | <varlistentry id="jinfo">
|
---|
[2c25a56] | 1096 | <term><command>jinfo</command></term>
|
---|
| 1097 | <listitem>
|
---|
| 1098 | <para>prints Java configuration information for a given Java
|
---|
| 1099 | process, core file, or a remote debug server.</para>
|
---|
[49b50d4] | 1100 | <indexterm zone="openjdk jinfo">
|
---|
[2c25a56] | 1101 | <primary sortas="b-jinfo">jinfo</primary>
|
---|
| 1102 | </indexterm>
|
---|
[cdd1013] | 1103 | </listitem>
|
---|
| 1104 | </varlistentry>
|
---|
| 1105 |
|
---|
| 1106 | <varlistentry id="jjs">
|
---|
| 1107 | <term><command>jjs</command></term>
|
---|
| 1108 | <listitem>
|
---|
| 1109 | <para>is a command-line tool used to invoke the Nashorn engine. It
|
---|
| 1110 | can be used to interpret one or several script files, or to run
|
---|
| 1111 | an interactive shell.</para>
|
---|
| 1112 | <indexterm zone="openjdk jjs">
|
---|
| 1113 | <primary sortas="b-jjs">jjs</primary>
|
---|
| 1114 | </indexterm>
|
---|
[2c25a56] | 1115 | </listitem>
|
---|
| 1116 | </varlistentry>
|
---|
| 1117 |
|
---|
[49b50d4] | 1118 | <varlistentry id="jmap">
|
---|
[2c25a56] | 1119 | <term><command>jmap</command></term>
|
---|
| 1120 | <listitem>
|
---|
| 1121 | <para>prints shared object memory maps or heap memory details
|
---|
| 1122 | of a given process, core file, or a remote debug server.</para>
|
---|
[49b50d4] | 1123 | <indexterm zone="openjdk jmap">
|
---|
[2c25a56] | 1124 | <primary sortas="b-jmap">jmap</primary>
|
---|
| 1125 | </indexterm>
|
---|
| 1126 | </listitem>
|
---|
| 1127 | </varlistentry>
|
---|
| 1128 |
|
---|
[49b50d4] | 1129 | <varlistentry id="jps">
|
---|
[2c25a56] | 1130 | <term><command>jps</command></term>
|
---|
| 1131 | <listitem>
|
---|
| 1132 | <para>lists the instrumented JVMs on the target system.</para>
|
---|
[49b50d4] | 1133 | <indexterm zone="openjdk jps">
|
---|
[2c25a56] | 1134 | <primary sortas="b-jps">jps</primary>
|
---|
| 1135 | </indexterm>
|
---|
| 1136 | </listitem>
|
---|
| 1137 | </varlistentry>
|
---|
| 1138 |
|
---|
[49b50d4] | 1139 | <varlistentry id="jrunscript">
|
---|
[2c25a56] | 1140 | <term><command>jrunscript</command></term>
|
---|
| 1141 | <listitem>
|
---|
| 1142 | <para>is a command line script shell.</para>
|
---|
[49b50d4] | 1143 | <indexterm zone="openjdk jrunscript">
|
---|
[2c25a56] | 1144 | <primary sortas="b-jrunscript">jrunscript</primary>
|
---|
| 1145 | </indexterm>
|
---|
| 1146 | </listitem>
|
---|
| 1147 | </varlistentry>
|
---|
| 1148 |
|
---|
[49b50d4] | 1149 | <varlistentry id="jsadebugd">
|
---|
[2c25a56] | 1150 | <term><command>jsadebugd</command></term>
|
---|
| 1151 | <listitem>
|
---|
| 1152 | <para>attaches to a Java process or core file and acts as a
|
---|
| 1153 | debug server.</para>
|
---|
[49b50d4] | 1154 | <indexterm zone="openjdk jsadebugd">
|
---|
[2c25a56] | 1155 | <primary sortas="b-jsadebugd">jsadebugd</primary>
|
---|
| 1156 | </indexterm>
|
---|
| 1157 | </listitem>
|
---|
| 1158 | </varlistentry>
|
---|
| 1159 |
|
---|
[49b50d4] | 1160 | <varlistentry id="jstack">
|
---|
[2c25a56] | 1161 | <term><command>jstack</command></term>
|
---|
| 1162 | <listitem>
|
---|
| 1163 | <para>prints Java stack traces of Java threads for a given
|
---|
| 1164 | Java process, core file, or a remote debug server.</para>
|
---|
[49b50d4] | 1165 | <indexterm zone="openjdk jstack">
|
---|
[2c25a56] | 1166 | <primary sortas="b-jstack">jstack</primary>
|
---|
| 1167 | </indexterm>
|
---|
| 1168 | </listitem>
|
---|
| 1169 | </varlistentry>
|
---|
| 1170 |
|
---|
[49b50d4] | 1171 | <varlistentry id="jstat">
|
---|
[2c25a56] | 1172 | <term><command>jstat</command></term>
|
---|
| 1173 | <listitem>
|
---|
| 1174 | <para>displays performance statistics for an instrumented JVM.</para>
|
---|
[49b50d4] | 1175 | <indexterm zone="openjdk jstat">
|
---|
[2c25a56] | 1176 | <primary sortas="b-jstat">jstat</primary>
|
---|
| 1177 | </indexterm>
|
---|
| 1178 | </listitem>
|
---|
| 1179 | </varlistentry>
|
---|
| 1180 |
|
---|
[49b50d4] | 1181 | <varlistentry id="jstatd">
|
---|
[2c25a56] | 1182 | <term><command>jstatd</command></term>
|
---|
| 1183 | <listitem>
|
---|
| 1184 | <para>is an RMI server application that monitors for the creation
|
---|
| 1185 | and termination of instrumented JVMs.</para>
|
---|
[49b50d4] | 1186 | <indexterm zone="openjdk jstatd">
|
---|
[2c25a56] | 1187 | <primary sortas="b-jstatd">jstatd</primary>
|
---|
| 1188 | </indexterm>
|
---|
| 1189 | </listitem>
|
---|
| 1190 | </varlistentry>
|
---|
| 1191 |
|
---|
[49b50d4] | 1192 | <varlistentry id="keytool">
|
---|
[2c25a56] | 1193 | <term><command>keytool</command></term>
|
---|
| 1194 | <listitem>
|
---|
| 1195 | <para>is a key and certificate management utility.</para>
|
---|
[49b50d4] | 1196 | <indexterm zone="openjdk keytool">
|
---|
[2c25a56] | 1197 | <primary sortas="b-keytool">keytool</primary>
|
---|
| 1198 | </indexterm>
|
---|
| 1199 | </listitem>
|
---|
| 1200 | </varlistentry>
|
---|
| 1201 |
|
---|
[486c27a] | 1202 | <varlistentry id="mkcacerts">
|
---|
| 1203 | <term><command>mkcacerts</command></term>
|
---|
| 1204 | <listitem>
|
---|
| 1205 | <para> is a simple script to extract x509 certificates and create
|
---|
| 1206 | a JRE cacerts file using <command>keytool</command>.</para>
|
---|
| 1207 | <indexterm zone="openjdk mkcacerts">
|
---|
| 1208 | <primary sortas="b-mkcacerts">mkcacerts</primary>
|
---|
| 1209 | </indexterm>
|
---|
| 1210 | </listitem>
|
---|
| 1211 | </varlistentry>
|
---|
| 1212 |
|
---|
[49b50d4] | 1213 | <varlistentry id="native2ascii">
|
---|
[2c25a56] | 1214 | <term><command>native2ascii</command></term>
|
---|
| 1215 | <listitem>
|
---|
| 1216 | <para> converts files that contain non-supported character encoding
|
---|
| 1217 | into files containing Latin-1 or Unicode-encoded characters.</para>
|
---|
[49b50d4] | 1218 | <indexterm zone="openjdk native2ascii">
|
---|
[2c25a56] | 1219 | <primary sortas="b-native2ascii">native2ascii</primary>
|
---|
| 1220 | </indexterm>
|
---|
| 1221 | </listitem>
|
---|
| 1222 | </varlistentry>
|
---|
| 1223 |
|
---|
[49b50d4] | 1224 | <varlistentry id="orbd">
|
---|
[2c25a56] | 1225 | <term><command>orbd</command></term>
|
---|
| 1226 | <listitem>
|
---|
| 1227 | <para>is used to enable clients to transparently locate and invoke
|
---|
| 1228 | persistent objects on servers in the CORBA environment.</para>
|
---|
[49b50d4] | 1229 | <indexterm zone="openjdk orbd">
|
---|
[2c25a56] | 1230 | <primary sortas="b-orbd">orbd</primary>
|
---|
| 1231 | </indexterm>
|
---|
| 1232 | </listitem>
|
---|
| 1233 | </varlistentry>
|
---|
| 1234 |
|
---|
[49b50d4] | 1235 | <varlistentry id="pack200">
|
---|
[2c25a56] | 1236 | <term><command>pack200</command></term>
|
---|
| 1237 | <listitem>
|
---|
| 1238 | <para>is a Java application that transforms a jar file into a
|
---|
| 1239 | compressed pack200 file using the Java gzip compressor.</para>
|
---|
[49b50d4] | 1240 | <indexterm zone="openjdk pack200">
|
---|
[2c25a56] | 1241 | <primary sortas="b-pack200">pack200</primary>
|
---|
| 1242 | </indexterm>
|
---|
| 1243 | </listitem>
|
---|
| 1244 | </varlistentry>
|
---|
| 1245 |
|
---|
[49b50d4] | 1246 | <varlistentry id="policytool">
|
---|
[2c25a56] | 1247 | <term><command>policytool</command></term>
|
---|
| 1248 | <listitem>
|
---|
| 1249 | <para>creates and manages a policy file graphically.</para>
|
---|
[49b50d4] | 1250 | <indexterm zone="openjdk policytool">
|
---|
[2c25a56] | 1251 | <primary sortas="b-policytool">policytool</primary>
|
---|
| 1252 | </indexterm>
|
---|
| 1253 | </listitem>
|
---|
| 1254 | </varlistentry>
|
---|
| 1255 |
|
---|
[49b50d4] | 1256 | <varlistentry id="rmic">
|
---|
[2c25a56] | 1257 | <term><command>rmic</command></term>
|
---|
| 1258 | <listitem>
|
---|
| 1259 | <para>generates stub and skeleton class files for remote objects
|
---|
| 1260 | from the names of compiled Java classes that contain remote
|
---|
| 1261 | object implementations.</para>
|
---|
[49b50d4] | 1262 | <indexterm zone="openjdk rmic">
|
---|
[2c25a56] | 1263 | <primary sortas="b-rmic">rmic</primary>
|
---|
| 1264 | </indexterm>
|
---|
| 1265 | </listitem>
|
---|
| 1266 | </varlistentry>
|
---|
| 1267 |
|
---|
[49b50d4] | 1268 | <varlistentry id="rmid">
|
---|
[2c25a56] | 1269 | <term><command>rmid</command></term>
|
---|
| 1270 | <listitem>
|
---|
| 1271 | <para>starts the activation system daemon.</para>
|
---|
[49b50d4] | 1272 | <indexterm zone="openjdk rmid">
|
---|
[2c25a56] | 1273 | <primary sortas="b-rmid">rmid</primary>
|
---|
| 1274 | </indexterm>
|
---|
| 1275 | </listitem>
|
---|
| 1276 | </varlistentry>
|
---|
| 1277 |
|
---|
[49b50d4] | 1278 | <varlistentry id="rmiregistry">
|
---|
[2c25a56] | 1279 | <term><command>rmiregistry</command></term>
|
---|
| 1280 | <listitem>
|
---|
| 1281 | <para>creates and starts a remote object registry on the specified
|
---|
| 1282 | port on the current host.</para>
|
---|
[49b50d4] | 1283 | <indexterm zone="openjdk rmiregistry">
|
---|
[2c25a56] | 1284 | <primary sortas="b-rmiregistry">rmiregistry</primary>
|
---|
| 1285 | </indexterm>
|
---|
| 1286 | </listitem>
|
---|
| 1287 | </varlistentry>
|
---|
| 1288 |
|
---|
[49b50d4] | 1289 | <varlistentry id="schemagen">
|
---|
[2c25a56] | 1290 | <term><command>schemagen</command></term>
|
---|
| 1291 | <listitem>
|
---|
| 1292 | <para>is a Java XML binding schema generator.</para>
|
---|
[49b50d4] | 1293 | <indexterm zone="openjdk schemagen">
|
---|
[2c25a56] | 1294 | <primary sortas="b-schemagen">schemagen</primary>
|
---|
| 1295 | </indexterm>
|
---|
| 1296 | </listitem>
|
---|
| 1297 | </varlistentry>
|
---|
| 1298 |
|
---|
[49b50d4] | 1299 | <varlistentry id="serialver">
|
---|
[2c25a56] | 1300 | <term><command>serialver</command></term>
|
---|
| 1301 | <listitem>
|
---|
| 1302 | <para>returns the serialVersionUID for one or more classes in a
|
---|
| 1303 | form suitable for copying into an evolving class.</para>
|
---|
[49b50d4] | 1304 | <indexterm zone="openjdk serialver">
|
---|
[2c25a56] | 1305 | <primary sortas="b-serialver">serialver</primary>
|
---|
| 1306 | </indexterm>
|
---|
| 1307 | </listitem>
|
---|
| 1308 | </varlistentry>
|
---|
| 1309 |
|
---|
[49b50d4] | 1310 | <varlistentry id="servertool">
|
---|
[2c25a56] | 1311 | <term><command>servertool</command></term>
|
---|
| 1312 | <listitem>
|
---|
| 1313 | <para>provides an ease-of-use interface for application programmers
|
---|
| 1314 | to register, unregister, startup and shutdown a server.</para>
|
---|
[49b50d4] | 1315 | <indexterm zone="openjdk servertool">
|
---|
[2c25a56] | 1316 | <primary sortas="b-servertool">servertool</primary>
|
---|
| 1317 | </indexterm>
|
---|
| 1318 | </listitem>
|
---|
| 1319 | </varlistentry>
|
---|
| 1320 |
|
---|
[49b50d4] | 1321 | <varlistentry id="tnameserv">
|
---|
[2c25a56] | 1322 | <term><command>tnameserv</command></term>
|
---|
| 1323 | <listitem>
|
---|
| 1324 | <para>starts the Java IDL name server.</para>
|
---|
[49b50d4] | 1325 | <indexterm zone="openjdk tnameserv">
|
---|
[2c25a56] | 1326 | <primary sortas="b-tnameserv">tnameserv</primary>
|
---|
| 1327 | </indexterm>
|
---|
| 1328 | </listitem>
|
---|
| 1329 | </varlistentry>
|
---|
| 1330 |
|
---|
[49b50d4] | 1331 | <varlistentry id="unpack200">
|
---|
[2c25a56] | 1332 | <term><command>unpack200</command></term>
|
---|
| 1333 | <listitem>
|
---|
| 1334 | <para>is a native implementation that transforms a packed file
|
---|
| 1335 | produced by <application>pack200</application> into a jar
|
---|
| 1336 | file.</para>
|
---|
[49b50d4] | 1337 | <indexterm zone="openjdk unpack200">
|
---|
[2c25a56] | 1338 | <primary sortas="b-unpack200">unpack200</primary>
|
---|
| 1339 | </indexterm>
|
---|
| 1340 | </listitem>
|
---|
| 1341 | </varlistentry>
|
---|
| 1342 |
|
---|
[49b50d4] | 1343 | <varlistentry id="wsgen">
|
---|
[2c25a56] | 1344 | <term><command>wsgen</command></term>
|
---|
| 1345 | <listitem>
|
---|
| 1346 | <para>generates JAX-WS portable artifacts used in JAX-WS
|
---|
| 1347 | web services.</para>
|
---|
[49b50d4] | 1348 | <indexterm zone="openjdk wsgen">
|
---|
[2c25a56] | 1349 | <primary sortas="b-wsgen">wsgen</primary>
|
---|
| 1350 | </indexterm>
|
---|
| 1351 | </listitem>
|
---|
| 1352 | </varlistentry>
|
---|
| 1353 |
|
---|
[49b50d4] | 1354 | <varlistentry id="wsimport">
|
---|
[2c25a56] | 1355 | <term><command>wsimport</command></term>
|
---|
| 1356 | <listitem>
|
---|
| 1357 | <para>generates JAX-WS portable artifacts.</para>
|
---|
[49b50d4] | 1358 | <indexterm zone="openjdk wsimport">
|
---|
[2c25a56] | 1359 | <primary sortas="b-wsimport">wsimport</primary>
|
---|
| 1360 | </indexterm>
|
---|
| 1361 | </listitem>
|
---|
| 1362 | </varlistentry>
|
---|
| 1363 |
|
---|
[49b50d4] | 1364 | <varlistentry id="xjc">
|
---|
[2c25a56] | 1365 | <term><command>xjc</command></term>
|
---|
| 1366 | <listitem>
|
---|
| 1367 | <para>is a Java XML binding compiler.</para>
|
---|
[49b50d4] | 1368 | <indexterm zone="openjdk xjc">
|
---|
[2c25a56] | 1369 | <primary sortas="b-xjc">xjc</primary>
|
---|
| 1370 | </indexterm>
|
---|
| 1371 | </listitem>
|
---|
| 1372 | </varlistentry>
|
---|
| 1373 |
|
---|
| 1374 | </variablelist>
|
---|
| 1375 |
|
---|
| 1376 | </sect2>
|
---|
| 1377 |
|
---|
| 1378 | </sect1>
|
---|