[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 |
|
---|
[1c46121] | 7 | <!ENTITY anduin-download "http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK-&openjdk-version;-&icedtea-version;">
|
---|
[36ecbda3] | 8 | <!ENTITY icedtea-download "http://icedtea.classpath.org/download/source/icedtea-&icedtea-version;.tar.xz">
|
---|
[49b50d4] | 9 |
|
---|
[1c46121] | 10 | <!ENTITY icedtea-md5sum "6c57b54ab8b7916425d567dbb478ad73">
|
---|
[8824a1e] | 11 | <!ENTITY icedtea-size "1.9 MB">
|
---|
[49b50d4] | 12 |
|
---|
[8824a1e] | 13 | <!ENTITY corba-download "&anduin-download;/corba.tar.bz2">
|
---|
[1c46121] | 14 | <!ENTITY corba-md5sum "86cf23060d726aa55d77bffedb8b6a99">
|
---|
[8824a1e] | 15 | <!ENTITY corba-size "1.0 MB">
|
---|
[49b50d4] | 16 |
|
---|
[8824a1e] | 17 | <!ENTITY hotspot-download "&anduin-download;/hotspot.tar.bz2">
|
---|
[1c46121] | 18 | <!ENTITY hotspot-md5sum "026bb8ca9e764fe53b8a19f1ddad1479">
|
---|
[8824a1e] | 19 | <!ENTITY hotspot-size "7.4 MB">
|
---|
[49b50d4] | 20 |
|
---|
[8824a1e] | 21 | <!ENTITY jaxp-download "&anduin-download;/jaxp.tar.bz2">
|
---|
[1c46121] | 22 | <!ENTITY jaxp-md5sum "cbd3226b916fe9e6c7e9f1cd15e54d55">
|
---|
[8824a1e] | 23 | <!ENTITY jaxp-size "2.6 MB">
|
---|
[49b50d4] | 24 |
|
---|
[8824a1e] | 25 | <!ENTITY jaxws-download "&anduin-download;/jaxws.tar.bz2">
|
---|
[1c46121] | 26 | <!ENTITY jaxws-md5sum "84b921fc3e328eea770dc1a092e240dc">
|
---|
[8824a1e] | 27 | <!ENTITY jaxws-size "1.9 MB">
|
---|
[49b50d4] | 28 |
|
---|
[8824a1e] | 29 | <!ENTITY jdk-download "&anduin-download;/jdk.tar.bz2">
|
---|
[1c46121] | 30 | <!ENTITY jdk-md5sum "b5a4703501bf4a6adeaa614e6d2345b3">
|
---|
[8824a1e] | 31 | <!ENTITY jdk-size "30.2 MB">
|
---|
[49b50d4] | 32 |
|
---|
[8824a1e] | 33 | <!ENTITY langtools-download "&anduin-download;/langtools.tar.bz2">
|
---|
[1c46121] | 34 | <!ENTITY langtools-md5sum "e104e60e44aba0a8bc60c48df1d859b9">
|
---|
[8824a1e] | 35 | <!ENTITY langtools-size "1.6 MB">
|
---|
[49b50d4] | 36 |
|
---|
[8824a1e] | 37 | <!ENTITY openjdk-download "&anduin-download;/openjdk.tar.bz2">
|
---|
[1c46121] | 38 | <!ENTITY openjdk-md5sum "f48d6f8b748f869a5624d2c44998d54c">
|
---|
[8824a1e] | 39 | <!ENTITY openjdk-size "122 KB">
|
---|
[49b50d4] | 40 |
|
---|
[6f01fd2e] | 41 | <!ENTITY rhino-download "https://github.com/downloads/mozilla/rhino/rhino1_7R4.zip">
|
---|
| 42 | <!ENTITY rhino-md5sum "ad67a3dff135e3a70f0c3528a2d6edf2">
|
---|
| 43 | <!ENTITY rhino-size "6.2 MB">
|
---|
[49b50d4] | 44 |
|
---|
[b1129a10] | 45 | <!ENTITY icedtea-web-download "http://icedtea.classpath.org/download/source/icedtea-web-&icedtea-web-version;.tar.gz">
|
---|
| 46 |
|
---|
[8824a1e] | 47 | <!ENTITY openjdk-buildsize "8-10 GB">
|
---|
[1c46121] | 48 | <!ENTITY openjdk-time "28-36 SBU (an additional 100 SBU for testsuite)">
|
---|
[2c25a56] | 49 | ]>
|
---|
| 50 |
|
---|
[b1129a10] | 51 | <sect1 id="openjdk"
|
---|
| 52 | xreflabel="OpenJDK-&openjdk-version;/IcedTea-&icedtea-version;">
|
---|
[49b50d4] | 53 | <?dbhtml filename="openjdk.html" ?>
|
---|
[2c25a56] | 54 |
|
---|
| 55 | <sect1info>
|
---|
| 56 | <othername>$LastChangedBy$</othername>
|
---|
| 57 | <date>$Date$</date>
|
---|
| 58 | </sect1info>
|
---|
| 59 |
|
---|
[92b1341] | 60 | <title>OpenJDK-&openjdk-version;/IcedTea-&icedtea-version;</title>
|
---|
[2c25a56] | 61 |
|
---|
[49b50d4] | 62 | <indexterm zone="openjdk">
|
---|
| 63 | <primary sortas="a-OpenJDK">OpenJDK</primary>
|
---|
[2c25a56] | 64 | </indexterm>
|
---|
| 65 |
|
---|
| 66 | <sect2 role="package">
|
---|
[49b50d4] | 67 | <title>Introduction to OpenJDK and IcedTea</title>
|
---|
[2c25a56] | 68 |
|
---|
[49b50d4] | 69 | <para><application>IcedTea</application> provides a build harness for the
|
---|
[f533b0d] | 70 | <application>OpenJDK</application> package, Oracle's open-sourced
|
---|
[2c25a56] | 71 | <application>Java</application> development environment. In order to
|
---|
| 72 | provide a completely free runtime environment, similar to Oracle's closed
|
---|
[49b50d4] | 73 | distribution, the <application>IcedTea</application> build harness also
|
---|
| 74 | provides free, and arguably better versions of parts of the JDK which
|
---|
| 75 | have not been open-sourced to date. <application>OpenJDK</application> is
|
---|
[2c25a56] | 76 | useful for developing <application>Java</application> programs and provides
|
---|
| 77 | a complete runtime environment to run <application>Java</application>
|
---|
| 78 | programs.</para>
|
---|
| 79 |
|
---|
[d08095a] | 80 | &lfs76_checked;
|
---|
[efd03f7] | 81 |
|
---|
[d3d92c8] | 82 | <note><para>The browser plugin and webstart implementation have been split
|
---|
[49b50d4] | 83 | off into a separate project. To provide a complete implementation, you will
|
---|
| 84 | need to later install <xref linkend="icedtea-web"/>.</para></note>
|
---|
[d3d92c8] | 85 |
|
---|
[49b50d4] | 86 | <para>OpenJDK is GPL'd code, however, it should be explained that there has
|
---|
| 87 | been a special exception made for non-free projects to use these classes in
|
---|
| 88 | their proprietary products. In similar fashion to the LGPL, which
|
---|
[2c25a56] | 89 | allows non-free programs to link to libraries provided by free software,
|
---|
| 90 | the <ulink url="http://openjdk.java.net/legal/gplv2+ce.html">GNU
|
---|
| 91 | General Public License, version 2, with the Classpath Exception</ulink>
|
---|
| 92 | allows third party programs to use classes provided by free software
|
---|
[b1129a10] | 93 | without the requirement that the third party software also be free. As with
|
---|
[4d180035] | 94 | the LGPL, any modifications made to the free software portions of a
|
---|
| 95 | third party application, must also be made freely available.</para>
|
---|
[2c25a56] | 96 |
|
---|
| 97 | <note>
|
---|
[49b50d4] | 98 | <para>The IcedTea build environment includes a very thorough, open source
|
---|
[2c25a56] | 99 | test suite titled <application>JTreg</application>.
|
---|
| 100 | <application>JTreg</application> is intended to test the just built JDK
|
---|
| 101 | for reasonable compatibility with the closed Oracle JDK. However, in
|
---|
| 102 | order for an independent implementation to claim compatibility, including
|
---|
| 103 | the Oracle sponsored <application>OpenJDK</application> project, it must
|
---|
| 104 | pass a closed <application>JCK/TCK</application> test suite. No claims
|
---|
| 105 | of compatibility, even partial compatibility, may be made without
|
---|
| 106 | passing an approved test suite.</para>
|
---|
| 107 |
|
---|
| 108 | <para>Oracle does provide free community access, on a case by case basis,
|
---|
| 109 | to a closed toolkit to ensure 100% compatibility with its proprietary JDK.
|
---|
| 110 | The binary version provided here has not been tested against the
|
---|
| 111 | <ulink url="http://openjdk.java.net/groups/conformance/JckAccess/jck-access.html">
|
---|
| 112 | TCK</ulink>. Any version that is built using the instructions given,
|
---|
| 113 | cannot claim to be compatible with the proprietary JDK, without the user
|
---|
| 114 | applying for, and completing the compatibility tests themselves.</para>
|
---|
| 115 |
|
---|
| 116 | <para>With that in mind, the binaries produced using this build method are
|
---|
| 117 | regularly tested against the TCK by the members listed on the site above.
|
---|
| 118 | In addition to the community license above, an educational, non-commercial
|
---|
| 119 | license for the TCK can be obtained from
|
---|
| 120 | <ulink url="http://www.oracle.com/technetwork/java/index-137188.html">
|
---|
| 121 | here</ulink>.</para>
|
---|
| 122 | </note>
|
---|
| 123 |
|
---|
| 124 | <bridgehead renderas="sect3">Source Package Information</bridgehead>
|
---|
| 125 | <itemizedlist spacing="compact">
|
---|
| 126 | <listitem>
|
---|
[49b50d4] | 127 | <para>IcedTea Source Package
|
---|
[2c25a56] | 128 | <simplelist>
|
---|
[49b50d4] | 129 | <member>Download: <ulink url="&icedtea-download;"/></member>
|
---|
| 130 | <member>Download MD5 sum: &icedtea-md5sum;</member>
|
---|
| 131 | <member>Download Size: &icedtea-size;</member>
|
---|
[2c25a56] | 132 | </simplelist>
|
---|
| 133 | </para>
|
---|
| 134 | </listitem>
|
---|
[f533b0d] | 135 | </itemizedlist>
|
---|
| 136 |
|
---|
[0d7900a] | 137 | <para>The following may be downladed separately or be done as a
|
---|
[dfff8213] | 138 | part of the <command>make</command> process. For convenience
|
---|
[92b1341] | 139 | the BLFS editors have made the files available in an LFS website.
|
---|
| 140 | The files are not distributed with versions, but extracted from
|
---|
| 141 | the OpenJDK version control system at specified (tagged) points.</para>
|
---|
[f533b0d] | 142 |
|
---|
| 143 | <itemizedlist spacing="compact">
|
---|
[2c25a56] | 144 | <listitem>
|
---|
[49b50d4] | 145 | <para>Corba Source
|
---|
| 146 | <simplelist>
|
---|
| 147 | <member>Download: <ulink url="&corba-download;"/></member>
|
---|
| 148 | <member>Download MD5 sum: &corba-md5sum;</member>
|
---|
| 149 | <member>Download Size: &corba-size;</member>
|
---|
| 150 | </simplelist>
|
---|
| 151 | </para>
|
---|
| 152 | </listitem>
|
---|
| 153 | <listitem>
|
---|
| 154 | <para>Hotspot Source
|
---|
[2c25a56] | 155 | <simplelist>
|
---|
[49b50d4] | 156 | <member>Download: <ulink url="&hotspot-download;"/></member>
|
---|
| 157 | <member>Download MD5 sum: &hotspot-md5sum;</member>
|
---|
| 158 | <member>Download Size: &hotspot-size;</member>
|
---|
[2c25a56] | 159 | </simplelist>
|
---|
| 160 | </para>
|
---|
| 161 | </listitem>
|
---|
| 162 | <listitem>
|
---|
[49b50d4] | 163 | <para>IcedTea Build Source
|
---|
[2c25a56] | 164 | <simplelist>
|
---|
[49b50d4] | 165 | <member>Download: <ulink url="&openjdk-download;"/></member>
|
---|
| 166 | <member>Download MD5 sum: &openjdk-md5sum;</member>
|
---|
| 167 | <member>Download Size: &openjdk-size;</member>
|
---|
[2c25a56] | 168 | </simplelist>
|
---|
| 169 | </para>
|
---|
| 170 | </listitem>
|
---|
| 171 | <listitem>
|
---|
| 172 | <para>JAXP Source
|
---|
| 173 | <simplelist>
|
---|
[49b50d4] | 174 | <member>Download: <ulink url="&jaxp-download;"/></member>
|
---|
| 175 | <member>Download MD5 sum: &jaxp-md5sum;</member>
|
---|
| 176 | <member>Download Size: &jaxp-size;</member>
|
---|
[2c25a56] | 177 | </simplelist>
|
---|
| 178 | </para>
|
---|
| 179 | </listitem>
|
---|
| 180 | <listitem>
|
---|
| 181 | <para>JAXWS Source
|
---|
| 182 | <simplelist>
|
---|
[49b50d4] | 183 | <member>Download: <ulink url="&jaxws-download;"/></member>
|
---|
| 184 | <member>Download MD5 sum: &jaxws-md5sum;</member>
|
---|
| 185 | <member>Download Size: &jaxws-size;</member>
|
---|
| 186 | </simplelist>
|
---|
| 187 | </para>
|
---|
| 188 | </listitem>
|
---|
| 189 | <listitem>
|
---|
| 190 | <para>Langtools Source
|
---|
| 191 | <simplelist>
|
---|
| 192 | <member>Download: <ulink url="&langtools-download;"/></member>
|
---|
| 193 | <member>Download MD5 sum: &langtools-md5sum;</member>
|
---|
| 194 | <member>Download Size: &langtools-size;</member>
|
---|
| 195 | </simplelist>
|
---|
| 196 | </para>
|
---|
| 197 | </listitem>
|
---|
| 198 | <listitem>
|
---|
| 199 | <para>OpenJDK Source
|
---|
| 200 | <simplelist>
|
---|
| 201 | <member>Download: <ulink url="&jdk-download;"/></member>
|
---|
| 202 | <member>Download MD5 sum: &jdk-md5sum;</member>
|
---|
| 203 | <member>Download Size: &jdk-size;</member>
|
---|
[2c25a56] | 204 | </simplelist>
|
---|
| 205 | </para>
|
---|
| 206 | </listitem>
|
---|
| 207 | <listitem>
|
---|
[49b50d4] | 208 | <para>Estimated disk space required: &openjdk-buildsize;</para>
|
---|
[2c25a56] | 209 | </listitem>
|
---|
| 210 | <listitem>
|
---|
[49b50d4] | 211 | <para>Estimated build time: &openjdk-time;</para>
|
---|
[2c25a56] | 212 | </listitem>
|
---|
| 213 | </itemizedlist>
|
---|
| 214 |
|
---|
| 215 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 216 |
|
---|
| 217 | <bridgehead renderas="sect4">Required Patches</bridgehead>
|
---|
| 218 | <itemizedlist spacing='compact'>
|
---|
| 219 | <listitem>
|
---|
[b1129a10] | 220 | <para>
|
---|
| 221 | <ulink
|
---|
| 222 | url="&patch-root;/icedtea-&icedtea-version;-add_cacerts-1.patch"/>
|
---|
| 223 | </para>
|
---|
[2c25a56] | 224 | </listitem>
|
---|
| 225 | <listitem>
|
---|
[b1129a10] | 226 | <para>
|
---|
| 227 | <ulink
|
---|
| 228 | url="&patch-root;/icedtea-&icedtea-version;-fixed_paths-1.patch"/>
|
---|
| 229 | </para>
|
---|
[2c25a56] | 230 | </listitem>
|
---|
[870e4acf] | 231 | <listitem>
|
---|
[b1129a10] | 232 | <para>
|
---|
| 233 | <ulink
|
---|
| 234 | url="&patch-root;/icedtea-&icedtea-version;-fix_new_giflib-1.patch"/>
|
---|
| 235 | </para>
|
---|
[870e4acf] | 236 | </listitem>
|
---|
[2c25a56] | 237 | <listitem>
|
---|
[b1129a10] | 238 | <para>
|
---|
| 239 | <ulink
|
---|
| 240 | url="&patch-root;/icedtea-&icedtea-version;-fix_tests-1.patch"/>
|
---|
| 241 | </para>
|
---|
[2c25a56] | 242 | </listitem>
|
---|
| 243 | </itemizedlist>
|
---|
| 244 |
|
---|
[dc6bfc3b] | 245 | <bridgehead renderas="sect4">Required JAR</bridgehead>
|
---|
[2c25a56] | 246 | <itemizedlist spacing='compact'>
|
---|
| 247 | <listitem>
|
---|
| 248 | <para>Rhino Java Script
|
---|
| 249 | <simplelist>
|
---|
[49b50d4] | 250 | <member>Download: <ulink url="&rhino-download;"/></member>
|
---|
| 251 | <member>Download MD5 sum: &rhino-md5sum;</member>
|
---|
| 252 | <member>Download Size: &rhino-size;</member>
|
---|
[2c25a56] | 253 | </simplelist>
|
---|
| 254 | </para>
|
---|
| 255 | </listitem>
|
---|
| 256 | </itemizedlist>
|
---|
[b1129a10] | 257 |
|
---|
| 258 | <bridgehead renderas="sect4">Optional package (to obtain an icon for the
|
---|
| 259 | <filename>openjdk-7-policytool.desktop</filename> file)</bridgehead>
|
---|
| 260 | <itemizedlist spacing='compact'>
|
---|
| 261 | <listitem>
|
---|
| 262 | <para>
|
---|
| 263 | <ulink url="&icedtea-web-download;"/>
|
---|
| 264 | </para>
|
---|
| 265 | </listitem>
|
---|
| 266 | </itemizedlist>
|
---|
[49b50d4] | 267 | <bridgehead renderas="sect3">OpenJDK Dependencies</bridgehead>
|
---|
[bc00982] | 268 |
|
---|
[92b1341] | 269 | <bridgehead renderas="sect4">Required Dependencies</bridgehead>
|
---|
[2e41a4f] | 270 | <para role="required">
|
---|
[92b1341] | 271 | An existing binary ( <xref linkend="java"/> or an earlier built
|
---|
[710fb64] | 272 | version of this package),
|
---|
[52a4df28] | 273 | <xref linkend="alsa-lib"/>,
|
---|
[92b1341] | 274 | <xref linkend="apache-ant"/>,
|
---|
[49b50d4] | 275 | <xref linkend="cacerts"/>,
|
---|
[92b1341] | 276 | <xref linkend="cpio"/>,
|
---|
[de930747] | 277 | <xref linkend="cups"/>,
|
---|
[1c69133] | 278 | <xref linkend="gtk2"/>,
|
---|
[49b50d4] | 279 | <xref linkend="giflib"/>,
|
---|
[2e41a4f] | 280 | <xref linkend="unzip"/>,
|
---|
| 281 | <xref linkend="wget"/>,
|
---|
[92b1341] | 282 | <xref linkend="which"/>,
|
---|
| 283 | <xref linkend="xorg7-lib"/>, and
|
---|
[2e41a4f] | 284 | <xref linkend="zip"/>
|
---|
| 285 | </para>
|
---|
[2c25a56] | 286 |
|
---|
[52a4df28] | 287 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 288 | <para role="recommended">
|
---|
[6dc9fd3] | 289 | <xref linkend="junit"/> and
|
---|
[52a4df28] | 290 | <xref linkend="nss"/>
|
---|
| 291 | </para>
|
---|
| 292 |
|
---|
[e01f402] | 293 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 294 | <para role="optional">
|
---|
[406d365] | 295 | <xref linkend="libxslt"/>,
|
---|
[d74762c] | 296 | <xref linkend="lsb-release"/>,
|
---|
[406d365] | 297 | <xref linkend="mercurial"/>,
|
---|
[6f01fd2e] | 298 | <xref linkend="mitkrb"/>,
|
---|
[8824a1e] | 299 | <!-- Audio support has beeen moved to icedtea-sound
|
---|
| 300 | <xref linkend="pulseaudio"/>, --> and
|
---|
[6f01fd2e] | 301 | <xref linkend="xorg-server"/> (for the tests)
|
---|
[e01f402] | 302 | </para>
|
---|
| 303 |
|
---|
[2c25a56] | 304 | <para condition="html" role="usernotes">User Notes:
|
---|
[49b50d4] | 305 | <ulink url="&blfs-wiki;/openjdk"/></para>
|
---|
[2c25a56] | 306 |
|
---|
| 307 | </sect2>
|
---|
| 308 |
|
---|
| 309 | <sect2 role="installation">
|
---|
[49b50d4] | 310 | <title>Installation of OpenJDK</title>
|
---|
[2c25a56] | 311 |
|
---|
[92b1341] | 312 | <note><para>The source build of OpenJDK requires <xref
|
---|
| 313 | linkend="apache-ant"/>. You'll need to build that first to satisfy the
|
---|
| 314 | circular dependency, and return to this section to continue building
|
---|
[49b50d4] | 315 | OpenJDK.</para></note>
|
---|
[2c25a56] | 316 |
|
---|
[49b50d4] | 317 | <para>Unlike other packages in BLFS, the <application>OpenJDK</application>
|
---|
| 318 | source packages are distributed in multiple downloads. Since the IcedTea
|
---|
[4d180035] | 319 | build harness will be used to build <application>OpenJDK</application>,
|
---|
[49b50d4] | 320 | begin by extracting the IcedTea package and changing into the
|
---|
[4d180035] | 321 | extracted directory.</para>
|
---|
[bc00982] | 322 |
|
---|
[4d180035] | 323 | <para>The IcedTea <application>OpenJDK</application> distribution requires
|
---|
[49b50d4] | 324 | that <filename>js.jar</filename> (from the Rhino package) be in place in
|
---|
| 325 | order to provide a java-script implementation for the free JDK. If you have
|
---|
| 326 | not installed the js.jar file in another way, do so with the following
|
---|
| 327 | commands as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[2c25a56] | 328 |
|
---|
[6f01fd2e] | 329 | <screen role="root"><userinput>unzip ../rhino1_7R4.zip &&
|
---|
[2c25a56] | 330 | install -v -d -m755 /usr/share/java &&
|
---|
[6f01fd2e] | 331 | install -v -m755 rhino1_7R4/*.jar /usr/share/java</userinput></screen>
|
---|
[49b50d4] | 332 |
|
---|
| 333 | <para>As mentioned previously, <application>OpenJDK</application> is
|
---|
| 334 | composed of several individual projects of the proprietary
|
---|
| 335 | <application>JDK</application> that have been relicensed under an open
|
---|
[8824a1e] | 336 | source license. If you have already downloaded all of the individual
|
---|
[b1129a10] | 337 | components, place them into the source tree with the following
|
---|
| 338 | commands:</para>
|
---|
[49b50d4] | 339 |
|
---|
[8824a1e] | 340 | <screen><userinput>cp -v ../corba.tar.bz2 . &&
|
---|
| 341 | cp -v ../hotspot.tar.bz2 . &&
|
---|
| 342 | cp -v ../jaxp.tar.bz2 . &&
|
---|
| 343 | cp -v ../jaxws.tar.bz2 . &&
|
---|
| 344 | cp -v ../jdk.tar.bz2 . &&
|
---|
| 345 | cp -v ../langtools.tar.bz2 . &&
|
---|
| 346 | cp -v ../openjdk.tar.bz2 .</userinput></screen>
|
---|
[6f01fd2e] | 347 |
|
---|
[2c25a56] | 348 | <para>Apply a patch to generate a valid cacerts file using the system CA
|
---|
| 349 | certificates:</para>
|
---|
| 350 |
|
---|
[e01f402] | 351 | <screen><userinput>patch -Np1 -i ../icedtea-&icedtea-version;-add_cacerts-1.patch</userinput></screen>
|
---|
[bc00982] | 352 |
|
---|
| 353 | <para>Apply a patch to replace fixed paths with ones appropriate for
|
---|
| 354 | BLFS:</para>
|
---|
| 355 |
|
---|
[49b50d4] | 356 | <screen><userinput>patch -Np1 -i ../icedtea-&icedtea-version;-fixed_paths-1.patch</userinput></screen>
|
---|
| 357 |
|
---|
[870e4acf] | 358 | <para>Apply a patch to adapt the code to the new giflib API:</para>
|
---|
| 359 |
|
---|
| 360 | <screen><userinput>patch -Np1 -i ../icedtea-&icedtea-version;-fix_new_giflib-1.patch</userinput></screen>
|
---|
| 361 |
|
---|
[b1129a10] | 362 | <para>Apply a patch to exclude known broken tests from the test
|
---|
| 363 | suite:</para>
|
---|
[49b50d4] | 364 |
|
---|
| 365 | <screen><userinput>patch -Np1 -i ../icedtea-&icedtea-version;-fix_tests-1.patch</userinput></screen>
|
---|
| 366 |
|
---|
[88b2f2ef] | 367 | <note>
|
---|
| 368 | <para>
|
---|
| 369 | Before proceeding, you should ensure that your environment is
|
---|
| 370 | properly set for building <application>OpenJDK</application>. First,
|
---|
| 371 | review the content of the <envar>ANT_HOME</envar> variable.
|
---|
| 372 | Second, the <envar>PATH</envar> variable should contain the paths to
|
---|
| 373 | the <command>java</command> and <command>ant</command> executables.
|
---|
| 374 | Last, the <envar>CLASSPATH</envar> variable should be set as
|
---|
| 375 | explained on the <xref linkend="java"/> and <xref linkend="junit"/>
|
---|
| 376 | pages.
|
---|
| 377 | </para>
|
---|
| 378 | </note>
|
---|
[5292423] | 379 | <para>Configure and build the package with the following commands
|
---|
[dc035e7] | 380 | (--with-pkgversion and --with-version-suffix values can be modified to fit
|
---|
| 381 | user preferences):</para>
|
---|
[2c25a56] | 382 |
|
---|
[c770e18] | 383 | <screen><userinput>unset JAVA_HOME &&
|
---|
| 384 | ./autogen.sh &&
|
---|
| 385 | ./configure --with-jdk-home=/opt/OpenJDK-&openjdk-version;-bin \
|
---|
[bb11ee6] | 386 | --with-version-suffix=BLFS \
|
---|
[52a4df28] | 387 | --enable-nss \
|
---|
[c770e18] | 388 | --disable-system-kerberos \
|
---|
[8824a1e] | 389 | --with-parallel-jobs &&
|
---|
[2c25a56] | 390 | make</userinput></screen>
|
---|
| 391 |
|
---|
[0d7900a] | 392 | <note><para>If you have not installed the tarballs specified above,
|
---|
[f533b0d] | 393 | they will be automatically downloaded here.</para></note>
|
---|
| 394 |
|
---|
[49b50d4] | 395 | <para>To test the results, issue: <command>make jtregcheck</command>. The
|
---|
[bc00982] | 396 | included version of <application>jtreg</application> is old, and the test
|
---|
[49b50d4] | 397 | suite is also very dependent on the host system and the environment that it
|
---|
[f533b0d] | 398 | is run in. You should expect to see anywhere between 40 and 100 failures in
|
---|
| 399 | jdk with up to 10 errors in the tests themselves. The majority of the
|
---|
| 400 | 6000+ tests should pass. The reason for the greatly varying results is due
|
---|
| 401 | to how stringent the testing environment must be. Varying architectures,
|
---|
| 402 | different versions of dependent libraries, unexpected X Window environment
|
---|
| 403 | and window managers, the CA certificates used to generate the
|
---|
| 404 | <filename>cacerts</filename> file, and even any user input or power
|
---|
| 405 | management or screen saver interruptions during the testing can lead to
|
---|
| 406 | various failures. While the known broken tests have been removed, with the
|
---|
| 407 | fix_tests patch above, the graphics tests failures cannot be pre-determined
|
---|
| 408 | (short of removing them all). The best bet for the minimal number of
|
---|
| 409 | failures is to run the test suite in a framebuffer on a different screen
|
---|
[e6a3602] | 410 | (Xvfb). Even still, disk I/O can cause failures.</para>
|
---|
[2c25a56] | 411 |
|
---|
[52a4df28] | 412 | <screen role='nodump'><userinput>export DISPLAY=:20 &&
|
---|
[92b1341] | 413 | Xvfb :20 -screen 0 1x1x24 -ac&
|
---|
| 414 | echo $!> Xvfb.pid &&
|
---|
| 415 | make -k jtregcheck &&
|
---|
| 416 | kill -9 `cat Xvfb.pid` &&
|
---|
| 417 | unset DISPLAY &&
|
---|
| 418 | rm -f Xvfb.pid</userinput></screen>
|
---|
| 419 |
|
---|
[2c25a56] | 420 | <para>Install the package with the following commands as the
|
---|
| 421 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 422 |
|
---|
[c770e18] | 423 | <screen role="root"><userinput>chmod 0644 openjdk.build/j2sdk-image/lib/sa-jdi.jar &&
|
---|
[f533b0d] | 424 | cp -R openjdk.build/j2sdk-image /opt/OpenJDK-&openjdk-version; &&
|
---|
[49b50d4] | 425 | chown -R root:root /opt/OpenJDK-&openjdk-version;</userinput></screen>
|
---|
[2c25a56] | 426 |
|
---|
[cc2a12d] | 427 | <para>If desired, you may install a .desktop file corresponding to an entry
|
---|
| 428 | in a desktop menu for <command>policytool</command>. First, you need to
|
---|
| 429 | obtain an icon from <xref linkend="icedtea-web"/>:</para>
|
---|
[5a78947] | 430 |
|
---|
[b1129a10] | 431 | <screen><userinput>tar -xf ../icedtea-web-&icedtea-web-version;.tar.gz \
|
---|
[cc2a12d] | 432 | icedtea-web-&icedtea-web-version;/javaws.png \
|
---|
| 433 | --strip-components=1</userinput></screen>
|
---|
[5a78947] | 434 |
|
---|
| 435 | <para>Now, as <systemitem class="username">root</systemitem> user:</para>
|
---|
[76df61c] | 436 |
|
---|
[b1129a10] | 437 | <screen role="root"><userinput>mkdir -pv /usr/share/applications &&
|
---|
| 438 |
|
---|
| 439 | cat > /usr/share/applications/openjdk-7-policytool.desktop << "EOF" &&
|
---|
[76df61c] | 440 | <literal>[Desktop Entry]
|
---|
| 441 | Name=OpenJDK Java 7 Policy Tool
|
---|
| 442 | Name[pt_BR]=OpenJDK Java 7 - Ferramenta de Política
|
---|
| 443 | Comment=OpenJDK Java 7 Policy Tool
|
---|
| 444 | Comment[pt_BR]=OpenJDK Java 7 - Ferramenta de Política
|
---|
| 445 | Exec=/opt/jdk/bin/policytool
|
---|
| 446 | Terminal=false
|
---|
| 447 | Type=Application
|
---|
| 448 | Icon=javaws
|
---|
| 449 | Categories=Settings;</literal>
|
---|
| 450 | EOF
|
---|
| 451 |
|
---|
[5a78947] | 452 | install -v -Dm0644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen>
|
---|
| 453 |
|
---|
[b1129a10] | 454 | <para>The choice of pt_BR is just an example. You can add any translation
|
---|
| 455 | by adding lines corresponding to your locale, e.g. for fr_FR,
|
---|
[88b2f2ef] | 456 | <quote>Name[fr_FR]=</quote> and <quote>Comment[fr_FR]=</quote> with the
|
---|
| 457 | appropriate text as values.</para>
|
---|
[76df61c] | 458 |
|
---|
[2c25a56] | 459 | </sect2>
|
---|
| 460 |
|
---|
| 461 | <sect2 role="commands">
|
---|
| 462 | <title>Command Explanations</title>
|
---|
| 463 |
|
---|
| 464 | <para><command>./autogen.sh</command>: This command forces rebuilding of
|
---|
| 465 | auto-generated files to account for new options added to
|
---|
| 466 | <filename>configure</filename>.</para>
|
---|
| 467 |
|
---|
| 468 | <para><parameter>--with-jdk-home</parameter>: This switch provides the
|
---|
[d3d92c8] | 469 | location of the temporary <application>JDK</application>.</para>
|
---|
[2c25a56] | 470 |
|
---|
[6f01fd2e] | 471 | <para><option>--with-pkgversion</option>: This switch can be used
|
---|
[5292423] | 472 | to modify the version string in addition to "IcedTea".</para>
|
---|
| 473 |
|
---|
| 474 | <para><parameter>--with-version-suffix</parameter>: This switch appends
|
---|
| 475 | the given text to the JDK version string.</para>
|
---|
| 476 |
|
---|
[52a4df28] | 477 | <para><parameter>--enable-nss</parameter>: Enable inclusion of NSS
|
---|
| 478 | security provider.</para>
|
---|
| 479 |
|
---|
[c770e18] | 480 | <para><parameter>--disable-system-kerberos</parameter>: Remove this switch,
|
---|
[e01f402] | 481 | if <xref linkend="mitkrb"/> is installed.</para>
|
---|
| 482 |
|
---|
[8824a1e] | 483 | <para><parameter>--with-parallel-jobs</parameter>: Allows to set the number
|
---|
| 484 | of jobs for <command>make</command> equal to the number of processors plus
|
---|
[b914c2e] | 485 | one. Note that the default is 2 if this option is not specified. You have to
|
---|
[8824a1e] | 486 | explicitely set <option>--with-parallel-jobs=1</option> to disable
|
---|
| 487 | parallel jobs. The SBU given above are with parallel jobs
|
---|
| 488 | disabled.</para>
|
---|
[c770e18] | 489 |
|
---|
[f533b0d] | 490 | <para><command>chmod -v 0644 ...sa-jdi.jar</command>: Fix permissions
|
---|
| 491 | in a generated file so all users can access it.</para>
|
---|
[8824a1e] | 492 | <!-- Now part of icedtea-sound
|
---|
| 493 | <para><option>- -enable-pulse-java</option>: This switch enables
|
---|
[5889b848] | 494 | building of the pulseaudio libraries (needed to provide a complete
|
---|
| 495 | implementation that is reasonably compatible with the proprietary
|
---|
| 496 | JDK). <xref linkend="pulseaudio"/> needs to be installed.</para>
|
---|
[8824a1e] | 497 | -->
|
---|
[5889b848] | 498 |
|
---|
[2c25a56] | 499 | </sect2>
|
---|
| 500 |
|
---|
[b1129a10] | 501 | <sect2 role="configuration"
|
---|
| 502 | id="openjdk-config"
|
---|
| 503 | xreflabel="Configuring OpenJDK">
|
---|
[49b50d4] | 504 | <title>Configuring OpenJDK</title>
|
---|
[2c25a56] | 505 |
|
---|
| 506 | <sect3>
|
---|
| 507 | <title>Configuration Information</title>
|
---|
| 508 |
|
---|
[49b50d4] | 509 | <para>There are now two <application>OpenJDK</application> SDKs
|
---|
[2c25a56] | 510 | installed in <filename>/opt</filename>. You should decide on which one
|
---|
| 511 | you would like to use as the default. For example if you decide to use
|
---|
[49b50d4] | 512 | the precompiled <application>OpenJDK</application>, do the following as
|
---|
[2c25a56] | 513 | the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 514 |
|
---|
[f533b0d] | 515 | <screen role="root"><userinput>ln -v -nsf OpenJDK-&openjdk-version;-bin /opt/jdk</userinput></screen>
|
---|
[2c25a56] | 516 |
|
---|
[f533b0d] | 517 | <para>The information below assumes your system is set up using the
|
---|
| 518 | instructions found in <quote><xref
|
---|
| 519 | linkend="postlfs-config-profile"/></quote>. You may need to extract the
|
---|
| 520 | relevant information below and incorporate it into your system's startup
|
---|
| 521 | files if your system is set up differently.</para>
|
---|
[2c25a56] | 522 |
|
---|
[f533b0d] | 523 | <para>Add the following <filename>openjdk.sh</filename> shell startup
|
---|
| 524 | file to the <filename>/etc/profile.d</filename> directory with the
|
---|
| 525 | following commands as the <systemitem class="username">root</systemitem>
|
---|
| 526 | user:</para>
|
---|
[2c25a56] | 527 |
|
---|
[b1129a10] | 528 | <screen role="root"><userinput>cat > /etc/profile.d/openjdk.sh << "EOF"
|
---|
[49b50d4] | 529 | <literal># Begin /etc/profile.d/openjdk.sh
|
---|
[2c25a56] | 530 |
|
---|
| 531 | # Set JAVA_HOME directory
|
---|
[f533b0d] | 532 | JAVA_HOME=/opt/jdk
|
---|
[2c25a56] | 533 |
|
---|
[b1129a10] | 534 | # Set ANT_HOME directory
|
---|
| 535 | ANT_HOME=/opt/ant
|
---|
| 536 |
|
---|
[2c25a56] | 537 | # Adjust PATH
|
---|
[f533b0d] | 538 | pathappend $JAVA_HOME/bin PATH
|
---|
[b1129a10] | 539 | pathappend $ANT_HOME/bin PATH
|
---|
[2c25a56] | 540 |
|
---|
| 541 | # Auto Java CLASSPATH
|
---|
| 542 | # Copy jar files to, or create symlinks in this directory
|
---|
[f533b0d] | 543 |
|
---|
[2c25a56] | 544 | AUTO_CLASSPATH_DIR=/usr/share/java
|
---|
[f533b0d] | 545 |
|
---|
[2c25a56] | 546 | pathprepend . CLASSPATH
|
---|
[f533b0d] | 547 |
|
---|
[2c25a56] | 548 | for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do
|
---|
| 549 | pathappend $dir CLASSPATH
|
---|
| 550 | done
|
---|
[f533b0d] | 551 |
|
---|
[49b50d4] | 552 | for jar in `find ${AUTO_CLASSPATH_DIR} -name "*.jar" 2>/dev/null`; do
|
---|
| 553 | pathappend $jar CLASSPATH
|
---|
| 554 | done
|
---|
[2c25a56] | 555 |
|
---|
[b1129a10] | 556 | export JAVA_HOME ANT_HOME CLASSPATH
|
---|
[f533b0d] | 557 | unset AUTO_CLASSPATH_DIR dir jar
|
---|
[2c25a56] | 558 |
|
---|
[49b50d4] | 559 | # End /etc/profile.d/openjdk.sh</literal>
|
---|
[2c25a56] | 560 | EOF</userinput></screen>
|
---|
| 561 |
|
---|
[49b50d4] | 562 | <para>Finally, add the man pages to <application>man_db</application>'s
|
---|
| 563 | configuration. As the <systemitem class="username">root</systemitem>
|
---|
| 564 | user:</para>
|
---|
[2c25a56] | 565 |
|
---|
[76df61c] | 566 | <screen role="root"><userinput>cat >> /etc/profile.d/extrapaths.sh << "EOF" &&
|
---|
| 567 | # Begin Java addition
|
---|
| 568 | <literal>pathappend /opt/jdk/man MANPATH
|
---|
| 569 | # End Java addition</literal>
|
---|
| 570 | EOF
|
---|
| 571 |
|
---|
| 572 |
|
---|
| 573 | cat >> /etc/man_db.conf << "EOF" &&
|
---|
| 574 | <literal># Begin Java addition
|
---|
| 575 | MANDATORY_MANPATH /opt/jdk/man
|
---|
[f533b0d] | 576 | MANPATH_MAP /opt/jdk/bin /opt/jdk/man
|
---|
[76df61c] | 577 | MANDB_MAP /opt/jdk/man /var/cache/man/jdk
|
---|
| 578 | # End Java addition</literal>
|
---|
[49b50d4] | 579 | EOF
|
---|
[b4289bcc] | 580 |
|
---|
| 581 | mandb -c /opt/jdk/man</userinput></screen>
|
---|
[2c25a56] | 582 |
|
---|
[cc2a12d] | 583 | <para>To test if the man pages are correctly installed, issue
|
---|
| 584 | <command>source /etc/profile</command> and <command>man java</command> to
|
---|
| 585 | display the respective man page.</para>
|
---|
[76df61c] | 586 |
|
---|
[2c25a56] | 587 | </sect3>
|
---|
| 588 |
|
---|
[8b9034a] | 589 | <sect3 id='ojdk-certs'>
|
---|
[b1129a10] | 590 | <title>Install or update the JRE Certificate Authority Certificates
|
---|
| 591 | (cacerts) file</title>
|
---|
[8b9034a] | 592 |
|
---|
[930d280b] | 593 | <para>Use the following procedure to check if the
|
---|
| 594 | <filename>cacerts</filename> file was successfully installed during the
|
---|
| 595 | OpenJDK build. Also, if the <xref linkend="cacerts"/> have been updated,
|
---|
| 596 | the following instructions will generate a new JRE
|
---|
| 597 | <filename>cacerts</filename> file. First, check if the
|
---|
[8b9034a] | 598 | <filename>cacerts</filename> have been successfully installed: </para>
|
---|
| 599 |
|
---|
| 600 | <screen role="root"><userinput>cd /opt/jdk
|
---|
| 601 | bin/keytool -list -keystore jre/lib/security/cacerts</userinput></screen>
|
---|
| 602 |
|
---|
| 603 | <para>At the prompt "Enter keystore password:", press the "Enter" key if
|
---|
| 604 | there is no keystore password defined. If the
|
---|
[930d280b] | 605 | <filename>cacerts</filename> were installed correctly, you will see a
|
---|
[8b9034a] | 606 | list of the certificates with related information for each one. If not,
|
---|
| 607 | you need to manually install them. First, generate the
|
---|
| 608 | <command>mkcacerts</command> script as the
|
---|
| 609 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 610 |
|
---|
| 611 | <screen role="root"><userinput>cat > /opt/jdk/bin/mkcacerts << "EOF"
|
---|
| 612 | <literal>#!/bin/sh
|
---|
| 613 | # Simple script to extract x509 certificates and create a JRE cacerts file.
|
---|
| 614 |
|
---|
| 615 | function get_args()
|
---|
| 616 | {
|
---|
| 617 | if test -z "${1}" ; then
|
---|
| 618 | showhelp
|
---|
| 619 | exit 1
|
---|
| 620 | fi
|
---|
| 621 |
|
---|
| 622 | while test -n "${1}" ; do
|
---|
| 623 | case "${1}" in
|
---|
| 624 | -f | --cafile)
|
---|
| 625 | check_arg $1 $2
|
---|
| 626 | CAFILE="${2}"
|
---|
| 627 | shift 2
|
---|
| 628 | ;;
|
---|
| 629 | -d | --cadir)
|
---|
| 630 | check_arg $1 $2
|
---|
| 631 | CADIR="${2}"
|
---|
| 632 | shift 2
|
---|
| 633 | ;;
|
---|
| 634 | -o | --outfile)
|
---|
| 635 | check_arg $1 $2
|
---|
| 636 | OUTFILE="${2}"
|
---|
| 637 | shift 2
|
---|
| 638 | ;;
|
---|
| 639 | -k | --keytool)
|
---|
| 640 | check_arg $1 $2
|
---|
| 641 | KEYTOOL="${2}"
|
---|
| 642 | shift 2
|
---|
| 643 | ;;
|
---|
| 644 | -s | --openssl)
|
---|
| 645 | check_arg $1 $2
|
---|
| 646 | OPENSSL="${2}"
|
---|
| 647 | shift 2
|
---|
| 648 | ;;
|
---|
| 649 | -h | --help)
|
---|
| 650 | showhelp
|
---|
| 651 | exit 0
|
---|
| 652 | ;;
|
---|
| 653 | *)
|
---|
| 654 | showhelp
|
---|
| 655 | exit 1
|
---|
| 656 | ;;
|
---|
| 657 | esac
|
---|
| 658 | done
|
---|
| 659 | }
|
---|
| 660 |
|
---|
| 661 | function check_arg()
|
---|
| 662 | {
|
---|
| 663 | echo "${2}" | grep -v "^-" > /dev/null
|
---|
| 664 | if [ -z "$?" -o ! -n "$2" ]; then
|
---|
| 665 | echo "Error: $1 requires a valid argument."
|
---|
| 666 | exit 1
|
---|
| 667 | fi
|
---|
| 668 | }
|
---|
| 669 |
|
---|
| 670 | # The date binary is not reliable on 32bit systems for dates after 2038
|
---|
| 671 | function mydate()
|
---|
| 672 | {
|
---|
| 673 | local y=$( echo $1 | cut -d" " -f4 )
|
---|
| 674 | local M=$( echo $1 | cut -d" " -f1 )
|
---|
| 675 | local d=$( echo $1 | cut -d" " -f2 )
|
---|
| 676 | local m
|
---|
| 677 |
|
---|
| 678 | if [ ${d} -lt 10 ]; then d="0${d}"; fi
|
---|
| 679 |
|
---|
| 680 | case $M in
|
---|
| 681 | Jan) m="01";;
|
---|
| 682 | Feb) m="02";;
|
---|
| 683 | Mar) m="03";;
|
---|
| 684 | Apr) m="04";;
|
---|
| 685 | May) m="05";;
|
---|
| 686 | Jun) m="06";;
|
---|
| 687 | Jul) m="07";;
|
---|
| 688 | Aug) m="08";;
|
---|
| 689 | Sep) m="09";;
|
---|
| 690 | Oct) m="10";;
|
---|
| 691 | Nov) m="11";;
|
---|
| 692 | Dec) m="12";;
|
---|
| 693 | esac
|
---|
| 694 |
|
---|
| 695 | certdate="${y}${m}${d}"
|
---|
| 696 | }
|
---|
| 697 |
|
---|
| 698 | function showhelp()
|
---|
| 699 | {
|
---|
| 700 | echo "`basename ${0}` creates a valid cacerts file for use with IcedTea."
|
---|
| 701 | echo ""
|
---|
[b1129a10] | 702 | echo " -f --cafile The path to a file containing PEM"
|
---|
| 703 | echo " formated CA certificates. May not be"
|
---|
| 704 | echo " used with -d/--cadir."
|
---|
| 705 | echo ""
|
---|
| 706 | echo " -d --cadir The path to a directory of PEM formatted"
|
---|
| 707 | echo " CA certificates. May not be used with"
|
---|
| 708 | echo " -f/--cafile."
|
---|
| 709 | echo ""
|
---|
| 710 | echo " -o --outfile The path to the output file."
|
---|
[8b9034a] | 711 | echo ""
|
---|
[b1129a10] | 712 | echo " -k --keytool The path to the java keytool utility."
|
---|
[8b9034a] | 713 | echo ""
|
---|
[b1129a10] | 714 | echo " -s --openssl The path to the openssl utility."
|
---|
[8b9034a] | 715 | echo ""
|
---|
[b1129a10] | 716 | echo " -h --help Show this help message and exit."
|
---|
[8b9034a] | 717 | echo ""
|
---|
| 718 | echo ""
|
---|
| 719 | }
|
---|
| 720 |
|
---|
[a407a1c] | 721 | # Initialize empty variables so that the shell does not pollute the script
|
---|
[8b9034a] | 722 | CAFILE=""
|
---|
| 723 | CADIR=""
|
---|
| 724 | OUTFILE=""
|
---|
| 725 | OPENSSL=""
|
---|
| 726 | KEYTOOL=""
|
---|
| 727 | certdate=""
|
---|
| 728 | date=""
|
---|
| 729 | today=$( date +%Y%m%d )
|
---|
| 730 |
|
---|
| 731 | # Process command line arguments
|
---|
| 732 | get_args ${@}
|
---|
| 733 |
|
---|
| 734 | # Handle common errors
|
---|
| 735 | if test "${CAFILE}x" == "x" -a "${CADIR}x" == "x" ; then
|
---|
| 736 | echo "ERROR! You must provide an x509 certificate store!"
|
---|
| 737 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
| 738 | echo ""
|
---|
| 739 | exit 1
|
---|
| 740 | fi
|
---|
| 741 |
|
---|
| 742 | if test "${CAFILE}x" != "x" -a "${CADIR}x" != "x" ; then
|
---|
| 743 | echo "ERROR! You cannot provide two x509 certificate stores!"
|
---|
| 744 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
| 745 | echo ""
|
---|
| 746 | exit 1
|
---|
| 747 | fi
|
---|
| 748 |
|
---|
| 749 | if test "${KEYTOOL}x" == "x" ; then
|
---|
| 750 | echo "ERROR! You must provide a valid keytool program!"
|
---|
| 751 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
| 752 | echo ""
|
---|
| 753 | exit 1
|
---|
| 754 | fi
|
---|
| 755 |
|
---|
| 756 | if test "${OPENSSL}x" == "x" ; then
|
---|
| 757 | echo "ERROR! You must provide a valid path to openssl!"
|
---|
| 758 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
| 759 | echo ""
|
---|
| 760 | exit 1
|
---|
| 761 | fi
|
---|
| 762 |
|
---|
| 763 | if test "${OUTFILE}x" == "x" ; then
|
---|
| 764 | echo "ERROR! You must provide a valid output file!"
|
---|
| 765 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
| 766 | echo ""
|
---|
| 767 | exit 1
|
---|
| 768 | fi
|
---|
| 769 |
|
---|
| 770 | # Get on with the work
|
---|
| 771 |
|
---|
| 772 | # If using a CAFILE, split it into individual files in a temp directory
|
---|
| 773 | if test "${CAFILE}x" != "x" ; then
|
---|
| 774 | TEMPDIR=`mktemp -d`
|
---|
| 775 | CADIR="${TEMPDIR}"
|
---|
| 776 |
|
---|
| 777 | # Get a list of staring lines for each cert
|
---|
| 778 | CERTLIST=`grep -n "^-----BEGIN" "${CAFILE}" | cut -d ":" -f 1`
|
---|
| 779 |
|
---|
| 780 | # Get a list of ending lines for each cert
|
---|
| 781 | ENDCERTLIST=`grep -n "^-----END" "${CAFILE}" | cut -d ":" -f 1`
|
---|
| 782 |
|
---|
| 783 | # Start a loop
|
---|
| 784 | for certbegin in `echo "${CERTLIST}"` ; do
|
---|
| 785 | for certend in `echo "${ENDCERTLIST}"` ; do
|
---|
| 786 | if test "${certend}" -gt "${certbegin}"; then
|
---|
| 787 | break
|
---|
| 788 | fi
|
---|
| 789 | done
|
---|
| 790 | sed -n "${certbegin},${certend}p" "${CAFILE}" > "${CADIR}/${certbegin}.pem"
|
---|
| 791 | keyhash=`${OPENSSL} x509 -noout -in "${CADIR}/${certbegin}.pem" -hash`
|
---|
| 792 | echo "Generated PEM file with hash: ${keyhash}."
|
---|
| 793 | done
|
---|
| 794 | fi
|
---|
| 795 |
|
---|
| 796 | # Write the output file
|
---|
| 797 | for cert in `find "${CADIR}" -type f -name "*.pem" -o -name "*.crt"`
|
---|
| 798 | do
|
---|
| 799 |
|
---|
| 800 | # Make sure the certificate date is valid...
|
---|
| 801 | date=$( ${OPENSSL} x509 -enddate -in "${cert}" -noout | sed 's/^notAfter=//' )
|
---|
| 802 | mydate "${date}"
|
---|
| 803 | if test "${certdate}" -lt "${today}" ; then
|
---|
| 804 | echo "${cert} expired on ${certdate}! Skipping..."
|
---|
| 805 | unset date certdate
|
---|
| 806 | continue
|
---|
| 807 | fi
|
---|
| 808 | unset date certdate
|
---|
| 809 | ls "${cert}"
|
---|
| 810 | tempfile=`mktemp`
|
---|
| 811 | certbegin=`grep -n "^-----BEGIN" "${cert}" | cut -d ":" -f 1`
|
---|
| 812 | certend=`grep -n "^-----END" "${cert}" | cut -d ":" -f 1`
|
---|
| 813 | sed -n "${certbegin},${certend}p" "${cert}" > "${tempfile}"
|
---|
[b1129a10] | 814 | echo yes | env LC_ALL=C "${KEYTOOL}" -import \
|
---|
| 815 | -alias `basename "${cert}"` \
|
---|
| 816 | -keystore "${OUTFILE}" \
|
---|
| 817 | -storepass 'changeit' \
|
---|
| 818 | -file "${tempfile}"
|
---|
[8b9034a] | 819 | rm "${tempfile}"
|
---|
| 820 | done
|
---|
| 821 |
|
---|
| 822 | if test "${TEMPDIR}x" != "x" ; then
|
---|
| 823 | rm -rf "${TEMPDIR}"
|
---|
| 824 | fi
|
---|
| 825 | exit 0</literal>
|
---|
| 826 | EOF
|
---|
| 827 |
|
---|
| 828 | chmod -c 0755 /opt/jdk/bin/mkcacerts</userinput></screen>
|
---|
| 829 |
|
---|
| 830 | <note>
|
---|
| 831 | <para>
|
---|
| 832 | Doing a very large copy/paste directly to a terminal may result in a
|
---|
| 833 | corrupted file. Copying to an editor may overcome this issue.
|
---|
| 834 | </para>
|
---|
| 835 | </note>
|
---|
| 836 |
|
---|
[8824a1e] | 837 | <para>If you need to generate a <filename>cacerts</filename> file,
|
---|
| 838 | and there is already one in
|
---|
| 839 | <filename class="directory">/opt/jdk/jre/lib/security</filename>, it
|
---|
| 840 | is better to make a backup. Then, you can create a new one, as the
|
---|
[8b9034a] | 841 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 842 |
|
---|
[b1129a10] | 843 | <screen role="root"><userinput>/opt/jdk/bin/mkcacerts \
|
---|
| 844 | -d "/etc/ssl/certs/" \
|
---|
| 845 | -k "/opt/jdk/bin/keytool" \
|
---|
| 846 | -s "/usr/bin/openssl" \
|
---|
| 847 | -o "/opt/jdk/jre/lib/security/cacerts"</userinput></screen>
|
---|
[8b9034a] | 848 |
|
---|
| 849 | </sect3>
|
---|
| 850 |
|
---|
[2c25a56] | 851 | </sect2>
|
---|
| 852 |
|
---|
| 853 | <sect2 role="content">
|
---|
| 854 | <title>Contents</title>
|
---|
| 855 |
|
---|
| 856 | <segmentedlist>
|
---|
| 857 | <segtitle>Installed Programs</segtitle>
|
---|
| 858 | <segtitle>Installed Libraries</segtitle>
|
---|
| 859 | <segtitle>Installed Directory</segtitle>
|
---|
| 860 |
|
---|
| 861 | <seglistitem>
|
---|
[49b50d4] | 862 | <seg>appletviewer, apt, extcheck, idlj, jar,
|
---|
[2c25a56] | 863 | jarsigner, java, javac, javadoc, javah, javap, java-rmi.cgi,
|
---|
[49b50d4] | 864 | jcmd, jconsole, jdb, jhat, jinfo, jmap, jps,
|
---|
[1c46121] | 865 | jrunscript, jsadebugd, jstack, jstat, jstatd, keytool, mkcacerts,
|
---|
[2c25a56] | 866 | native2ascii, orbd, pack200, policytool, rmic, rmid, rmiregistry,
|
---|
| 867 | schemagen, serialver, servertool, tnameserv, unpack200,
|
---|
| 868 | wsgen, wsimport, and xjc</seg>
|
---|
[4d180035] | 869 | <seg>/opt/OpenJDK-&openjdk-version;/lib/*, and
|
---|
| 870 | /opt/OpenJDK-&openjdk-version;/jre/lib/*</seg>
|
---|
| 871 | <seg>/opt/OpenJDK-&openjdk-version;</seg>
|
---|
[2c25a56] | 872 | </seglistitem>
|
---|
| 873 | </segmentedlist>
|
---|
| 874 |
|
---|
| 875 | <variablelist>
|
---|
| 876 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 877 | <?dbfo list-presentation="list"?>
|
---|
| 878 | <?dbhtml list-presentation="table"?>
|
---|
| 879 |
|
---|
[49b50d4] | 880 | <varlistentry id="appletviewer">
|
---|
| 881 | <term><command>appletviewer</command></term>
|
---|
| 882 | <listitem>
|
---|
| 883 | <para>allows you to run applets outside of a web browser.</para>
|
---|
| 884 | <indexterm zone="openjdk appletviewer">
|
---|
| 885 | <primary sortas="b-appletviewer">appletviewer</primary>
|
---|
| 886 | </indexterm>
|
---|
| 887 | </listitem>
|
---|
| 888 | </varlistentry>
|
---|
| 889 |
|
---|
| 890 | <varlistentry id="apt">
|
---|
[2c25a56] | 891 | <term><command>apt</command></term>
|
---|
| 892 | <listitem>
|
---|
| 893 | <para>is an annotation processing tool.</para>
|
---|
[49b50d4] | 894 | <indexterm zone="openjdk apt">
|
---|
[2c25a56] | 895 | <primary sortas="b-apt">apt</primary>
|
---|
| 896 | </indexterm>
|
---|
| 897 | </listitem>
|
---|
| 898 | </varlistentry>
|
---|
| 899 |
|
---|
[49b50d4] | 900 | <varlistentry id="extcheck">
|
---|
[2c25a56] | 901 | <term><command>extcheck</command></term>
|
---|
| 902 | <listitem>
|
---|
| 903 | <para>checks a specified jar file for title and version conflicts
|
---|
[49b50d4] | 904 | with any extensions installed in the
|
---|
| 905 | <application>OpenJDK</application> software.</para>
|
---|
| 906 | <indexterm zone="openjdk extcheck">
|
---|
[2c25a56] | 907 | <primary sortas="b-extcheck">extcheck</primary>
|
---|
| 908 | </indexterm>
|
---|
| 909 | </listitem>
|
---|
| 910 | </varlistentry>
|
---|
| 911 |
|
---|
[49b50d4] | 912 | <varlistentry id="idlj">
|
---|
[2c25a56] | 913 | <term><command>idlj</command></term>
|
---|
| 914 | <listitem>
|
---|
| 915 | <para>generates Java bindings from a given IDL file.</para>
|
---|
[49b50d4] | 916 | <indexterm zone="openjdk idlj">
|
---|
[2c25a56] | 917 | <primary sortas="b-idlj">idlj</primary>
|
---|
| 918 | </indexterm>
|
---|
| 919 | </listitem>
|
---|
| 920 | </varlistentry>
|
---|
| 921 |
|
---|
[49b50d4] | 922 | <varlistentry id="jar">
|
---|
[2c25a56] | 923 | <term><command>jar</command></term>
|
---|
| 924 | <listitem>
|
---|
| 925 | <para>combines multiple files into a single jar archive.</para>
|
---|
[49b50d4] | 926 | <indexterm zone="openjdk jar">
|
---|
[2c25a56] | 927 | <primary sortas="b-jar">jar</primary>
|
---|
| 928 | </indexterm>
|
---|
| 929 | </listitem>
|
---|
| 930 | </varlistentry>
|
---|
| 931 |
|
---|
[49b50d4] | 932 | <varlistentry id="jarsigner">
|
---|
[2c25a56] | 933 | <term><command>jarsigner</command></term>
|
---|
| 934 | <listitem>
|
---|
| 935 | <para>signs jar files and verifies the signatures and integrity
|
---|
| 936 | of a signed jar file.</para>
|
---|
[49b50d4] | 937 | <indexterm zone="openjdk jarsigner">
|
---|
[2c25a56] | 938 | <primary sortas="b-jarsigner">jarsigner</primary>
|
---|
| 939 | </indexterm>
|
---|
| 940 | </listitem>
|
---|
| 941 | </varlistentry>
|
---|
| 942 |
|
---|
[784a1a7f] | 943 | <varlistentry id="java-prog">
|
---|
[2c25a56] | 944 | <term><command>java</command></term>
|
---|
| 945 | <listitem>
|
---|
| 946 | <para>launches a Java application by starting a Java runtime
|
---|
| 947 | environment, loading a specified class and invoking its main
|
---|
| 948 | method.</para>
|
---|
[784a1a7f] | 949 | <indexterm zone="openjdk java-prog">
|
---|
| 950 | <primary sortas="b-java-prog">java</primary>
|
---|
[2c25a56] | 951 | </indexterm>
|
---|
| 952 | </listitem>
|
---|
| 953 | </varlistentry>
|
---|
| 954 |
|
---|
[49b50d4] | 955 | <varlistentry id="javac">
|
---|
[2c25a56] | 956 | <term><command>javac</command></term>
|
---|
| 957 | <listitem>
|
---|
| 958 | <para>reads class and interface definitions, written in the
|
---|
| 959 | Java programming language, and compiles them into bytecode
|
---|
| 960 | class files.</para>
|
---|
[49b50d4] | 961 | <indexterm zone="openjdk javac">
|
---|
[2c25a56] | 962 | <primary sortas="b-javac">javac</primary>
|
---|
| 963 | </indexterm>
|
---|
| 964 | </listitem>
|
---|
| 965 | </varlistentry>
|
---|
| 966 |
|
---|
[49b50d4] | 967 | <varlistentry id="javadoc">
|
---|
[2c25a56] | 968 | <term><command>javadoc</command></term>
|
---|
| 969 | <listitem>
|
---|
| 970 | <para>parses the declarations and documentation comments in a
|
---|
| 971 | set of Java source files and produces a corresponding set of
|
---|
| 972 | HTML pages describing the classes, interfaces,constructors,
|
---|
| 973 | methods, and fields.</para>
|
---|
[49b50d4] | 974 | <indexterm zone="openjdk javadoc">
|
---|
[2c25a56] | 975 | <primary sortas="b-javadoc">javadoc</primary>
|
---|
| 976 | </indexterm>
|
---|
| 977 | </listitem>
|
---|
| 978 | </varlistentry>
|
---|
| 979 |
|
---|
[49b50d4] | 980 | <varlistentry id="javah">
|
---|
[2c25a56] | 981 | <term><command>javah</command></term>
|
---|
| 982 | <listitem>
|
---|
| 983 | <para>generates C header and source files
|
---|
| 984 | that are needed to implement native methods.</para>
|
---|
[49b50d4] | 985 | <indexterm zone="openjdk javah">
|
---|
[2c25a56] | 986 | <primary sortas="b-javah">javah</primary>
|
---|
| 987 | </indexterm>
|
---|
| 988 | </listitem>
|
---|
| 989 | </varlistentry>
|
---|
| 990 |
|
---|
[49b50d4] | 991 | <varlistentry id="javap">
|
---|
[2c25a56] | 992 | <term><command>javap</command></term>
|
---|
| 993 | <listitem>
|
---|
| 994 | <para>disassembles a Java class file.</para>
|
---|
[49b50d4] | 995 | <indexterm zone="openjdk javap">
|
---|
[2c25a56] | 996 | <primary sortas="b-javap">javap</primary>
|
---|
| 997 | </indexterm>
|
---|
| 998 | </listitem>
|
---|
| 999 | </varlistentry>
|
---|
| 1000 |
|
---|
[49b50d4] | 1001 | <varlistentry id="java-rmi.cgi">
|
---|
[2c25a56] | 1002 | <term><command>java-rmi.cgi</command></term>
|
---|
| 1003 | <listitem>
|
---|
| 1004 | <para>is the Java RMI client.</para>
|
---|
[49b50d4] | 1005 | <indexterm zone="openjdk java-rmi.cgi">
|
---|
[2c25a56] | 1006 | <primary sortas="b-java-rmi.cgi">java-rmi.cgi</primary>
|
---|
| 1007 | </indexterm>
|
---|
| 1008 | </listitem>
|
---|
| 1009 | </varlistentry>
|
---|
| 1010 |
|
---|
[49b50d4] | 1011 | <varlistentry id="jcmd">
|
---|
| 1012 | <term><command>jcmd</command></term>
|
---|
| 1013 | <listitem>
|
---|
| 1014 | <para>is a utility to send diagnostic command requests to a running
|
---|
| 1015 | Java Virtual Machine.</para>
|
---|
| 1016 | <indexterm zone="openjdk jcmd">
|
---|
| 1017 | <primary sortas="b-jcmd">jcmd</primary>
|
---|
| 1018 | </indexterm>
|
---|
| 1019 | </listitem>
|
---|
| 1020 | </varlistentry>
|
---|
| 1021 |
|
---|
| 1022 | <varlistentry id="jconsole">
|
---|
[2c25a56] | 1023 | <term><command>jconsole</command></term>
|
---|
| 1024 | <listitem>
|
---|
| 1025 | <para>is a graphical console tool to monitor and manage both
|
---|
| 1026 | local and remote Java applications and virtual machines.</para>
|
---|
[49b50d4] | 1027 | <indexterm zone="openjdk jconsole">
|
---|
[2c25a56] | 1028 | <primary sortas="b-jconsole">jconsole</primary>
|
---|
| 1029 | </indexterm>
|
---|
| 1030 | </listitem>
|
---|
| 1031 | </varlistentry>
|
---|
| 1032 |
|
---|
[49b50d4] | 1033 | <varlistentry id="jdb">
|
---|
[2c25a56] | 1034 | <term><command>jdb</command></term>
|
---|
| 1035 | <listitem>
|
---|
| 1036 | <para>is a simple command-line debugger for Java classes.</para>
|
---|
[49b50d4] | 1037 | <indexterm zone="openjdk jdb">
|
---|
[2c25a56] | 1038 | <primary sortas="b-jdb">jdb</primary>
|
---|
| 1039 | </indexterm>
|
---|
| 1040 | </listitem>
|
---|
| 1041 | </varlistentry>
|
---|
| 1042 |
|
---|
[49b50d4] | 1043 | <varlistentry id="jhat">
|
---|
[2c25a56] | 1044 | <term><command>jhat</command></term>
|
---|
| 1045 | <listitem>
|
---|
| 1046 | <para>parses a java heap dump file and allows viewing
|
---|
[4d180035] | 1047 | in a web browser.</para>
|
---|
[49b50d4] | 1048 | <indexterm zone="openjdk jhat">
|
---|
[2c25a56] | 1049 | <primary sortas="b-jhat">jhat</primary>
|
---|
| 1050 | </indexterm>
|
---|
| 1051 | </listitem>
|
---|
| 1052 | </varlistentry>
|
---|
| 1053 |
|
---|
[49b50d4] | 1054 | <varlistentry id="jinfo">
|
---|
[2c25a56] | 1055 | <term><command>jinfo</command></term>
|
---|
| 1056 | <listitem>
|
---|
| 1057 | <para>prints Java configuration information for a given Java
|
---|
| 1058 | process, core file, or a remote debug server.</para>
|
---|
[49b50d4] | 1059 | <indexterm zone="openjdk jinfo">
|
---|
[2c25a56] | 1060 | <primary sortas="b-jinfo">jinfo</primary>
|
---|
| 1061 | </indexterm>
|
---|
| 1062 | </listitem>
|
---|
| 1063 | </varlistentry>
|
---|
| 1064 |
|
---|
[49b50d4] | 1065 | <varlistentry id="jmap">
|
---|
[2c25a56] | 1066 | <term><command>jmap</command></term>
|
---|
| 1067 | <listitem>
|
---|
| 1068 | <para>prints shared object memory maps or heap memory details
|
---|
| 1069 | of a given process, core file, or a remote debug server.</para>
|
---|
[49b50d4] | 1070 | <indexterm zone="openjdk jmap">
|
---|
[2c25a56] | 1071 | <primary sortas="b-jmap">jmap</primary>
|
---|
| 1072 | </indexterm>
|
---|
| 1073 | </listitem>
|
---|
| 1074 | </varlistentry>
|
---|
| 1075 |
|
---|
[49b50d4] | 1076 | <varlistentry id="jps">
|
---|
[2c25a56] | 1077 | <term><command>jps</command></term>
|
---|
| 1078 | <listitem>
|
---|
| 1079 | <para>lists the instrumented JVMs on the target system.</para>
|
---|
[49b50d4] | 1080 | <indexterm zone="openjdk jps">
|
---|
[2c25a56] | 1081 | <primary sortas="b-jps">jps</primary>
|
---|
| 1082 | </indexterm>
|
---|
| 1083 | </listitem>
|
---|
| 1084 | </varlistentry>
|
---|
| 1085 |
|
---|
[49b50d4] | 1086 | <varlistentry id="jrunscript">
|
---|
[2c25a56] | 1087 | <term><command>jrunscript</command></term>
|
---|
| 1088 | <listitem>
|
---|
| 1089 | <para>is a command line script shell.</para>
|
---|
[49b50d4] | 1090 | <indexterm zone="openjdk jrunscript">
|
---|
[2c25a56] | 1091 | <primary sortas="b-jrunscript">jrunscript</primary>
|
---|
| 1092 | </indexterm>
|
---|
| 1093 | </listitem>
|
---|
| 1094 | </varlistentry>
|
---|
| 1095 |
|
---|
[49b50d4] | 1096 | <varlistentry id="jsadebugd">
|
---|
[2c25a56] | 1097 | <term><command>jsadebugd</command></term>
|
---|
| 1098 | <listitem>
|
---|
| 1099 | <para>attaches to a Java process or core file and acts as a
|
---|
| 1100 | debug server.</para>
|
---|
[49b50d4] | 1101 | <indexterm zone="openjdk jsadebugd">
|
---|
[2c25a56] | 1102 | <primary sortas="b-jsadebugd">jsadebugd</primary>
|
---|
| 1103 | </indexterm>
|
---|
| 1104 | </listitem>
|
---|
| 1105 | </varlistentry>
|
---|
| 1106 |
|
---|
[49b50d4] | 1107 | <varlistentry id="jstack">
|
---|
[2c25a56] | 1108 | <term><command>jstack</command></term>
|
---|
| 1109 | <listitem>
|
---|
| 1110 | <para>prints Java stack traces of Java threads for a given
|
---|
| 1111 | Java process, core file, or a remote debug server.</para>
|
---|
[49b50d4] | 1112 | <indexterm zone="openjdk jstack">
|
---|
[2c25a56] | 1113 | <primary sortas="b-jstack">jstack</primary>
|
---|
| 1114 | </indexterm>
|
---|
| 1115 | </listitem>
|
---|
| 1116 | </varlistentry>
|
---|
| 1117 |
|
---|
[49b50d4] | 1118 | <varlistentry id="jstat">
|
---|
[2c25a56] | 1119 | <term><command>jstat</command></term>
|
---|
| 1120 | <listitem>
|
---|
| 1121 | <para>displays performance statistics for an instrumented JVM.</para>
|
---|
[49b50d4] | 1122 | <indexterm zone="openjdk jstat">
|
---|
[2c25a56] | 1123 | <primary sortas="b-jstat">jstat</primary>
|
---|
| 1124 | </indexterm>
|
---|
| 1125 | </listitem>
|
---|
| 1126 | </varlistentry>
|
---|
| 1127 |
|
---|
[49b50d4] | 1128 | <varlistentry id="jstatd">
|
---|
[2c25a56] | 1129 | <term><command>jstatd</command></term>
|
---|
| 1130 | <listitem>
|
---|
| 1131 | <para>is an RMI server application that monitors for the creation
|
---|
| 1132 | and termination of instrumented JVMs.</para>
|
---|
[49b50d4] | 1133 | <indexterm zone="openjdk jstatd">
|
---|
[2c25a56] | 1134 | <primary sortas="b-jstatd">jstatd</primary>
|
---|
| 1135 | </indexterm>
|
---|
| 1136 | </listitem>
|
---|
| 1137 | </varlistentry>
|
---|
| 1138 |
|
---|
[49b50d4] | 1139 | <varlistentry id="keytool">
|
---|
[2c25a56] | 1140 | <term><command>keytool</command></term>
|
---|
| 1141 | <listitem>
|
---|
| 1142 | <para>is a key and certificate management utility.</para>
|
---|
[49b50d4] | 1143 | <indexterm zone="openjdk keytool">
|
---|
[2c25a56] | 1144 | <primary sortas="b-keytool">keytool</primary>
|
---|
| 1145 | </indexterm>
|
---|
| 1146 | </listitem>
|
---|
| 1147 | </varlistentry>
|
---|
| 1148 |
|
---|
[1c46121] | 1149 | <varlistentry id="mkcacerts">
|
---|
| 1150 | <term><command>mkcacerts</command></term>
|
---|
| 1151 | <listitem>
|
---|
| 1152 | <para> is a simple script to extract x509 certificates and create
|
---|
| 1153 | a JRE cacerts file using <command>keytool</command>.</para>
|
---|
| 1154 | <indexterm zone="openjdk mkcacerts">
|
---|
| 1155 | <primary sortas="b-mkcacerts">mkcacerts</primary>
|
---|
| 1156 | </indexterm>
|
---|
| 1157 | </listitem>
|
---|
| 1158 | </varlistentry>
|
---|
| 1159 |
|
---|
[49b50d4] | 1160 | <varlistentry id="native2ascii">
|
---|
[2c25a56] | 1161 | <term><command>native2ascii</command></term>
|
---|
| 1162 | <listitem>
|
---|
| 1163 | <para> converts files that contain non-supported character encoding
|
---|
| 1164 | into files containing Latin-1 or Unicode-encoded characters.</para>
|
---|
[49b50d4] | 1165 | <indexterm zone="openjdk native2ascii">
|
---|
[2c25a56] | 1166 | <primary sortas="b-native2ascii">native2ascii</primary>
|
---|
| 1167 | </indexterm>
|
---|
| 1168 | </listitem>
|
---|
| 1169 | </varlistentry>
|
---|
| 1170 |
|
---|
[49b50d4] | 1171 | <varlistentry id="orbd">
|
---|
[2c25a56] | 1172 | <term><command>orbd</command></term>
|
---|
| 1173 | <listitem>
|
---|
| 1174 | <para>is used to enable clients to transparently locate and invoke
|
---|
| 1175 | persistent objects on servers in the CORBA environment.</para>
|
---|
[49b50d4] | 1176 | <indexterm zone="openjdk orbd">
|
---|
[2c25a56] | 1177 | <primary sortas="b-orbd">orbd</primary>
|
---|
| 1178 | </indexterm>
|
---|
| 1179 | </listitem>
|
---|
| 1180 | </varlistentry>
|
---|
| 1181 |
|
---|
[49b50d4] | 1182 | <varlistentry id="pack200">
|
---|
[2c25a56] | 1183 | <term><command>pack200</command></term>
|
---|
| 1184 | <listitem>
|
---|
| 1185 | <para>is a Java application that transforms a jar file into a
|
---|
| 1186 | compressed pack200 file using the Java gzip compressor.</para>
|
---|
[49b50d4] | 1187 | <indexterm zone="openjdk pack200">
|
---|
[2c25a56] | 1188 | <primary sortas="b-pack200">pack200</primary>
|
---|
| 1189 | </indexterm>
|
---|
| 1190 | </listitem>
|
---|
| 1191 | </varlistentry>
|
---|
| 1192 |
|
---|
[49b50d4] | 1193 | <varlistentry id="policytool">
|
---|
[2c25a56] | 1194 | <term><command>policytool</command></term>
|
---|
| 1195 | <listitem>
|
---|
| 1196 | <para>creates and manages a policy file graphically.</para>
|
---|
[49b50d4] | 1197 | <indexterm zone="openjdk policytool">
|
---|
[2c25a56] | 1198 | <primary sortas="b-policytool">policytool</primary>
|
---|
| 1199 | </indexterm>
|
---|
| 1200 | </listitem>
|
---|
| 1201 | </varlistentry>
|
---|
| 1202 |
|
---|
[49b50d4] | 1203 | <varlistentry id="rmic">
|
---|
[2c25a56] | 1204 | <term><command>rmic</command></term>
|
---|
| 1205 | <listitem>
|
---|
| 1206 | <para>generates stub and skeleton class files for remote objects
|
---|
| 1207 | from the names of compiled Java classes that contain remote
|
---|
| 1208 | object implementations.</para>
|
---|
[49b50d4] | 1209 | <indexterm zone="openjdk rmic">
|
---|
[2c25a56] | 1210 | <primary sortas="b-rmic">rmic</primary>
|
---|
| 1211 | </indexterm>
|
---|
| 1212 | </listitem>
|
---|
| 1213 | </varlistentry>
|
---|
| 1214 |
|
---|
[49b50d4] | 1215 | <varlistentry id="rmid">
|
---|
[2c25a56] | 1216 | <term><command>rmid</command></term>
|
---|
| 1217 | <listitem>
|
---|
| 1218 | <para>starts the activation system daemon.</para>
|
---|
[49b50d4] | 1219 | <indexterm zone="openjdk rmid">
|
---|
[2c25a56] | 1220 | <primary sortas="b-rmid">rmid</primary>
|
---|
| 1221 | </indexterm>
|
---|
| 1222 | </listitem>
|
---|
| 1223 | </varlistentry>
|
---|
| 1224 |
|
---|
[49b50d4] | 1225 | <varlistentry id="rmiregistry">
|
---|
[2c25a56] | 1226 | <term><command>rmiregistry</command></term>
|
---|
| 1227 | <listitem>
|
---|
| 1228 | <para>creates and starts a remote object registry on the specified
|
---|
| 1229 | port on the current host.</para>
|
---|
[49b50d4] | 1230 | <indexterm zone="openjdk rmiregistry">
|
---|
[2c25a56] | 1231 | <primary sortas="b-rmiregistry">rmiregistry</primary>
|
---|
| 1232 | </indexterm>
|
---|
| 1233 | </listitem>
|
---|
| 1234 | </varlistentry>
|
---|
| 1235 |
|
---|
[49b50d4] | 1236 | <varlistentry id="schemagen">
|
---|
[2c25a56] | 1237 | <term><command>schemagen</command></term>
|
---|
| 1238 | <listitem>
|
---|
| 1239 | <para>is a Java XML binding schema generator.</para>
|
---|
[49b50d4] | 1240 | <indexterm zone="openjdk schemagen">
|
---|
[2c25a56] | 1241 | <primary sortas="b-schemagen">schemagen</primary>
|
---|
| 1242 | </indexterm>
|
---|
| 1243 | </listitem>
|
---|
| 1244 | </varlistentry>
|
---|
| 1245 |
|
---|
[49b50d4] | 1246 | <varlistentry id="serialver">
|
---|
[2c25a56] | 1247 | <term><command>serialver</command></term>
|
---|
| 1248 | <listitem>
|
---|
| 1249 | <para>returns the serialVersionUID for one or more classes in a
|
---|
| 1250 | form suitable for copying into an evolving class.</para>
|
---|
[49b50d4] | 1251 | <indexterm zone="openjdk serialver">
|
---|
[2c25a56] | 1252 | <primary sortas="b-serialver">serialver</primary>
|
---|
| 1253 | </indexterm>
|
---|
| 1254 | </listitem>
|
---|
| 1255 | </varlistentry>
|
---|
| 1256 |
|
---|
[49b50d4] | 1257 | <varlistentry id="servertool">
|
---|
[2c25a56] | 1258 | <term><command>servertool</command></term>
|
---|
| 1259 | <listitem>
|
---|
| 1260 | <para>provides an ease-of-use interface for application programmers
|
---|
| 1261 | to register, unregister, startup and shutdown a server.</para>
|
---|
[49b50d4] | 1262 | <indexterm zone="openjdk servertool">
|
---|
[2c25a56] | 1263 | <primary sortas="b-servertool">servertool</primary>
|
---|
| 1264 | </indexterm>
|
---|
| 1265 | </listitem>
|
---|
| 1266 | </varlistentry>
|
---|
| 1267 |
|
---|
[49b50d4] | 1268 | <varlistentry id="tnameserv">
|
---|
[2c25a56] | 1269 | <term><command>tnameserv</command></term>
|
---|
| 1270 | <listitem>
|
---|
| 1271 | <para>starts the Java IDL name server.</para>
|
---|
[49b50d4] | 1272 | <indexterm zone="openjdk tnameserv">
|
---|
[2c25a56] | 1273 | <primary sortas="b-tnameserv">tnameserv</primary>
|
---|
| 1274 | </indexterm>
|
---|
| 1275 | </listitem>
|
---|
| 1276 | </varlistentry>
|
---|
| 1277 |
|
---|
[49b50d4] | 1278 | <varlistentry id="unpack200">
|
---|
[2c25a56] | 1279 | <term><command>unpack200</command></term>
|
---|
| 1280 | <listitem>
|
---|
| 1281 | <para>is a native implementation that transforms a packed file
|
---|
| 1282 | produced by <application>pack200</application> into a jar
|
---|
| 1283 | file.</para>
|
---|
[49b50d4] | 1284 | <indexterm zone="openjdk unpack200">
|
---|
[2c25a56] | 1285 | <primary sortas="b-unpack200">unpack200</primary>
|
---|
| 1286 | </indexterm>
|
---|
| 1287 | </listitem>
|
---|
| 1288 | </varlistentry>
|
---|
| 1289 |
|
---|
[49b50d4] | 1290 | <varlistentry id="wsgen">
|
---|
[2c25a56] | 1291 | <term><command>wsgen</command></term>
|
---|
| 1292 | <listitem>
|
---|
| 1293 | <para>generates JAX-WS portable artifacts used in JAX-WS
|
---|
| 1294 | web services.</para>
|
---|
[49b50d4] | 1295 | <indexterm zone="openjdk wsgen">
|
---|
[2c25a56] | 1296 | <primary sortas="b-wsgen">wsgen</primary>
|
---|
| 1297 | </indexterm>
|
---|
| 1298 | </listitem>
|
---|
| 1299 | </varlistentry>
|
---|
| 1300 |
|
---|
[49b50d4] | 1301 | <varlistentry id="wsimport">
|
---|
[2c25a56] | 1302 | <term><command>wsimport</command></term>
|
---|
| 1303 | <listitem>
|
---|
| 1304 | <para>generates JAX-WS portable artifacts.</para>
|
---|
[49b50d4] | 1305 | <indexterm zone="openjdk wsimport">
|
---|
[2c25a56] | 1306 | <primary sortas="b-wsimport">wsimport</primary>
|
---|
| 1307 | </indexterm>
|
---|
| 1308 | </listitem>
|
---|
| 1309 | </varlistentry>
|
---|
| 1310 |
|
---|
[49b50d4] | 1311 | <varlistentry id="xjc">
|
---|
[2c25a56] | 1312 | <term><command>xjc</command></term>
|
---|
| 1313 | <listitem>
|
---|
| 1314 | <para>is a Java XML binding compiler.</para>
|
---|
[49b50d4] | 1315 | <indexterm zone="openjdk xjc">
|
---|
[2c25a56] | 1316 | <primary sortas="b-xjc">xjc</primary>
|
---|
| 1317 | </indexterm>
|
---|
| 1318 | </listitem>
|
---|
| 1319 | </varlistentry>
|
---|
| 1320 |
|
---|
| 1321 | </variablelist>
|
---|
| 1322 |
|
---|
| 1323 | </sect2>
|
---|
| 1324 |
|
---|
| 1325 | </sect1>
|
---|