source: general/prog/openjdk.xml@ 042f456

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 042f456 was 042f456, checked in by Pierre Labastie <pieere@…>, 9 years ago

Update to OpenJDK-1.8.0_25

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

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