source: general/prog/openjdk.xml@ 58cba7f0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 58cba7f0 was 58cba7f0, checked in by Pierre Labastie <pieere@…>, 9 years ago

Split JAVA configuration from the other pages, and rearrange order

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

  • Property mode set to 100644
File size: 47.3 KB
RevLine 
[2c25a56]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[0214fca]7 <!ENTITY ojdk-upd "31">
8 <!ENTITY ojdk-bd "b13">
[042f456]9 <!ENTITY ojdk-tarball "jdk8u&ojdk-upd;-&ojdk-bd;.tar.bz2">
10 <!ENTITY ojdk-repo "http://hg.openjdk.java.net/jdk8u/jdk8u">
11 <!ENTITY ojdk-download "&ojdk-repo;/archive/&ojdk-tarball;">
[49b50d4]12
[bb0c2ae0]13 <!ENTITY anduin-download "http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK-&openjdk-version;">
[49b50d4]14
[0214fca]15 <!ENTITY ojdk-md5sum "1e9071c62fd02a5b0c2874d9967b38e7">
[042f456]16 <!ENTITY ojdk-size "384 KB">
[49b50d4]17
[042f456]18 <!ENTITY corba-download "&anduin-download;/corba.tar.xz">
[0214fca]19 <!ENTITY corba-md5sum "35763069a8a69b1510d70d7e77a95fea">
20 <!ENTITY corba-size "915 KB">
[49b50d4]21
[042f456]22 <!ENTITY hotspot-download "&anduin-download;/hotspot.tar.xz">
[0214fca]23 <!ENTITY hotspot-md5sum "76deba8b0c7ee042df4cc441d29b1da0">
[042f456]24 <!ENTITY hotspot-size "6.2 MB">
[49b50d4]25
[042f456]26 <!ENTITY jaxp-download "&anduin-download;/jaxp.tar.xz">
[0214fca]27 <!ENTITY jaxp-md5sum "baf2f923fe29a7ceff6d0f7cb5331b9d">
[042f456]28 <!ENTITY jaxp-size "2.2 MB">
[49b50d4]29
[042f456]30 <!ENTITY jaxws-download "&anduin-download;/jaxws.tar.xz">
[0214fca]31 <!ENTITY jaxws-md5sum "5d99e16e146e920b5fa3360b26bb13a8">
32 <!ENTITY jaxws-size "2.2 MB">
[49b50d4]33
[042f456]34 <!ENTITY jdk-download "&anduin-download;/jdk.tar.xz">
[0214fca]35 <!ENTITY jdk-md5sum "79f0b2cd008497a8011bfbc2bd7f2b01">
[042f456]36 <!ENTITY jdk-size "36.2 MB">
[49b50d4]37
[042f456]38 <!ENTITY langtools-download "&anduin-download;/langtools.tar.xz">
[0214fca]39 <!ENTITY langtools-md5sum "19d9a21aa51e8afb80d0a35681c2467f">
[042f456]40 <!ENTITY langtools-size "2.0 MB">
[49b50d4]41
[042f456]42 <!ENTITY nashorn-download "&anduin-download;/nashorn.tar.xz">
[0214fca]43 <!ENTITY nashorn-md5sum "7ed0b17f2d925d3263a344b7fc746d24">
[042f456]44 <!ENTITY nashorn-size "1.9 MB">
[49b50d4]45
[042f456]46 <!ENTITY jtreg-version "4.1-b10">
47 <!ENTITY jtreg-download "https://adopt-openjdk.ci.cloudbees.com/job/jtreg/lastStableBuild/artifact/jtreg&jtreg-version;.tar.gz">
[0214fca]48 <!ENTITY jtreg-md5sum "2e112b5863c777426fbbbadeeb9972e1">
49<!-- The md5sum varies, because people at adopt-openjdk rebuild the package
50without changing the name of the tarball -->
51 <!ENTITY jtreg-size "2.6 MB">
[b1129a10]52
[042f456]53 <!ENTITY icedtea-web-download "http://icedtea.classpath.org/download/source/icedtea-web-&icedtea-web-version;.tar.gz">
54
[0214fca]55 <!ENTITY ojdk-buildsize "3.1 GB (additional 350 MB for tests)">
56 <!ENTITY ojdk-time "15 SBU (additional 126 SBU for tests)">
[2c25a56]57]>
58
[b1129a10]59<sect1 id="openjdk"
[042f456]60 xreflabel="OpenJDK-&openjdk-version;">
[49b50d4]61 <?dbhtml filename="openjdk.html" ?>
[2c25a56]62
63 <sect1info>
64 <othername>$LastChangedBy$</othername>
65 <date>$Date$</date>
66 </sect1info>
67
[042f456]68 <title>OpenJDK-&openjdk-version;</title>
[2c25a56]69
[49b50d4]70 <indexterm zone="openjdk">
71 <primary sortas="a-OpenJDK">OpenJDK</primary>
[2c25a56]72 </indexterm>
73
74 <sect2 role="package">
[042f456]75 <title>Introduction to OpenJDK</title>
76
77 <para>
78 <application>OpenJDK</application> is an open-source implementation
79 of Oracle's Java Standard Edition platform.
80 <application>OpenJDK</application> is useful for developing
81 <application>Java</application> programs, and provides a complete
82 runtime environment to run <application>Java</application> programs.
83 </para>
[2c25a56]84
[718593a]85 &lfs77_checked;
[efd03f7]86
[042f456]87 <note>
88 <para>
89 A browser plugin and webstart implementation, as well as a
90 pulseaudio sound backend are provided by the Icedtea project. To provide
91 a complete implementation, you will need to later install
92 <xref linkend="icedtea-web"/> and <xref linkend="icedtea-sound"/>.
93 </para>
94 </note>
95
96 <para>
97 OpenJDK is GPL'd code, with a special exception made for non-free
98 projects to use these classes in their proprietary products.
99 In similar fashion to the LGPL, which allows non-free programs to link
100 to libraries provided by free software, the
101 <ulink url="http://openjdk.java.net/legal/gplv2+ce.html">GNU
102 General Public License, version 2, with the Classpath Exception</ulink>
103 allows third party programs to use classes provided by free software
104 without the requirement that the third party software also be free. As
105 with the LGPL, any modifications made to the free software portions of a
106 third party application, must also be made freely available.
107 </para>
[2c25a56]108
109 <note>
[042f456]110 <para>
111 The <application>OpenJDK</application> source includes a very
112 thorough, open source test suite using the
113 <application>JTreg</application> test harness. The testing instructions
114 below allow to test the just built JDK for reasonable compatibility
115 with the proprietary Oracle JDK. However, in order for an independent
116 implementation to claim compatibility, it must pass a proprietary
117 <application>JCK/TCK</application> test suite. No claims of
118 compatibility, even partial compatibility, may be made without passing
119 an approved test suite.
120 </para>
121
122 <para>
123 Oracle does provide free community access, on a case by case basis, to
124 a closed toolkit to ensure 100% compatibility with its proprietary JDK.
125 Neither the binary version provided on the <xref linkend="java"/> page
126 nor the JVM built with the instructions below have been tested against
127 the <ulink
128 url="http://openjdk.java.net/groups/conformance/JckAccess/jck-access.html">
129 TCK</ulink>. Any version that is built using the instructions given,
130 cannot claim to be compatible with the proprietary JDK, without the
131 user applying for, and completing the compatibility tests themselves.
132 </para>
133
134 <para>
135 With that in mind, the binaries produced using this build method are
136 regularly tested against the TCK by the members listed on the site
137 above. In addition to the community license above, an educational,
138 non-commercial license for the TCK can be obtained from <ulink
139 url="http://www.oracle.com/technetwork/java/index-137188.html">
140 here</ulink>.
141 </para>
[2c25a56]142 </note>
143
144 <bridgehead renderas="sect3">Source Package Information</bridgehead>
145 <itemizedlist spacing="compact">
146 <listitem>
[042f456]147 <para>OpenJDK Root Package
[2c25a56]148 <simplelist>
[042f456]149 <member>Download: <ulink url="&ojdk-download;"/></member>
150 <member>Download MD5 sum: &ojdk-md5sum;</member>
151 <member>Download Size: &ojdk-size;</member>
[2c25a56]152 </simplelist>
153 </para>
154 </listitem>
[f533b0d]155 </itemizedlist>
156
[042f456]157 <para>
158 The following files may be downladed from the OpenJDK mercurial
159 repository using the addresses <ulink
[0214fca]160 url="&ojdk-repo;/&lt;component&gt;/archive/&ojdk-tarball;"/>,
[042f456]161 where &lt;component&gt; is the name of the JVM component (corba,
162 hostspot, and so on), but that involves renaming the downloaded files,
163 and renaming the extracted directories.
164 For convenience, the BLFS editors have made the files available in an LFS
165 website.
166 </para>
[f533b0d]167
168 <itemizedlist spacing="compact">
[2c25a56]169 <listitem>
[49b50d4]170 <para>Corba Source
171 <simplelist>
172 <member>Download: <ulink url="&corba-download;"/></member>
173 <member>Download MD5 sum: &corba-md5sum;</member>
174 <member>Download Size: &corba-size;</member>
175 </simplelist>
176 </para>
177 </listitem>
178 <listitem>
179 <para>Hotspot Source
[2c25a56]180 <simplelist>
[49b50d4]181 <member>Download: <ulink url="&hotspot-download;"/></member>
182 <member>Download MD5 sum: &hotspot-md5sum;</member>
183 <member>Download Size: &hotspot-size;</member>
[2c25a56]184 </simplelist>
185 </para>
186 </listitem>
187 <listitem>
188 <para>JAXP Source
189 <simplelist>
[49b50d4]190 <member>Download: <ulink url="&jaxp-download;"/></member>
191 <member>Download MD5 sum: &jaxp-md5sum;</member>
192 <member>Download Size: &jaxp-size;</member>
[2c25a56]193 </simplelist>
194 </para>
195 </listitem>
196 <listitem>
197 <para>JAXWS Source
198 <simplelist>
[49b50d4]199 <member>Download: <ulink url="&jaxws-download;"/></member>
200 <member>Download MD5 sum: &jaxws-md5sum;</member>
201 <member>Download Size: &jaxws-size;</member>
202 </simplelist>
203 </para>
204 </listitem>
205 <listitem>
206 <para>Langtools Source
207 <simplelist>
208 <member>Download: <ulink url="&langtools-download;"/></member>
209 <member>Download MD5 sum: &langtools-md5sum;</member>
210 <member>Download Size: &langtools-size;</member>
211 </simplelist>
212 </para>
213 </listitem>
214 <listitem>
[042f456]215 <para>JDK Source
[49b50d4]216 <simplelist>
217 <member>Download: <ulink url="&jdk-download;"/></member>
218 <member>Download MD5 sum: &jdk-md5sum;</member>
219 <member>Download Size: &jdk-size;</member>
[2c25a56]220 </simplelist>
221 </para>
222 </listitem>
223 <listitem>
[042f456]224 <para>Nashorn Source
225 <simplelist>
226 <member>Download: <ulink url="&nashorn-download;"/></member>
227 <member>Download MD5 sum: &nashorn-md5sum;</member>
228 <member>Download Size: &nashorn-size;</member>
229 </simplelist>
230 </para>
[2c25a56]231 </listitem>
232 <listitem>
[042f456]233 <para>Estimated disk space required: &ojdk-buildsize;</para>
234 </listitem>
235 <listitem>
236 <para>Estimated build time: &ojdk-time;</para>
[2c25a56]237 </listitem>
238 </itemizedlist>
239
240 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
241
242 <itemizedlist spacing='compact'>
243 <listitem>
[b1129a10]244 <para>
[042f456]245 Optional package (to get an icon for the
246 <filename>openjdk-8-policytool.desktop</filename> file):
247 <ulink url="&icedtea-web-download;"/>
[b1129a10]248 </para>
[870e4acf]249 </listitem>
[2c25a56]250 <listitem>
[b1129a10]251 <para>
[042f456]252 Optional test harness: <ulink url="&jtreg-download;"/>
[b1129a10]253 </para>
[2c25a56]254 </listitem>
255 </itemizedlist>
256
[49b50d4]257 <bridgehead renderas="sect3">OpenJDK Dependencies</bridgehead>
[bc00982]258
[92b1341]259 <bridgehead renderas="sect4">Required Dependencies</bridgehead>
[2e41a4f]260 <para role="required">
[042f456]261 An existing binary (<xref linkend="java"/> or an earlier built
[710fb64]262 version of this package),
[52a4df28]263 <xref linkend="alsa-lib"/>,
[92b1341]264 <xref linkend="cpio"/>,
[de930747]265 <xref linkend="cups"/>,
[2e41a4f]266 <xref linkend="unzip"/>,
[92b1341]267 <xref linkend="which"/>,
[042f456]268 <xref linkend="xorg7-lib"/>, and
[2e41a4f]269 <xref linkend="zip"/>
270 </para>
[2c25a56]271
[52a4df28]272 <bridgehead renderas="sect4">Recommended</bridgehead>
273 <para role="recommended">
[042f456]274 <xref linkend="cacerts"/> and
275 <xref linkend="giflib"/>
[52a4df28]276 </para>
277
[e01f402]278 <bridgehead renderas="sect4">Optional</bridgehead>
279 <para role="optional">
[042f456]280 <xref linkend="mercurial"/> and
281 <xref linkend="twm"/> (for the tests)
[e01f402]282 </para>
283
[2c25a56]284 <para condition="html" role="usernotes">User Notes:
[49b50d4]285 <ulink url="&blfs-wiki;/openjdk"/></para>
[2c25a56]286
287 </sect2>
288
289 <sect2 role="installation">
[49b50d4]290 <title>Installation of OpenJDK</title>
[2c25a56]291
[042f456]292 <para>
293 Unlike other packages in BLFS, the <application>OpenJDK</application>
294 source packages are distributed in multiple tar balls. You need to first
295 extract the source root from <filename>&ojdk-tarball;</filename>, change
296 into the extracted directory, then proceed with the following
297 instructions:
298 </para>
[2c25a56]299
[042f456]300<screen><userinput>tar -xf ../corba.tar.xz &amp;&amp;
301tar -xf ../hotspot.tar.xz &amp;&amp;
302tar -xf ../jaxp.tar.xz &amp;&amp;
303tar -xf ../jaxws.tar.xz &amp;&amp;
304tar -xf ../jdk.tar.xz &amp;&amp;
305tar -xf ../langtools.tar.xz &amp;&amp;
306tar -xf ../nashorn.tar.xz</userinput></screen>
[bc00982]307
[042f456]308 <para>
309 If you have downloaded the test harness, unpack it too:
310 </para>
[2c25a56]311
[042f456]312<screen><userinput>tar -xf ../jtreg&jtreg-version;.tar.gz</userinput></screen>
[49b50d4]313
[042f456]314<!--TODO: it might be better to add instructions for the cacerts file at
315this place and to use the switch "with-cacerts-file" -->
[49b50d4]316
[042f456]317 <para>
318 Fix an issue with the new (since 5.1.0) giflib API:
319 </para>
[6f01fd2e]320
[042f456]321<screen><userinput>sed -e 's/DGifCloseFile(gif/&amp;, NULL/' \
322 -e '/DGifOpen/s/c)/c, NULL)/' \
323 -i jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c</userinput></screen>
[2c25a56]324
[042f456]325 <para>
326 Fix a bug in a shell script used to set the flags for
327 <command>make</command>:
328 </para>
[bc00982]329
[042f456]330<screen><userinput>sed 's/\([ \t]\)\]\([^\]\)/\1I]\2/g' \
331 -i hotspot/make/linux/makefiles/adjust-mflags.sh</userinput></screen>
[bc00982]332
[042f456]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>
[49b50d4]343
[042f456]344 <para>
345 The build system does not support the <option>-j</option> switch in
346 <envar>MAKEFLAGS</envar>.
347 </para>
348 </note>
[870e4acf]349
[042f456]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 &amp;&amp;
354sh ./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 &amp;&amp;
361make DEBUG_BINARIES=true all</userinput></screen>
[870e4acf]362
[042f456]363 <para>
364 It seems that the test infrastructure of OpenJDK is a work in
365 progress, so that testing the newly built JVM involves several steps.
366 First, it is better to run the test suite in a frame buffer on a
367 different display, using Xvfb:
368 </para>
[49b50d4]369
[042f456]370<!-- Careful with the && below:
371"export DISPLAY=... && somecommand &" exports only DISPLAY to "somecommand"
372but not to the current environment, and
373"echo $! .... &&" does not echo the right PID. SO all && suppressed.-->
374<screen role='nodump'><userinput>if [ -n "$DISPLAY" ]; then
375 OLD_DISP=$DISPLAY
376fi
377export DISPLAY=:20
378nohup Xvfb $DISPLAY \
379 -fbdir $(pwd) \
380 -pixdepths 8 16 24 32 > Xvfb.out 2>&amp;1 &amp;
381echo $! > Xvfb.pid
382echo Waiting for Xvfb to initialize; sleep 1
383nohup twm -display $DISPLAY \
384 -f /dev/null > twm.out 2>&amp;1 &amp;
385echo $! > twm.pid
386echo Waiting for twm to initialize; sleep 1
387xhost +</userinput></screen>
[49b50d4]388
[042f456]389 <para>
390 Then, it is necessary to modify some files:
391 </para>
392
393<screen role='nodump'><userinput>echo -e "
394jdk_all = :jdk_core \\
395 :jdk_svc \\
396 :jdk_beans \\
397 :jdk_imageio \\
398 :jdk_sound \\
399 :jdk_sctp \\
400 com/sun/awt \\
401 javax/accessibility \\
402 javax/print \\
403 sun/pisces \\
404 com/sun/java/swing" >> jdk/test/TEST.groups &amp;&amp;
405sed -e 's/all:.*jck.*/all: jtreg/' \
406 -i langtools/test/Makefile</userinput></screen>
407
408 <para>
409 Some variables have to be set:
410 </para>
411
412<screen role='nodump'><userinput>JT_JAVA=$(type -p javac | sed 's@/bin.*@@') &amp;&amp;
413JT_HOME=$(pwd)/jtreg &amp;&amp;
414PRODUCT_HOME=$(echo $(pwd)/build/*/images/j2sdk-image)</userinput></screen>
415
416 <para>
417 The tests are run as follows:
418 </para>
419
[0214fca]420<!-- no && here either, because the first "make" may return an error -->
[042f456]421<screen role='nodump'><userinput>LANG=C make -k -C test \
422 JT_HOME=${JT_HOME} \
423 JT_JAVA=${JT_JAVA} \
[0214fca]424 PRODUCT_HOME=${PRODUCT_HOME} all
[042f456]425LANG=C ${JT_HOME}/linux/bin/jtreg -a -v:fail,error \
426 -dir:$(pwd)/hotspot/test \
427 -k:\!ignore \
428 -jdk:${PRODUCT_HOME} \
429 :jdk</userinput></screen>
430
431 <para>
432 The test results can be compared to
433 <ulink url="http://download.java.net/openjdk/testresults/8/">these
434 results</ulink>.
435 Finally, stop the virtual frame buffer and clean up:
436 </para>
437
438<screen role='nodump'><userinput>kill -9 `cat twm.pid` &amp;&amp;
[92b1341]439kill -9 `cat Xvfb.pid` &amp;&amp;
[042f456]440rm -f Xvfb.out twm.out &amp;&amp;
441rm -f Xvfb.pid twm.pid &amp;&amp;
442if [ -n "$OLD_DISP" ]; then
443 DISPLAY=$OLD_DISP
444fi</userinput></screen>
[92b1341]445
[2c25a56]446 <para>Install the package with the following commands as the
447 <systemitem class="username">root</systemitem> user:</para>
448
[042f456]449<screen role="root"><userinput>find build/*/images/j2sdk-image -iname \*.jar -exec chmod a+r {} \; &amp;&amp;
450chmod a+r build/*/images/j2sdk-image/lib/ct.sym &amp;&amp;
451find build/*/images/j2sdk-image -iname \*.diz -delete &amp;&amp;
452find build/*/images/j2sdk-image -iname \*.debuginfo -delete &amp;&amp;
453cp -R build/*/images/j2sdk-image /opt/OpenJDK-&openjdk-version; &amp;&amp;
[49b50d4]454chown -R root:root /opt/OpenJDK-&openjdk-version;</userinput></screen>
[2c25a56]455
[58cba7f0]456 <para>
457 There are now two <application>OpenJDK</application> SDKs installed
458 in <filename class="directory">/opt</filename>. You should decide on
459 which one you would like to use as the default. Normally, you would opt
460 for the just installed <application>OpenJDK</application>. If so, do
461 the following as the <systemitem class="username">root</systemitem>
462 user:
463 </para>
464
465<screen role="root"><userinput>ln -v -nsf OpenJDK-&openjdk-version; /opt/jdk</userinput></screen>
466
[cc2a12d]467 <para>If desired, you may install a .desktop file corresponding to an entry
468 in a desktop menu for <command>policytool</command>. First, you need to
469 obtain an icon from <xref linkend="icedtea-web"/>:</para>
[5a78947]470
[b1129a10]471<screen><userinput>tar -xf ../icedtea-web-&icedtea-web-version;.tar.gz \
[cc2a12d]472 icedtea-web-&icedtea-web-version;/javaws.png \
473 --strip-components=1</userinput></screen>
[5a78947]474
475 <para>Now, as <systemitem class="username">root</systemitem> user:</para>
[76df61c]476
[b1129a10]477<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
478
[042f456]479cat &gt; /usr/share/applications/openjdk-8-policytool.desktop &lt;&lt; "EOF" &amp;&amp;
[76df61c]480<literal>[Desktop Entry]
[042f456]481Name=OpenJDK Java Policy Tool
482Name[pt_BR]=OpenJDK Java - Ferramenta de Pol&#237;tica
483Comment=OpenJDK Java Policy Tool
484Comment[pt_BR]=OpenJDK Java - Ferramenta de Pol&#237;tica
[76df61c]485Exec=/opt/jdk/bin/policytool
486Terminal=false
487Type=Application
488Icon=javaws
489Categories=Settings;</literal>
490EOF
491
[5a78947]492install -v -Dm0644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen>
493
[b1129a10]494 <para>The choice of pt_BR is just an example. You can add any translation
495 by adding lines corresponding to your locale, e.g. for fr_FR,
[88b2f2ef]496 <quote>Name[fr_FR]=</quote> and <quote>Comment[fr_FR]=</quote> with the
497 appropriate text as values.</para>
[76df61c]498
[2c25a56]499 </sect2>
500
501 <sect2 role="commands">
502 <title>Command Explanations</title>
503
[042f456]504 <para>
505 <command>sh configure...</command>: the top level
506 <filename>configure</filename> is a wrapper around the autotools one.
507 It is not executable and must be run through <command>sh</command>.
508 </para>
[2c25a56]509
[042f456]510 <para>
511 <option>--with-boot-jdk</option>: This switch provides the
512 location of the temporary <application>JDK</application>. It is normally
513 not needed if <command>java</command> is found in the <envar>PATH</envar>.
514 </para>
[2c25a56]515
[042f456]516 <para>
517 <parameter>--with-update-version</parameter>: Currently, the build
518 system does not include the update number in the version string. It has
519 to be specified here.
520 </para>
[5292423]521
[042f456]522 <para>
523 <parameter>--with-build-number</parameter>: Again, the build
524 system does not include the build number in the version string. It has
525 to be specified here too.
526 </para>
[5292423]527
[042f456]528 <para>
529 <parameter>--with-milestone</parameter>: Used to customize the
530 version string.
531 </para>
[52a4df28]532
[042f456]533 <para>
534 <parameter>--enable-unlimited-crypto</parameter>: Because of limitations
535 on the usage of cryptography in some countries, there is the possibility
536 to limit the size of encryption keys and the use of some algorithms in a
537 policy file. This switch allows to ship a policy file with no
538 restriction. It is the responsability of the user to ensure proper
539 adherence to the law.
540 </para>
[e01f402]541
[042f456]542 <para>
543 <parameter>--with-zlib=system, --with-giflib=system</parameter>: Allows
544 to use the system libraries instead of the bundled ones.
545 </para>
[c770e18]546
[042f456]547 <para>
548 <option>--with-jobs=N</option>: Allows to set the number
549 of jobs for <command>make</command> equal to N. The default is the
550 result of a calculation involving the available memory and the number
[0214fca]551 of processors. Note that even if you specify N=1, some parallelization
552 may be used during the build. The SBU given above are with parallel jobs
553 disabled, on a single processor, single core, virtual machine.
[042f456]554 </para>
555
556 <para>
557 <option>--with-cacerts-file=...</option>: Specifies where to find a
558 <filename>cacerts</filename> file. Otherwise, an empty one is created.
559 You can get it from an earlier version of the package, or using the
560 script below to generate one.
561 </para>
562 <para>
563 <command>make DEBUG_BINARIES=true all</command>: The build fails
564 if DEBUG_BINARIES is not set to true.
565 </para>
566
567 <para>
568 <command>find ... -iname '*.jar' -exec chmod a+r {} \;</command>
569 and following line: Fix permission in some library files, in order to
570 allow all users to access them.
571 </para>
572
573 <para>
574 <command>find ... -iname '*.diz' -delete</command>: This command and the
575 the next one remove redundant files.
576 </para>
[5889b848]577
[2c25a56]578 </sect2>
579
[b1129a10]580 <sect2 role="configuration"
581 id="openjdk-config"
582 xreflabel="Configuring OpenJDK">
[49b50d4]583 <title>Configuring OpenJDK</title>
[2c25a56]584
585 <sect3>
586 <title>Configuration Information</title>
587
[58cba7f0]588 <para>Normally, the JAVA environment has been configured after installing
589 the binary version, and can be used with the just built package as well.
590 Review <xref linkend="ojdk-conf"/> in case you want to modify
591 something.</para>
[2c25a56]592
[cc2a12d]593 <para>To test if the man pages are correctly installed, issue
594 <command>source /etc/profile</command> and <command>man java</command> to
595 display the respective man page.</para>
[76df61c]596
[2c25a56]597 </sect3>
598
[58cba7f0]599 <sect3 id='ojdk-certs' xreflabel='JRE Certificate Authorithy Certificates'>
[b1129a10]600 <title>Install or update the JRE Certificate Authority Certificates
601 (cacerts) file</title>
[8b9034a]602
[042f456]603 <para>
604 Use the following procedure to install the
605 <filename>cacerts</filename> or to generate a new one if
606 <xref linkend="cacerts"/> have been updated. First, if it is not
607 already present, generate the <command>mkcacerts</command> script
608 as the <systemitem class="username">root</systemitem> user:
609 </para>
[8b9034a]610
611<screen role="root"><userinput>cat &gt; /opt/jdk/bin/mkcacerts &lt;&lt; "EOF"
612<literal>#!/bin/sh
613# Simple script to extract x509 certificates and create a JRE cacerts file.
614
615function 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
661function 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
671function 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
698function 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]722CAFILE=""
723CADIR=""
724OUTFILE=""
725OPENSSL=""
726KEYTOOL=""
727certdate=""
728date=""
729today=$( date +%Y%m%d )
730
731# Process command line arguments
732get_args ${@}
733
734# Handle common errors
735if 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
740fi
741
742if 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
747fi
748
749if 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
754fi
755
756if 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
761fi
762
763if 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
768fi
769
770# Get on with the work
771
772# If using a CAFILE, split it into individual files in a temp directory
773if 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
794fi
795
796# Write the output file
797for cert in `find "${CADIR}" -type f -name "*.pem" -o -name "*.crt"`
798do
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}"
820done
821
822if test "${TEMPDIR}x" != "x" ; then
823 rm -rf "${TEMPDIR}"
824fi
825exit 0</literal>
826EOF
827
828chmod -c 0755 /opt/jdk/bin/mkcacerts</userinput></screen>
[042f456]829
[8b9034a]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
[5941d6e1]849 <para>Use the following commands to check if the
[a727127f]850 <filename>cacerts</filename> file has been successfully installed:</para>
851
852<screen role="root"><userinput>cd /opt/jdk
[5941d6e1]853bin/keytool -list -keystore jre/lib/security/cacerts</userinput></screen>
854
855 <para>At the prompt "Enter keystore password:", press the "Enter" key if
856 there is no keystore password defined. If the <filename>cacerts</filename>
857 file was installed correctly, you will see a list of the certificates with
858 related information for each one. If not, you need to reinstall
859 them.</para>
860
[8b9034a]861 </sect3>
862
[2c25a56]863 </sect2>
864
865 <sect2 role="content">
866 <title>Contents</title>
867
868 <segmentedlist>
869 <segtitle>Installed Programs</segtitle>
870 <segtitle>Installed Libraries</segtitle>
871 <segtitle>Installed Directory</segtitle>
872
873 <seglistitem>
[042f456]874 <seg>appletviewer, extcheck, idlj, jar,
[2c25a56]875 jarsigner, java, javac, javadoc, javah, javap, java-rmi.cgi,
[042f456]876 jcmd, jconsole, jdb, jdeps, jhat, jinfo, jjs, jmap, jps,
[1c46121]877 jrunscript, jsadebugd, jstack, jstat, jstatd, keytool, mkcacerts,
[2c25a56]878 native2ascii, orbd, pack200, policytool, rmic, rmid, rmiregistry,
879 schemagen, serialver, servertool, tnameserv, unpack200,
880 wsgen, wsimport, and xjc</seg>
[4d180035]881 <seg>/opt/OpenJDK-&openjdk-version;/lib/*, and
882 /opt/OpenJDK-&openjdk-version;/jre/lib/*</seg>
883 <seg>/opt/OpenJDK-&openjdk-version;</seg>
[2c25a56]884 </seglistitem>
885 </segmentedlist>
886
887 <variablelist>
888 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
889 <?dbfo list-presentation="list"?>
890 <?dbhtml list-presentation="table"?>
891
[49b50d4]892 <varlistentry id="appletviewer">
893 <term><command>appletviewer</command></term>
894 <listitem>
[042f456]895 <para>allows to run applets outside of a web browser.</para>
[49b50d4]896 <indexterm zone="openjdk appletviewer">
897 <primary sortas="b-appletviewer">appletviewer</primary>
898 </indexterm>
899 </listitem>
900 </varlistentry>
901
902 <varlistentry id="extcheck">
[2c25a56]903 <term><command>extcheck</command></term>
904 <listitem>
905 <para>checks a specified jar file for title and version conflicts
[49b50d4]906 with any extensions installed in the
907 <application>OpenJDK</application> software.</para>
908 <indexterm zone="openjdk extcheck">
[2c25a56]909 <primary sortas="b-extcheck">extcheck</primary>
910 </indexterm>
911 </listitem>
912 </varlistentry>
913
[49b50d4]914 <varlistentry id="idlj">
[2c25a56]915 <term><command>idlj</command></term>
916 <listitem>
917 <para>generates Java bindings from a given IDL file.</para>
[49b50d4]918 <indexterm zone="openjdk idlj">
[2c25a56]919 <primary sortas="b-idlj">idlj</primary>
920 </indexterm>
921 </listitem>
922 </varlistentry>
923
[49b50d4]924 <varlistentry id="jar">
[2c25a56]925 <term><command>jar</command></term>
926 <listitem>
927 <para>combines multiple files into a single jar archive.</para>
[49b50d4]928 <indexterm zone="openjdk jar">
[2c25a56]929 <primary sortas="b-jar">jar</primary>
930 </indexterm>
931 </listitem>
932 </varlistentry>
933
[49b50d4]934 <varlistentry id="jarsigner">
[2c25a56]935 <term><command>jarsigner</command></term>
936 <listitem>
937 <para>signs jar files and verifies the signatures and integrity
938 of a signed jar file.</para>
[49b50d4]939 <indexterm zone="openjdk jarsigner">
[2c25a56]940 <primary sortas="b-jarsigner">jarsigner</primary>
941 </indexterm>
942 </listitem>
943 </varlistentry>
944
[784a1a7f]945 <varlistentry id="java-prog">
[2c25a56]946 <term><command>java</command></term>
947 <listitem>
948 <para>launches a Java application by starting a Java runtime
949 environment, loading a specified class and invoking its main
950 method.</para>
[784a1a7f]951 <indexterm zone="openjdk java-prog">
952 <primary sortas="b-java-prog">java</primary>
[2c25a56]953 </indexterm>
954 </listitem>
955 </varlistentry>
956
[49b50d4]957 <varlistentry id="javac">
[2c25a56]958 <term><command>javac</command></term>
959 <listitem>
960 <para>reads class and interface definitions, written in the
961 Java programming language, and compiles them into bytecode
962 class files.</para>
[49b50d4]963 <indexterm zone="openjdk javac">
[2c25a56]964 <primary sortas="b-javac">javac</primary>
965 </indexterm>
966 </listitem>
967 </varlistentry>
968
[49b50d4]969 <varlistentry id="javadoc">
[2c25a56]970 <term><command>javadoc</command></term>
971 <listitem>
972 <para>parses the declarations and documentation comments in a
973 set of Java source files and produces a corresponding set of
[042f456]974 HTML pages describing the classes, interfaces, constructors,
[2c25a56]975 methods, and fields.</para>
[49b50d4]976 <indexterm zone="openjdk javadoc">
[2c25a56]977 <primary sortas="b-javadoc">javadoc</primary>
978 </indexterm>
979 </listitem>
980 </varlistentry>
981
[49b50d4]982 <varlistentry id="javah">
[2c25a56]983 <term><command>javah</command></term>
984 <listitem>
985 <para>generates C header and source files
986 that are needed to implement native methods.</para>
[49b50d4]987 <indexterm zone="openjdk javah">
[2c25a56]988 <primary sortas="b-javah">javah</primary>
989 </indexterm>
990 </listitem>
991 </varlistentry>
992
[49b50d4]993 <varlistentry id="javap">
[2c25a56]994 <term><command>javap</command></term>
995 <listitem>
996 <para>disassembles a Java class file.</para>
[49b50d4]997 <indexterm zone="openjdk javap">
[2c25a56]998 <primary sortas="b-javap">javap</primary>
999 </indexterm>
1000 </listitem>
1001 </varlistentry>
1002
[49b50d4]1003 <varlistentry id="java-rmi.cgi">
[2c25a56]1004 <term><command>java-rmi.cgi</command></term>
1005 <listitem>
1006 <para>is the Java RMI client.</para>
[49b50d4]1007 <indexterm zone="openjdk java-rmi.cgi">
[2c25a56]1008 <primary sortas="b-java-rmi.cgi">java-rmi.cgi</primary>
1009 </indexterm>
1010 </listitem>
1011 </varlistentry>
1012
[49b50d4]1013 <varlistentry id="jcmd">
1014 <term><command>jcmd</command></term>
1015 <listitem>
1016 <para>is a utility to send diagnostic command requests to a running
1017 Java Virtual Machine.</para>
1018 <indexterm zone="openjdk jcmd">
1019 <primary sortas="b-jcmd">jcmd</primary>
1020 </indexterm>
1021 </listitem>
1022 </varlistentry>
1023
1024 <varlistentry id="jconsole">
[2c25a56]1025 <term><command>jconsole</command></term>
1026 <listitem>
1027 <para>is a graphical console tool to monitor and manage both
1028 local and remote Java applications and virtual machines.</para>
[49b50d4]1029 <indexterm zone="openjdk jconsole">
[2c25a56]1030 <primary sortas="b-jconsole">jconsole</primary>
1031 </indexterm>
1032 </listitem>
1033 </varlistentry>
1034
[49b50d4]1035 <varlistentry id="jdb">
[2c25a56]1036 <term><command>jdb</command></term>
1037 <listitem>
1038 <para>is a simple command-line debugger for Java classes.</para>
[49b50d4]1039 <indexterm zone="openjdk jdb">
[2c25a56]1040 <primary sortas="b-jdb">jdb</primary>
1041 </indexterm>
1042 </listitem>
1043 </varlistentry>
1044
[042f456]1045 <varlistentry id="jdeps">
1046 <term><command>jdeps</command></term>
1047 <listitem>
1048 <para>shows the package-level or class-level dependencies of
1049 Java class files.</para>
1050 <indexterm zone="openjdk jdeps">
1051 <primary sortas="b-jdeps">jdeps</primary>
1052 </indexterm>
1053 </listitem>
1054 </varlistentry>
1055
[49b50d4]1056 <varlistentry id="jhat">
[2c25a56]1057 <term><command>jhat</command></term>
1058 <listitem>
[042f456]1059 <para>parses a java heap dump file and allows viewing it
[4d180035]1060 in a web browser.</para>
[49b50d4]1061 <indexterm zone="openjdk jhat">
[2c25a56]1062 <primary sortas="b-jhat">jhat</primary>
1063 </indexterm>
1064 </listitem>
1065 </varlistentry>
1066
[49b50d4]1067 <varlistentry id="jinfo">
[2c25a56]1068 <term><command>jinfo</command></term>
1069 <listitem>
1070 <para>prints Java configuration information for a given Java
1071 process, core file, or a remote debug server.</para>
[49b50d4]1072 <indexterm zone="openjdk jinfo">
[2c25a56]1073 <primary sortas="b-jinfo">jinfo</primary>
1074 </indexterm>
[042f456]1075 </listitem>
1076 </varlistentry>
1077
1078 <varlistentry id="jjs">
1079 <term><command>jjs</command></term>
1080 <listitem>
1081 <para>is a command-line tool used to invoke the Nashorn engine. It
1082 can be used to interpret one or several script files, or to run
1083 an interactive shell.</para>
1084 <indexterm zone="openjdk jjs">
1085 <primary sortas="b-jjs">jjs</primary>
1086 </indexterm>
[2c25a56]1087 </listitem>
1088 </varlistentry>
1089
[49b50d4]1090 <varlistentry id="jmap">
[2c25a56]1091 <term><command>jmap</command></term>
1092 <listitem>
1093 <para>prints shared object memory maps or heap memory details
1094 of a given process, core file, or a remote debug server.</para>
[49b50d4]1095 <indexterm zone="openjdk jmap">
[2c25a56]1096 <primary sortas="b-jmap">jmap</primary>
1097 </indexterm>
1098 </listitem>
1099 </varlistentry>
1100
[49b50d4]1101 <varlistentry id="jps">
[2c25a56]1102 <term><command>jps</command></term>
1103 <listitem>
1104 <para>lists the instrumented JVMs on the target system.</para>
[49b50d4]1105 <indexterm zone="openjdk jps">
[2c25a56]1106 <primary sortas="b-jps">jps</primary>
1107 </indexterm>
1108 </listitem>
1109 </varlistentry>
1110
[49b50d4]1111 <varlistentry id="jrunscript">
[2c25a56]1112 <term><command>jrunscript</command></term>
1113 <listitem>
1114 <para>is a command line script shell.</para>
[49b50d4]1115 <indexterm zone="openjdk jrunscript">
[2c25a56]1116 <primary sortas="b-jrunscript">jrunscript</primary>
1117 </indexterm>
1118 </listitem>
1119 </varlistentry>
1120
[49b50d4]1121 <varlistentry id="jsadebugd">
[2c25a56]1122 <term><command>jsadebugd</command></term>
1123 <listitem>
1124 <para>attaches to a Java process or core file and acts as a
1125 debug server.</para>
[49b50d4]1126 <indexterm zone="openjdk jsadebugd">
[2c25a56]1127 <primary sortas="b-jsadebugd">jsadebugd</primary>
1128 </indexterm>
1129 </listitem>
1130 </varlistentry>
1131
[49b50d4]1132 <varlistentry id="jstack">
[2c25a56]1133 <term><command>jstack</command></term>
1134 <listitem>
1135 <para>prints Java stack traces of Java threads for a given
1136 Java process, core file, or a remote debug server.</para>
[49b50d4]1137 <indexterm zone="openjdk jstack">
[2c25a56]1138 <primary sortas="b-jstack">jstack</primary>
1139 </indexterm>
1140 </listitem>
1141 </varlistentry>
1142
[49b50d4]1143 <varlistentry id="jstat">
[2c25a56]1144 <term><command>jstat</command></term>
1145 <listitem>
1146 <para>displays performance statistics for an instrumented JVM.</para>
[49b50d4]1147 <indexterm zone="openjdk jstat">
[2c25a56]1148 <primary sortas="b-jstat">jstat</primary>
1149 </indexterm>
1150 </listitem>
1151 </varlistentry>
1152
[49b50d4]1153 <varlistentry id="jstatd">
[2c25a56]1154 <term><command>jstatd</command></term>
1155 <listitem>
1156 <para>is an RMI server application that monitors for the creation
1157 and termination of instrumented JVMs.</para>
[49b50d4]1158 <indexterm zone="openjdk jstatd">
[2c25a56]1159 <primary sortas="b-jstatd">jstatd</primary>
1160 </indexterm>
1161 </listitem>
1162 </varlistentry>
1163
[49b50d4]1164 <varlistentry id="keytool">
[2c25a56]1165 <term><command>keytool</command></term>
1166 <listitem>
1167 <para>is a key and certificate management utility.</para>
[49b50d4]1168 <indexterm zone="openjdk keytool">
[2c25a56]1169 <primary sortas="b-keytool">keytool</primary>
1170 </indexterm>
1171 </listitem>
1172 </varlistentry>
1173
[1c46121]1174 <varlistentry id="mkcacerts">
1175 <term><command>mkcacerts</command></term>
1176 <listitem>
1177 <para> is a simple script to extract x509 certificates and create
1178 a JRE cacerts file using <command>keytool</command>.</para>
1179 <indexterm zone="openjdk mkcacerts">
1180 <primary sortas="b-mkcacerts">mkcacerts</primary>
1181 </indexterm>
1182 </listitem>
1183 </varlistentry>
1184
[49b50d4]1185 <varlistentry id="native2ascii">
[2c25a56]1186 <term><command>native2ascii</command></term>
1187 <listitem>
1188 <para> converts files that contain non-supported character encoding
1189 into files containing Latin-1 or Unicode-encoded characters.</para>
[49b50d4]1190 <indexterm zone="openjdk native2ascii">
[2c25a56]1191 <primary sortas="b-native2ascii">native2ascii</primary>
1192 </indexterm>
1193 </listitem>
1194 </varlistentry>
1195
[49b50d4]1196 <varlistentry id="orbd">
[2c25a56]1197 <term><command>orbd</command></term>
1198 <listitem>
1199 <para>is used to enable clients to transparently locate and invoke
1200 persistent objects on servers in the CORBA environment.</para>
[49b50d4]1201 <indexterm zone="openjdk orbd">
[2c25a56]1202 <primary sortas="b-orbd">orbd</primary>
1203 </indexterm>
1204 </listitem>
1205 </varlistentry>
1206
[49b50d4]1207 <varlistentry id="pack200">
[2c25a56]1208 <term><command>pack200</command></term>
1209 <listitem>
1210 <para>is a Java application that transforms a jar file into a
1211 compressed pack200 file using the Java gzip compressor.</para>
[49b50d4]1212 <indexterm zone="openjdk pack200">
[2c25a56]1213 <primary sortas="b-pack200">pack200</primary>
1214 </indexterm>
1215 </listitem>
1216 </varlistentry>
1217
[49b50d4]1218 <varlistentry id="policytool">
[2c25a56]1219 <term><command>policytool</command></term>
1220 <listitem>
1221 <para>creates and manages a policy file graphically.</para>
[49b50d4]1222 <indexterm zone="openjdk policytool">
[2c25a56]1223 <primary sortas="b-policytool">policytool</primary>
1224 </indexterm>
1225 </listitem>
1226 </varlistentry>
1227
[49b50d4]1228 <varlistentry id="rmic">
[2c25a56]1229 <term><command>rmic</command></term>
1230 <listitem>
1231 <para>generates stub and skeleton class files for remote objects
1232 from the names of compiled Java classes that contain remote
1233 object implementations.</para>
[49b50d4]1234 <indexterm zone="openjdk rmic">
[2c25a56]1235 <primary sortas="b-rmic">rmic</primary>
1236 </indexterm>
1237 </listitem>
1238 </varlistentry>
1239
[49b50d4]1240 <varlistentry id="rmid">
[2c25a56]1241 <term><command>rmid</command></term>
1242 <listitem>
1243 <para>starts the activation system daemon.</para>
[49b50d4]1244 <indexterm zone="openjdk rmid">
[2c25a56]1245 <primary sortas="b-rmid">rmid</primary>
1246 </indexterm>
1247 </listitem>
1248 </varlistentry>
1249
[49b50d4]1250 <varlistentry id="rmiregistry">
[2c25a56]1251 <term><command>rmiregistry</command></term>
1252 <listitem>
1253 <para>creates and starts a remote object registry on the specified
1254 port on the current host.</para>
[49b50d4]1255 <indexterm zone="openjdk rmiregistry">
[2c25a56]1256 <primary sortas="b-rmiregistry">rmiregistry</primary>
1257 </indexterm>
1258 </listitem>
1259 </varlistentry>
1260
[49b50d4]1261 <varlistentry id="schemagen">
[2c25a56]1262 <term><command>schemagen</command></term>
1263 <listitem>
1264 <para>is a Java XML binding schema generator.</para>
[49b50d4]1265 <indexterm zone="openjdk schemagen">
[2c25a56]1266 <primary sortas="b-schemagen">schemagen</primary>
1267 </indexterm>
1268 </listitem>
1269 </varlistentry>
1270
[49b50d4]1271 <varlistentry id="serialver">
[2c25a56]1272 <term><command>serialver</command></term>
1273 <listitem>
1274 <para>returns the serialVersionUID for one or more classes in a
1275 form suitable for copying into an evolving class.</para>
[49b50d4]1276 <indexterm zone="openjdk serialver">
[2c25a56]1277 <primary sortas="b-serialver">serialver</primary>
1278 </indexterm>
1279 </listitem>
1280 </varlistentry>
1281
[49b50d4]1282 <varlistentry id="servertool">
[2c25a56]1283 <term><command>servertool</command></term>
1284 <listitem>
1285 <para>provides an ease-of-use interface for application programmers
1286 to register, unregister, startup and shutdown a server.</para>
[49b50d4]1287 <indexterm zone="openjdk servertool">
[2c25a56]1288 <primary sortas="b-servertool">servertool</primary>
1289 </indexterm>
1290 </listitem>
1291 </varlistentry>
1292
[49b50d4]1293 <varlistentry id="tnameserv">
[2c25a56]1294 <term><command>tnameserv</command></term>
1295 <listitem>
1296 <para>starts the Java IDL name server.</para>
[49b50d4]1297 <indexterm zone="openjdk tnameserv">
[2c25a56]1298 <primary sortas="b-tnameserv">tnameserv</primary>
1299 </indexterm>
1300 </listitem>
1301 </varlistentry>
1302
[49b50d4]1303 <varlistentry id="unpack200">
[2c25a56]1304 <term><command>unpack200</command></term>
1305 <listitem>
1306 <para>is a native implementation that transforms a packed file
1307 produced by <application>pack200</application> into a jar
1308 file.</para>
[49b50d4]1309 <indexterm zone="openjdk unpack200">
[2c25a56]1310 <primary sortas="b-unpack200">unpack200</primary>
1311 </indexterm>
1312 </listitem>
1313 </varlistentry>
1314
[49b50d4]1315 <varlistentry id="wsgen">
[2c25a56]1316 <term><command>wsgen</command></term>
1317 <listitem>
1318 <para>generates JAX-WS portable artifacts used in JAX-WS
1319 web services.</para>
[49b50d4]1320 <indexterm zone="openjdk wsgen">
[2c25a56]1321 <primary sortas="b-wsgen">wsgen</primary>
1322 </indexterm>
1323 </listitem>
1324 </varlistentry>
1325
[49b50d4]1326 <varlistentry id="wsimport">
[2c25a56]1327 <term><command>wsimport</command></term>
1328 <listitem>
1329 <para>generates JAX-WS portable artifacts.</para>
[49b50d4]1330 <indexterm zone="openjdk wsimport">
[2c25a56]1331 <primary sortas="b-wsimport">wsimport</primary>
1332 </indexterm>
1333 </listitem>
1334 </varlistentry>
1335
[49b50d4]1336 <varlistentry id="xjc">
[2c25a56]1337 <term><command>xjc</command></term>
1338 <listitem>
1339 <para>is a Java XML binding compiler.</para>
[49b50d4]1340 <indexterm zone="openjdk xjc">
[2c25a56]1341 <primary sortas="b-xjc">xjc</primary>
1342 </indexterm>
1343 </listitem>
1344 </varlistentry>
1345
1346 </variablelist>
1347
1348 </sect2>
1349
1350</sect1>
Note: See TracBrowser for help on using the repository browser.