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 "31">
|
---|
8 | <!ENTITY ojdk-bd "b13">
|
---|
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;">
|
---|
14 |
|
---|
15 | <!ENTITY ojdk-md5sum "1e9071c62fd02a5b0c2874d9967b38e7">
|
---|
16 | <!ENTITY ojdk-size "384 KB">
|
---|
17 |
|
---|
18 | <!ENTITY corba-download "&anduin-download;/corba.tar.xz">
|
---|
19 | <!ENTITY corba-md5sum "35763069a8a69b1510d70d7e77a95fea">
|
---|
20 | <!ENTITY corba-size "915 KB">
|
---|
21 |
|
---|
22 | <!ENTITY hotspot-download "&anduin-download;/hotspot.tar.xz">
|
---|
23 | <!ENTITY hotspot-md5sum "76deba8b0c7ee042df4cc441d29b1da0">
|
---|
24 | <!ENTITY hotspot-size "6.2 MB">
|
---|
25 |
|
---|
26 | <!ENTITY jaxp-download "&anduin-download;/jaxp.tar.xz">
|
---|
27 | <!ENTITY jaxp-md5sum "baf2f923fe29a7ceff6d0f7cb5331b9d">
|
---|
28 | <!ENTITY jaxp-size "2.2 MB">
|
---|
29 |
|
---|
30 | <!ENTITY jaxws-download "&anduin-download;/jaxws.tar.xz">
|
---|
31 | <!ENTITY jaxws-md5sum "5d99e16e146e920b5fa3360b26bb13a8">
|
---|
32 | <!ENTITY jaxws-size "2.2 MB">
|
---|
33 |
|
---|
34 | <!ENTITY jdk-download "&anduin-download;/jdk.tar.xz">
|
---|
35 | <!ENTITY jdk-md5sum "79f0b2cd008497a8011bfbc2bd7f2b01">
|
---|
36 | <!ENTITY jdk-size "36.2 MB">
|
---|
37 |
|
---|
38 | <!ENTITY langtools-download "&anduin-download;/langtools.tar.xz">
|
---|
39 | <!ENTITY langtools-md5sum "19d9a21aa51e8afb80d0a35681c2467f">
|
---|
40 | <!ENTITY langtools-size "2.0 MB">
|
---|
41 |
|
---|
42 | <!ENTITY nashorn-download "&anduin-download;/nashorn.tar.xz">
|
---|
43 | <!ENTITY nashorn-md5sum "7ed0b17f2d925d3263a344b7fc746d24">
|
---|
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 "2e112b5863c777426fbbbadeeb9972e1">
|
---|
49 | <!-- The md5sum varies, because people at adopt-openjdk rebuild the package
|
---|
50 | without changing the name of the tarball -->
|
---|
51 | <!ENTITY jtreg-size "2.6 MB">
|
---|
52 |
|
---|
53 | <!ENTITY icedtea-web-download "http://icedtea.classpath.org/download/source/icedtea-web-&icedtea-web-version;.tar.gz">
|
---|
54 |
|
---|
55 | <!ENTITY ojdk-buildsize "3.1 GB (additional 350 MB for tests)">
|
---|
56 | <!ENTITY ojdk-time "15 SBU (additional 126 SBU for tests)">
|
---|
57 | ]>
|
---|
58 |
|
---|
59 | <sect1 id="openjdk"
|
---|
60 | xreflabel="OpenJDK-&openjdk-version;">
|
---|
61 | <?dbhtml filename="openjdk.html" ?>
|
---|
62 |
|
---|
63 | <sect1info>
|
---|
64 | <othername>$LastChangedBy$</othername>
|
---|
65 | <date>$Date$</date>
|
---|
66 | </sect1info>
|
---|
67 |
|
---|
68 | <title>OpenJDK-&openjdk-version;</title>
|
---|
69 |
|
---|
70 | <indexterm zone="openjdk">
|
---|
71 | <primary sortas="a-OpenJDK">OpenJDK</primary>
|
---|
72 | </indexterm>
|
---|
73 |
|
---|
74 | <sect2 role="package">
|
---|
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>
|
---|
84 |
|
---|
85 | &lfs77_checked;
|
---|
86 |
|
---|
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>
|
---|
108 |
|
---|
109 | <note>
|
---|
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>
|
---|
142 | </note>
|
---|
143 |
|
---|
144 | <bridgehead renderas="sect3">Source Package Information</bridgehead>
|
---|
145 | <itemizedlist spacing="compact">
|
---|
146 | <listitem>
|
---|
147 | <para>OpenJDK Root Package
|
---|
148 | <simplelist>
|
---|
149 | <member>Download: <ulink url="&ojdk-download;"/></member>
|
---|
150 | <member>Download MD5 sum: &ojdk-md5sum;</member>
|
---|
151 | <member>Download Size: &ojdk-size;</member>
|
---|
152 | </simplelist>
|
---|
153 | </para>
|
---|
154 | </listitem>
|
---|
155 | </itemizedlist>
|
---|
156 |
|
---|
157 | <para>
|
---|
158 | The following files may be downladed from the OpenJDK mercurial
|
---|
159 | repository using the addresses <ulink
|
---|
160 | url="&ojdk-repo;/<component>/archive/&ojdk-tarball;"/>,
|
---|
161 | where <component> 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>
|
---|
167 |
|
---|
168 | <itemizedlist spacing="compact">
|
---|
169 | <listitem>
|
---|
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
|
---|
180 | <simplelist>
|
---|
181 | <member>Download: <ulink url="&hotspot-download;"/></member>
|
---|
182 | <member>Download MD5 sum: &hotspot-md5sum;</member>
|
---|
183 | <member>Download Size: &hotspot-size;</member>
|
---|
184 | </simplelist>
|
---|
185 | </para>
|
---|
186 | </listitem>
|
---|
187 | <listitem>
|
---|
188 | <para>JAXP Source
|
---|
189 | <simplelist>
|
---|
190 | <member>Download: <ulink url="&jaxp-download;"/></member>
|
---|
191 | <member>Download MD5 sum: &jaxp-md5sum;</member>
|
---|
192 | <member>Download Size: &jaxp-size;</member>
|
---|
193 | </simplelist>
|
---|
194 | </para>
|
---|
195 | </listitem>
|
---|
196 | <listitem>
|
---|
197 | <para>JAXWS Source
|
---|
198 | <simplelist>
|
---|
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>
|
---|
215 | <para>JDK Source
|
---|
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>
|
---|
220 | </simplelist>
|
---|
221 | </para>
|
---|
222 | </listitem>
|
---|
223 | <listitem>
|
---|
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>
|
---|
231 | </listitem>
|
---|
232 | <listitem>
|
---|
233 | <para>Estimated disk space required: &ojdk-buildsize;</para>
|
---|
234 | </listitem>
|
---|
235 | <listitem>
|
---|
236 | <para>Estimated build time: &ojdk-time;</para>
|
---|
237 | </listitem>
|
---|
238 | </itemizedlist>
|
---|
239 |
|
---|
240 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
241 |
|
---|
242 | <itemizedlist spacing='compact'>
|
---|
243 | <listitem>
|
---|
244 | <para>
|
---|
245 | Optional package (to get an icon for the
|
---|
246 | <filename>openjdk-8-policytool.desktop</filename> file):
|
---|
247 | <ulink url="&icedtea-web-download;"/>
|
---|
248 | </para>
|
---|
249 | </listitem>
|
---|
250 | <listitem>
|
---|
251 | <para>
|
---|
252 | Optional test harness: <ulink url="&jtreg-download;"/>
|
---|
253 | </para>
|
---|
254 | </listitem>
|
---|
255 | </itemizedlist>
|
---|
256 |
|
---|
257 | <bridgehead renderas="sect3">OpenJDK Dependencies</bridgehead>
|
---|
258 |
|
---|
259 | <bridgehead renderas="sect4">Required Dependencies</bridgehead>
|
---|
260 | <para role="required">
|
---|
261 | An existing binary (<xref linkend="java"/> or an earlier built
|
---|
262 | version of this package),
|
---|
263 | <xref linkend="alsa-lib"/>,
|
---|
264 | <xref linkend="cpio"/>,
|
---|
265 | <xref linkend="cups"/>,
|
---|
266 | <xref linkend="unzip"/>,
|
---|
267 | <xref linkend="which"/>,
|
---|
268 | <xref linkend="xorg7-lib"/>, and
|
---|
269 | <xref linkend="zip"/>
|
---|
270 | </para>
|
---|
271 |
|
---|
272 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
273 | <para role="recommended">
|
---|
274 | <xref linkend="cacerts"/> and
|
---|
275 | <xref linkend="giflib"/>
|
---|
276 | </para>
|
---|
277 |
|
---|
278 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
279 | <para role="optional">
|
---|
280 | <xref linkend="mercurial"/> and
|
---|
281 | <xref linkend="twm"/> (for the tests)
|
---|
282 | </para>
|
---|
283 |
|
---|
284 | <para condition="html" role="usernotes">User Notes:
|
---|
285 | <ulink url="&blfs-wiki;/openjdk"/></para>
|
---|
286 |
|
---|
287 | </sect2>
|
---|
288 |
|
---|
289 | <sect2 role="installation">
|
---|
290 | <title>Installation of OpenJDK</title>
|
---|
291 |
|
---|
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>
|
---|
299 |
|
---|
300 | <screen><userinput>tar -xf ../corba.tar.xz &&
|
---|
301 | tar -xf ../hotspot.tar.xz &&
|
---|
302 | tar -xf ../jaxp.tar.xz &&
|
---|
303 | tar -xf ../jaxws.tar.xz &&
|
---|
304 | tar -xf ../jdk.tar.xz &&
|
---|
305 | tar -xf ../langtools.tar.xz &&
|
---|
306 | tar -xf ../nashorn.tar.xz</userinput></screen>
|
---|
307 |
|
---|
308 | <para>
|
---|
309 | If you have downloaded the test harness, unpack it too:
|
---|
310 | </para>
|
---|
311 |
|
---|
312 | <screen><userinput>tar -xf ../jtreg&jtreg-version;.tar.gz</userinput></screen>
|
---|
313 |
|
---|
314 | <!--TODO: it might be better to add instructions for the cacerts file at
|
---|
315 | this place and to use the switch "with-cacerts-file" -->
|
---|
316 |
|
---|
317 | <para>
|
---|
318 | Fix an issue with the new (since 5.1.0) giflib API:
|
---|
319 | </para>
|
---|
320 |
|
---|
321 | <screen><userinput>sed -e 's/DGifCloseFile(gif/&, NULL/' \
|
---|
322 | -e '/DGifOpen/s/c)/c, NULL)/' \
|
---|
323 | -i jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c</userinput></screen>
|
---|
324 |
|
---|
325 | <para>
|
---|
326 | Fix a bug in a shell script used to set the flags for
|
---|
327 | <command>make</command>:
|
---|
328 | </para>
|
---|
329 |
|
---|
330 | <screen><userinput>sed 's/\([ \t]\)\]\([^\]\)/\1I]\2/g' \
|
---|
331 | -i hotspot/make/linux/makefiles/adjust-mflags.sh</userinput></screen>
|
---|
332 |
|
---|
333 | <note>
|
---|
334 | <para>
|
---|
335 | Before proceeding, you should ensure that your environment
|
---|
336 | <envar>PATH</envar> variable contains the location of the Java
|
---|
337 | compilers used for bootstrapping <application>OpenJDK</application>.
|
---|
338 | This is the only requirement for the environment. Modern Java
|
---|
339 | installations do not need <envar>JAVA_HOME</envar> and
|
---|
340 | <envar>CLASSPATH</envar> is not used here. Furthermore, OpenJDK
|
---|
341 | developers recommand to unset <envar>JAVA_HOME</envar>.
|
---|
342 | </para>
|
---|
343 |
|
---|
344 | <para>
|
---|
345 | The build system does not support the <option>-j</option> switch in
|
---|
346 | <envar>MAKEFLAGS</envar>.
|
---|
347 | </para>
|
---|
348 | </note>
|
---|
349 |
|
---|
350 | <para>Configure and build the package with the following commands
|
---|
351 | (--with-milestone value can be modified to fit user preferences):</para>
|
---|
352 |
|
---|
353 | <screen><userinput>unset JAVA_HOME &&
|
---|
354 | sh ./configure \
|
---|
355 | --with-update-version=&ojdk-upd; \
|
---|
356 | --with-build-number=&ojdk-bd; \
|
---|
357 | --with-milestone=BLFS \
|
---|
358 | --enable-unlimited-crypto \
|
---|
359 | --with-zlib=system \
|
---|
360 | --with-giflib=system &&
|
---|
361 | make DEBUG_BINARIES=true all</userinput></screen>
|
---|
362 |
|
---|
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>
|
---|
369 |
|
---|
370 | <!-- Careful with the && below:
|
---|
371 | "export DISPLAY=... && somecommand &" exports only DISPLAY to "somecommand"
|
---|
372 | but 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
|
---|
376 | fi
|
---|
377 | export DISPLAY=:20
|
---|
378 | nohup Xvfb $DISPLAY \
|
---|
379 | -fbdir $(pwd) \
|
---|
380 | -pixdepths 8 16 24 32 > Xvfb.out 2>&1 &
|
---|
381 | echo $! > Xvfb.pid
|
---|
382 | echo Waiting for Xvfb to initialize; sleep 1
|
---|
383 | nohup twm -display $DISPLAY \
|
---|
384 | -f /dev/null > twm.out 2>&1 &
|
---|
385 | echo $! > twm.pid
|
---|
386 | echo Waiting for twm to initialize; sleep 1
|
---|
387 | xhost +</userinput></screen>
|
---|
388 |
|
---|
389 | <para>
|
---|
390 | Then, it is necessary to modify some files:
|
---|
391 | </para>
|
---|
392 |
|
---|
393 | <screen role='nodump'><userinput>echo -e "
|
---|
394 | jdk_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 &&
|
---|
405 | sed -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.*@@') &&
|
---|
413 | JT_HOME=$(pwd)/jtreg &&
|
---|
414 | PRODUCT_HOME=$(echo $(pwd)/build/*/images/j2sdk-image)</userinput></screen>
|
---|
415 |
|
---|
416 | <para>
|
---|
417 | The tests are run as follows:
|
---|
418 | </para>
|
---|
419 |
|
---|
420 | <!-- no && here either, because the first "make" may return an error -->
|
---|
421 | <screen role='nodump'><userinput>LANG=C make -k -C test \
|
---|
422 | JT_HOME=${JT_HOME} \
|
---|
423 | JT_JAVA=${JT_JAVA} \
|
---|
424 | PRODUCT_HOME=${PRODUCT_HOME} all
|
---|
425 | LANG=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` &&
|
---|
439 | kill -9 `cat Xvfb.pid` &&
|
---|
440 | rm -f Xvfb.out twm.out &&
|
---|
441 | rm -f Xvfb.pid twm.pid &&
|
---|
442 | if [ -n "$OLD_DISP" ]; then
|
---|
443 | DISPLAY=$OLD_DISP
|
---|
444 | fi</userinput></screen>
|
---|
445 |
|
---|
446 | <para>Install the package with the following commands as the
|
---|
447 | <systemitem class="username">root</systemitem> user:</para>
|
---|
448 |
|
---|
449 | <screen role="root"><userinput>find build/*/images/j2sdk-image -iname \*.jar -exec chmod a+r {} \; &&
|
---|
450 | chmod a+r build/*/images/j2sdk-image/lib/ct.sym &&
|
---|
451 | find build/*/images/j2sdk-image -iname \*.diz -delete &&
|
---|
452 | find build/*/images/j2sdk-image -iname \*.debuginfo -delete &&
|
---|
453 | cp -R build/*/images/j2sdk-image /opt/OpenJDK-&openjdk-version; &&
|
---|
454 | chown -R root:root /opt/OpenJDK-&openjdk-version;</userinput></screen>
|
---|
455 |
|
---|
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 |
|
---|
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>
|
---|
470 |
|
---|
471 | <screen><userinput>tar -xf ../icedtea-web-&icedtea-web-version;.tar.gz \
|
---|
472 | icedtea-web-&icedtea-web-version;/javaws.png \
|
---|
473 | --strip-components=1</userinput></screen>
|
---|
474 |
|
---|
475 | <para>Now, as <systemitem class="username">root</systemitem> user:</para>
|
---|
476 |
|
---|
477 | <screen role="root"><userinput>mkdir -pv /usr/share/applications &&
|
---|
478 |
|
---|
479 | cat > /usr/share/applications/openjdk-8-policytool.desktop << "EOF" &&
|
---|
480 | <literal>[Desktop Entry]
|
---|
481 | Name=OpenJDK Java Policy Tool
|
---|
482 | Name[pt_BR]=OpenJDK Java - Ferramenta de Política
|
---|
483 | Comment=OpenJDK Java Policy Tool
|
---|
484 | Comment[pt_BR]=OpenJDK Java - Ferramenta de Política
|
---|
485 | Exec=/opt/jdk/bin/policytool
|
---|
486 | Terminal=false
|
---|
487 | Type=Application
|
---|
488 | Icon=javaws
|
---|
489 | Categories=Settings;</literal>
|
---|
490 | EOF
|
---|
491 |
|
---|
492 | install -v -Dm0644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen>
|
---|
493 |
|
---|
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,
|
---|
496 | <quote>Name[fr_FR]=</quote> and <quote>Comment[fr_FR]=</quote> with the
|
---|
497 | appropriate text as values.</para>
|
---|
498 |
|
---|
499 | </sect2>
|
---|
500 |
|
---|
501 | <sect2 role="commands">
|
---|
502 | <title>Command Explanations</title>
|
---|
503 |
|
---|
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>
|
---|
509 |
|
---|
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>
|
---|
515 |
|
---|
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>
|
---|
521 |
|
---|
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>
|
---|
527 |
|
---|
528 | <para>
|
---|
529 | <parameter>--with-milestone</parameter>: Used to customize the
|
---|
530 | version string.
|
---|
531 | </para>
|
---|
532 |
|
---|
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>
|
---|
541 |
|
---|
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>
|
---|
546 |
|
---|
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
|
---|
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.
|
---|
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>
|
---|
577 |
|
---|
578 | </sect2>
|
---|
579 |
|
---|
580 | <sect2 role="configuration"
|
---|
581 | id="openjdk-config"
|
---|
582 | xreflabel="Configuring OpenJDK">
|
---|
583 | <title>Configuring OpenJDK</title>
|
---|
584 |
|
---|
585 | <sect3>
|
---|
586 | <title>Configuration Information</title>
|
---|
587 |
|
---|
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>
|
---|
592 |
|
---|
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>
|
---|
596 |
|
---|
597 | </sect3>
|
---|
598 |
|
---|
599 | <sect3 id='ojdk-certs' xreflabel='JRE Certificate Authorithy Certificates'>
|
---|
600 | <title>Install or update the JRE Certificate Authority Certificates
|
---|
601 | (cacerts) file</title>
|
---|
602 |
|
---|
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>
|
---|
610 |
|
---|
611 | <screen role="root"><userinput>cat > /opt/jdk/bin/mkcacerts << "EOF"
|
---|
612 | <literal>#!/bin/sh
|
---|
613 | # Simple script to extract x509 certificates and create a JRE cacerts file.
|
---|
614 |
|
---|
615 | function get_args()
|
---|
616 | {
|
---|
617 | if test -z "${1}" ; then
|
---|
618 | showhelp
|
---|
619 | exit 1
|
---|
620 | fi
|
---|
621 |
|
---|
622 | while test -n "${1}" ; do
|
---|
623 | case "${1}" in
|
---|
624 | -f | --cafile)
|
---|
625 | check_arg $1 $2
|
---|
626 | CAFILE="${2}"
|
---|
627 | shift 2
|
---|
628 | ;;
|
---|
629 | -d | --cadir)
|
---|
630 | check_arg $1 $2
|
---|
631 | CADIR="${2}"
|
---|
632 | shift 2
|
---|
633 | ;;
|
---|
634 | -o | --outfile)
|
---|
635 | check_arg $1 $2
|
---|
636 | OUTFILE="${2}"
|
---|
637 | shift 2
|
---|
638 | ;;
|
---|
639 | -k | --keytool)
|
---|
640 | check_arg $1 $2
|
---|
641 | KEYTOOL="${2}"
|
---|
642 | shift 2
|
---|
643 | ;;
|
---|
644 | -s | --openssl)
|
---|
645 | check_arg $1 $2
|
---|
646 | OPENSSL="${2}"
|
---|
647 | shift 2
|
---|
648 | ;;
|
---|
649 | -h | --help)
|
---|
650 | showhelp
|
---|
651 | exit 0
|
---|
652 | ;;
|
---|
653 | *)
|
---|
654 | showhelp
|
---|
655 | exit 1
|
---|
656 | ;;
|
---|
657 | esac
|
---|
658 | done
|
---|
659 | }
|
---|
660 |
|
---|
661 | function check_arg()
|
---|
662 | {
|
---|
663 | echo "${2}" | grep -v "^-" > /dev/null
|
---|
664 | if [ -z "$?" -o ! -n "$2" ]; then
|
---|
665 | echo "Error: $1 requires a valid argument."
|
---|
666 | exit 1
|
---|
667 | fi
|
---|
668 | }
|
---|
669 |
|
---|
670 | # The date binary is not reliable on 32bit systems for dates after 2038
|
---|
671 | function mydate()
|
---|
672 | {
|
---|
673 | local y=$( echo $1 | cut -d" " -f4 )
|
---|
674 | local M=$( echo $1 | cut -d" " -f1 )
|
---|
675 | local d=$( echo $1 | cut -d" " -f2 )
|
---|
676 | local m
|
---|
677 |
|
---|
678 | if [ ${d} -lt 10 ]; then d="0${d}"; fi
|
---|
679 |
|
---|
680 | case $M in
|
---|
681 | Jan) m="01";;
|
---|
682 | Feb) m="02";;
|
---|
683 | Mar) m="03";;
|
---|
684 | Apr) m="04";;
|
---|
685 | May) m="05";;
|
---|
686 | Jun) m="06";;
|
---|
687 | Jul) m="07";;
|
---|
688 | Aug) m="08";;
|
---|
689 | Sep) m="09";;
|
---|
690 | Oct) m="10";;
|
---|
691 | Nov) m="11";;
|
---|
692 | Dec) m="12";;
|
---|
693 | esac
|
---|
694 |
|
---|
695 | certdate="${y}${m}${d}"
|
---|
696 | }
|
---|
697 |
|
---|
698 | function showhelp()
|
---|
699 | {
|
---|
700 | echo "`basename ${0}` creates a valid cacerts file for use with IcedTea."
|
---|
701 | echo ""
|
---|
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."
|
---|
711 | echo ""
|
---|
712 | echo " -k --keytool The path to the java keytool utility."
|
---|
713 | echo ""
|
---|
714 | echo " -s --openssl The path to the openssl utility."
|
---|
715 | echo ""
|
---|
716 | echo " -h --help Show this help message and exit."
|
---|
717 | echo ""
|
---|
718 | echo ""
|
---|
719 | }
|
---|
720 |
|
---|
721 | # Initialize empty variables so that the shell does not pollute the script
|
---|
722 | CAFILE=""
|
---|
723 | CADIR=""
|
---|
724 | OUTFILE=""
|
---|
725 | OPENSSL=""
|
---|
726 | KEYTOOL=""
|
---|
727 | certdate=""
|
---|
728 | date=""
|
---|
729 | today=$( date +%Y%m%d )
|
---|
730 |
|
---|
731 | # Process command line arguments
|
---|
732 | get_args ${@}
|
---|
733 |
|
---|
734 | # Handle common errors
|
---|
735 | if test "${CAFILE}x" == "x" -a "${CADIR}x" == "x" ; then
|
---|
736 | echo "ERROR! You must provide an x509 certificate store!"
|
---|
737 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
738 | echo ""
|
---|
739 | exit 1
|
---|
740 | fi
|
---|
741 |
|
---|
742 | if test "${CAFILE}x" != "x" -a "${CADIR}x" != "x" ; then
|
---|
743 | echo "ERROR! You cannot provide two x509 certificate stores!"
|
---|
744 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
745 | echo ""
|
---|
746 | exit 1
|
---|
747 | fi
|
---|
748 |
|
---|
749 | if test "${KEYTOOL}x" == "x" ; then
|
---|
750 | echo "ERROR! You must provide a valid keytool program!"
|
---|
751 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
752 | echo ""
|
---|
753 | exit 1
|
---|
754 | fi
|
---|
755 |
|
---|
756 | if test "${OPENSSL}x" == "x" ; then
|
---|
757 | echo "ERROR! You must provide a valid path to openssl!"
|
---|
758 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
759 | echo ""
|
---|
760 | exit 1
|
---|
761 | fi
|
---|
762 |
|
---|
763 | if test "${OUTFILE}x" == "x" ; then
|
---|
764 | echo "ERROR! You must provide a valid output file!"
|
---|
765 | echo "\'$(basename ${0}) --help\' for more info."
|
---|
766 | echo ""
|
---|
767 | exit 1
|
---|
768 | fi
|
---|
769 |
|
---|
770 | # Get on with the work
|
---|
771 |
|
---|
772 | # If using a CAFILE, split it into individual files in a temp directory
|
---|
773 | if test "${CAFILE}x" != "x" ; then
|
---|
774 | TEMPDIR=`mktemp -d`
|
---|
775 | CADIR="${TEMPDIR}"
|
---|
776 |
|
---|
777 | # Get a list of staring lines for each cert
|
---|
778 | CERTLIST=`grep -n "^-----BEGIN" "${CAFILE}" | cut -d ":" -f 1`
|
---|
779 |
|
---|
780 | # Get a list of ending lines for each cert
|
---|
781 | ENDCERTLIST=`grep -n "^-----END" "${CAFILE}" | cut -d ":" -f 1`
|
---|
782 |
|
---|
783 | # Start a loop
|
---|
784 | for certbegin in `echo "${CERTLIST}"` ; do
|
---|
785 | for certend in `echo "${ENDCERTLIST}"` ; do
|
---|
786 | if test "${certend}" -gt "${certbegin}"; then
|
---|
787 | break
|
---|
788 | fi
|
---|
789 | done
|
---|
790 | sed -n "${certbegin},${certend}p" "${CAFILE}" > "${CADIR}/${certbegin}.pem"
|
---|
791 | keyhash=`${OPENSSL} x509 -noout -in "${CADIR}/${certbegin}.pem" -hash`
|
---|
792 | echo "Generated PEM file with hash: ${keyhash}."
|
---|
793 | done
|
---|
794 | fi
|
---|
795 |
|
---|
796 | # Write the output file
|
---|
797 | for cert in `find "${CADIR}" -type f -name "*.pem" -o -name "*.crt"`
|
---|
798 | do
|
---|
799 |
|
---|
800 | # Make sure the certificate date is valid...
|
---|
801 | date=$( ${OPENSSL} x509 -enddate -in "${cert}" -noout | sed 's/^notAfter=//' )
|
---|
802 | mydate "${date}"
|
---|
803 | if test "${certdate}" -lt "${today}" ; then
|
---|
804 | echo "${cert} expired on ${certdate}! Skipping..."
|
---|
805 | unset date certdate
|
---|
806 | continue
|
---|
807 | fi
|
---|
808 | unset date certdate
|
---|
809 | ls "${cert}"
|
---|
810 | tempfile=`mktemp`
|
---|
811 | certbegin=`grep -n "^-----BEGIN" "${cert}" | cut -d ":" -f 1`
|
---|
812 | certend=`grep -n "^-----END" "${cert}" | cut -d ":" -f 1`
|
---|
813 | sed -n "${certbegin},${certend}p" "${cert}" > "${tempfile}"
|
---|
814 | echo yes | env LC_ALL=C "${KEYTOOL}" -import \
|
---|
815 | -alias `basename "${cert}"` \
|
---|
816 | -keystore "${OUTFILE}" \
|
---|
817 | -storepass 'changeit' \
|
---|
818 | -file "${tempfile}"
|
---|
819 | rm "${tempfile}"
|
---|
820 | done
|
---|
821 |
|
---|
822 | if test "${TEMPDIR}x" != "x" ; then
|
---|
823 | rm -rf "${TEMPDIR}"
|
---|
824 | fi
|
---|
825 | exit 0</literal>
|
---|
826 | EOF
|
---|
827 |
|
---|
828 | chmod -c 0755 /opt/jdk/bin/mkcacerts</userinput></screen>
|
---|
829 |
|
---|
830 | <note>
|
---|
831 | <para>
|
---|
832 | Doing a very large copy/paste directly to a terminal may result in a
|
---|
833 | corrupted file. Copying to an editor may overcome this issue.
|
---|
834 | </para>
|
---|
835 | </note>
|
---|
836 |
|
---|
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
|
---|
841 | <systemitem class="username">root</systemitem> user:</para>
|
---|
842 |
|
---|
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>
|
---|
848 |
|
---|
849 | <para>Use the following commands to check if the
|
---|
850 | <filename>cacerts</filename> file has been successfully installed:</para>
|
---|
851 |
|
---|
852 | <screen role="root"><userinput>cd /opt/jdk
|
---|
853 | bin/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 |
|
---|
861 | </sect3>
|
---|
862 |
|
---|
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>
|
---|
874 | <seg>appletviewer, extcheck, idlj, jar,
|
---|
875 | jarsigner, java, javac, javadoc, javah, javap, java-rmi.cgi,
|
---|
876 | jcmd, jconsole, jdb, jdeps, jhat, jinfo, jjs, jmap, jps,
|
---|
877 | jrunscript, jsadebugd, jstack, jstat, jstatd, keytool, mkcacerts,
|
---|
878 | native2ascii, orbd, pack200, policytool, rmic, rmid, rmiregistry,
|
---|
879 | schemagen, serialver, servertool, tnameserv, unpack200,
|
---|
880 | wsgen, wsimport, and xjc</seg>
|
---|
881 | <seg>/opt/OpenJDK-&openjdk-version;/lib/*, and
|
---|
882 | /opt/OpenJDK-&openjdk-version;/jre/lib/*</seg>
|
---|
883 | <seg>/opt/OpenJDK-&openjdk-version;</seg>
|
---|
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 |
|
---|
892 | <varlistentry id="appletviewer">
|
---|
893 | <term><command>appletviewer</command></term>
|
---|
894 | <listitem>
|
---|
895 | <para>allows to run applets outside of a web browser.</para>
|
---|
896 | <indexterm zone="openjdk appletviewer">
|
---|
897 | <primary sortas="b-appletviewer">appletviewer</primary>
|
---|
898 | </indexterm>
|
---|
899 | </listitem>
|
---|
900 | </varlistentry>
|
---|
901 |
|
---|
902 | <varlistentry id="extcheck">
|
---|
903 | <term><command>extcheck</command></term>
|
---|
904 | <listitem>
|
---|
905 | <para>checks a specified jar file for title and version conflicts
|
---|
906 | with any extensions installed in the
|
---|
907 | <application>OpenJDK</application> software.</para>
|
---|
908 | <indexterm zone="openjdk extcheck">
|
---|
909 | <primary sortas="b-extcheck">extcheck</primary>
|
---|
910 | </indexterm>
|
---|
911 | </listitem>
|
---|
912 | </varlistentry>
|
---|
913 |
|
---|
914 | <varlistentry id="idlj">
|
---|
915 | <term><command>idlj</command></term>
|
---|
916 | <listitem>
|
---|
917 | <para>generates Java bindings from a given IDL file.</para>
|
---|
918 | <indexterm zone="openjdk idlj">
|
---|
919 | <primary sortas="b-idlj">idlj</primary>
|
---|
920 | </indexterm>
|
---|
921 | </listitem>
|
---|
922 | </varlistentry>
|
---|
923 |
|
---|
924 | <varlistentry id="jar">
|
---|
925 | <term><command>jar</command></term>
|
---|
926 | <listitem>
|
---|
927 | <para>combines multiple files into a single jar archive.</para>
|
---|
928 | <indexterm zone="openjdk jar">
|
---|
929 | <primary sortas="b-jar">jar</primary>
|
---|
930 | </indexterm>
|
---|
931 | </listitem>
|
---|
932 | </varlistentry>
|
---|
933 |
|
---|
934 | <varlistentry id="jarsigner">
|
---|
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>
|
---|
939 | <indexterm zone="openjdk jarsigner">
|
---|
940 | <primary sortas="b-jarsigner">jarsigner</primary>
|
---|
941 | </indexterm>
|
---|
942 | </listitem>
|
---|
943 | </varlistentry>
|
---|
944 |
|
---|
945 | <varlistentry id="java-prog">
|
---|
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>
|
---|
951 | <indexterm zone="openjdk java-prog">
|
---|
952 | <primary sortas="b-java-prog">java</primary>
|
---|
953 | </indexterm>
|
---|
954 | </listitem>
|
---|
955 | </varlistentry>
|
---|
956 |
|
---|
957 | <varlistentry id="javac">
|
---|
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>
|
---|
963 | <indexterm zone="openjdk javac">
|
---|
964 | <primary sortas="b-javac">javac</primary>
|
---|
965 | </indexterm>
|
---|
966 | </listitem>
|
---|
967 | </varlistentry>
|
---|
968 |
|
---|
969 | <varlistentry id="javadoc">
|
---|
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
|
---|
974 | HTML pages describing the classes, interfaces, constructors,
|
---|
975 | methods, and fields.</para>
|
---|
976 | <indexterm zone="openjdk javadoc">
|
---|
977 | <primary sortas="b-javadoc">javadoc</primary>
|
---|
978 | </indexterm>
|
---|
979 | </listitem>
|
---|
980 | </varlistentry>
|
---|
981 |
|
---|
982 | <varlistentry id="javah">
|
---|
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>
|
---|
987 | <indexterm zone="openjdk javah">
|
---|
988 | <primary sortas="b-javah">javah</primary>
|
---|
989 | </indexterm>
|
---|
990 | </listitem>
|
---|
991 | </varlistentry>
|
---|
992 |
|
---|
993 | <varlistentry id="javap">
|
---|
994 | <term><command>javap</command></term>
|
---|
995 | <listitem>
|
---|
996 | <para>disassembles a Java class file.</para>
|
---|
997 | <indexterm zone="openjdk javap">
|
---|
998 | <primary sortas="b-javap">javap</primary>
|
---|
999 | </indexterm>
|
---|
1000 | </listitem>
|
---|
1001 | </varlistentry>
|
---|
1002 |
|
---|
1003 | <varlistentry id="java-rmi.cgi">
|
---|
1004 | <term><command>java-rmi.cgi</command></term>
|
---|
1005 | <listitem>
|
---|
1006 | <para>is the Java RMI client.</para>
|
---|
1007 | <indexterm zone="openjdk java-rmi.cgi">
|
---|
1008 | <primary sortas="b-java-rmi.cgi">java-rmi.cgi</primary>
|
---|
1009 | </indexterm>
|
---|
1010 | </listitem>
|
---|
1011 | </varlistentry>
|
---|
1012 |
|
---|
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">
|
---|
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>
|
---|
1029 | <indexterm zone="openjdk jconsole">
|
---|
1030 | <primary sortas="b-jconsole">jconsole</primary>
|
---|
1031 | </indexterm>
|
---|
1032 | </listitem>
|
---|
1033 | </varlistentry>
|
---|
1034 |
|
---|
1035 | <varlistentry id="jdb">
|
---|
1036 | <term><command>jdb</command></term>
|
---|
1037 | <listitem>
|
---|
1038 | <para>is a simple command-line debugger for Java classes.</para>
|
---|
1039 | <indexterm zone="openjdk jdb">
|
---|
1040 | <primary sortas="b-jdb">jdb</primary>
|
---|
1041 | </indexterm>
|
---|
1042 | </listitem>
|
---|
1043 | </varlistentry>
|
---|
1044 |
|
---|
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 |
|
---|
1056 | <varlistentry id="jhat">
|
---|
1057 | <term><command>jhat</command></term>
|
---|
1058 | <listitem>
|
---|
1059 | <para>parses a java heap dump file and allows viewing it
|
---|
1060 | in a web browser.</para>
|
---|
1061 | <indexterm zone="openjdk jhat">
|
---|
1062 | <primary sortas="b-jhat">jhat</primary>
|
---|
1063 | </indexterm>
|
---|
1064 | </listitem>
|
---|
1065 | </varlistentry>
|
---|
1066 |
|
---|
1067 | <varlistentry id="jinfo">
|
---|
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>
|
---|
1072 | <indexterm zone="openjdk jinfo">
|
---|
1073 | <primary sortas="b-jinfo">jinfo</primary>
|
---|
1074 | </indexterm>
|
---|
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>
|
---|
1087 | </listitem>
|
---|
1088 | </varlistentry>
|
---|
1089 |
|
---|
1090 | <varlistentry id="jmap">
|
---|
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>
|
---|
1095 | <indexterm zone="openjdk jmap">
|
---|
1096 | <primary sortas="b-jmap">jmap</primary>
|
---|
1097 | </indexterm>
|
---|
1098 | </listitem>
|
---|
1099 | </varlistentry>
|
---|
1100 |
|
---|
1101 | <varlistentry id="jps">
|
---|
1102 | <term><command>jps</command></term>
|
---|
1103 | <listitem>
|
---|
1104 | <para>lists the instrumented JVMs on the target system.</para>
|
---|
1105 | <indexterm zone="openjdk jps">
|
---|
1106 | <primary sortas="b-jps">jps</primary>
|
---|
1107 | </indexterm>
|
---|
1108 | </listitem>
|
---|
1109 | </varlistentry>
|
---|
1110 |
|
---|
1111 | <varlistentry id="jrunscript">
|
---|
1112 | <term><command>jrunscript</command></term>
|
---|
1113 | <listitem>
|
---|
1114 | <para>is a command line script shell.</para>
|
---|
1115 | <indexterm zone="openjdk jrunscript">
|
---|
1116 | <primary sortas="b-jrunscript">jrunscript</primary>
|
---|
1117 | </indexterm>
|
---|
1118 | </listitem>
|
---|
1119 | </varlistentry>
|
---|
1120 |
|
---|
1121 | <varlistentry id="jsadebugd">
|
---|
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>
|
---|
1126 | <indexterm zone="openjdk jsadebugd">
|
---|
1127 | <primary sortas="b-jsadebugd">jsadebugd</primary>
|
---|
1128 | </indexterm>
|
---|
1129 | </listitem>
|
---|
1130 | </varlistentry>
|
---|
1131 |
|
---|
1132 | <varlistentry id="jstack">
|
---|
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>
|
---|
1137 | <indexterm zone="openjdk jstack">
|
---|
1138 | <primary sortas="b-jstack">jstack</primary>
|
---|
1139 | </indexterm>
|
---|
1140 | </listitem>
|
---|
1141 | </varlistentry>
|
---|
1142 |
|
---|
1143 | <varlistentry id="jstat">
|
---|
1144 | <term><command>jstat</command></term>
|
---|
1145 | <listitem>
|
---|
1146 | <para>displays performance statistics for an instrumented JVM.</para>
|
---|
1147 | <indexterm zone="openjdk jstat">
|
---|
1148 | <primary sortas="b-jstat">jstat</primary>
|
---|
1149 | </indexterm>
|
---|
1150 | </listitem>
|
---|
1151 | </varlistentry>
|
---|
1152 |
|
---|
1153 | <varlistentry id="jstatd">
|
---|
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>
|
---|
1158 | <indexterm zone="openjdk jstatd">
|
---|
1159 | <primary sortas="b-jstatd">jstatd</primary>
|
---|
1160 | </indexterm>
|
---|
1161 | </listitem>
|
---|
1162 | </varlistentry>
|
---|
1163 |
|
---|
1164 | <varlistentry id="keytool">
|
---|
1165 | <term><command>keytool</command></term>
|
---|
1166 | <listitem>
|
---|
1167 | <para>is a key and certificate management utility.</para>
|
---|
1168 | <indexterm zone="openjdk keytool">
|
---|
1169 | <primary sortas="b-keytool">keytool</primary>
|
---|
1170 | </indexterm>
|
---|
1171 | </listitem>
|
---|
1172 | </varlistentry>
|
---|
1173 |
|
---|
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 |
|
---|
1185 | <varlistentry id="native2ascii">
|
---|
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>
|
---|
1190 | <indexterm zone="openjdk native2ascii">
|
---|
1191 | <primary sortas="b-native2ascii">native2ascii</primary>
|
---|
1192 | </indexterm>
|
---|
1193 | </listitem>
|
---|
1194 | </varlistentry>
|
---|
1195 |
|
---|
1196 | <varlistentry id="orbd">
|
---|
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>
|
---|
1201 | <indexterm zone="openjdk orbd">
|
---|
1202 | <primary sortas="b-orbd">orbd</primary>
|
---|
1203 | </indexterm>
|
---|
1204 | </listitem>
|
---|
1205 | </varlistentry>
|
---|
1206 |
|
---|
1207 | <varlistentry id="pack200">
|
---|
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>
|
---|
1212 | <indexterm zone="openjdk pack200">
|
---|
1213 | <primary sortas="b-pack200">pack200</primary>
|
---|
1214 | </indexterm>
|
---|
1215 | </listitem>
|
---|
1216 | </varlistentry>
|
---|
1217 |
|
---|
1218 | <varlistentry id="policytool">
|
---|
1219 | <term><command>policytool</command></term>
|
---|
1220 | <listitem>
|
---|
1221 | <para>creates and manages a policy file graphically.</para>
|
---|
1222 | <indexterm zone="openjdk policytool">
|
---|
1223 | <primary sortas="b-policytool">policytool</primary>
|
---|
1224 | </indexterm>
|
---|
1225 | </listitem>
|
---|
1226 | </varlistentry>
|
---|
1227 |
|
---|
1228 | <varlistentry id="rmic">
|
---|
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>
|
---|
1234 | <indexterm zone="openjdk rmic">
|
---|
1235 | <primary sortas="b-rmic">rmic</primary>
|
---|
1236 | </indexterm>
|
---|
1237 | </listitem>
|
---|
1238 | </varlistentry>
|
---|
1239 |
|
---|
1240 | <varlistentry id="rmid">
|
---|
1241 | <term><command>rmid</command></term>
|
---|
1242 | <listitem>
|
---|
1243 | <para>starts the activation system daemon.</para>
|
---|
1244 | <indexterm zone="openjdk rmid">
|
---|
1245 | <primary sortas="b-rmid">rmid</primary>
|
---|
1246 | </indexterm>
|
---|
1247 | </listitem>
|
---|
1248 | </varlistentry>
|
---|
1249 |
|
---|
1250 | <varlistentry id="rmiregistry">
|
---|
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>
|
---|
1255 | <indexterm zone="openjdk rmiregistry">
|
---|
1256 | <primary sortas="b-rmiregistry">rmiregistry</primary>
|
---|
1257 | </indexterm>
|
---|
1258 | </listitem>
|
---|
1259 | </varlistentry>
|
---|
1260 |
|
---|
1261 | <varlistentry id="schemagen">
|
---|
1262 | <term><command>schemagen</command></term>
|
---|
1263 | <listitem>
|
---|
1264 | <para>is a Java XML binding schema generator.</para>
|
---|
1265 | <indexterm zone="openjdk schemagen">
|
---|
1266 | <primary sortas="b-schemagen">schemagen</primary>
|
---|
1267 | </indexterm>
|
---|
1268 | </listitem>
|
---|
1269 | </varlistentry>
|
---|
1270 |
|
---|
1271 | <varlistentry id="serialver">
|
---|
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>
|
---|
1276 | <indexterm zone="openjdk serialver">
|
---|
1277 | <primary sortas="b-serialver">serialver</primary>
|
---|
1278 | </indexterm>
|
---|
1279 | </listitem>
|
---|
1280 | </varlistentry>
|
---|
1281 |
|
---|
1282 | <varlistentry id="servertool">
|
---|
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>
|
---|
1287 | <indexterm zone="openjdk servertool">
|
---|
1288 | <primary sortas="b-servertool">servertool</primary>
|
---|
1289 | </indexterm>
|
---|
1290 | </listitem>
|
---|
1291 | </varlistentry>
|
---|
1292 |
|
---|
1293 | <varlistentry id="tnameserv">
|
---|
1294 | <term><command>tnameserv</command></term>
|
---|
1295 | <listitem>
|
---|
1296 | <para>starts the Java IDL name server.</para>
|
---|
1297 | <indexterm zone="openjdk tnameserv">
|
---|
1298 | <primary sortas="b-tnameserv">tnameserv</primary>
|
---|
1299 | </indexterm>
|
---|
1300 | </listitem>
|
---|
1301 | </varlistentry>
|
---|
1302 |
|
---|
1303 | <varlistentry id="unpack200">
|
---|
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>
|
---|
1309 | <indexterm zone="openjdk unpack200">
|
---|
1310 | <primary sortas="b-unpack200">unpack200</primary>
|
---|
1311 | </indexterm>
|
---|
1312 | </listitem>
|
---|
1313 | </varlistentry>
|
---|
1314 |
|
---|
1315 | <varlistentry id="wsgen">
|
---|
1316 | <term><command>wsgen</command></term>
|
---|
1317 | <listitem>
|
---|
1318 | <para>generates JAX-WS portable artifacts used in JAX-WS
|
---|
1319 | web services.</para>
|
---|
1320 | <indexterm zone="openjdk wsgen">
|
---|
1321 | <primary sortas="b-wsgen">wsgen</primary>
|
---|
1322 | </indexterm>
|
---|
1323 | </listitem>
|
---|
1324 | </varlistentry>
|
---|
1325 |
|
---|
1326 | <varlistentry id="wsimport">
|
---|
1327 | <term><command>wsimport</command></term>
|
---|
1328 | <listitem>
|
---|
1329 | <para>generates JAX-WS portable artifacts.</para>
|
---|
1330 | <indexterm zone="openjdk wsimport">
|
---|
1331 | <primary sortas="b-wsimport">wsimport</primary>
|
---|
1332 | </indexterm>
|
---|
1333 | </listitem>
|
---|
1334 | </varlistentry>
|
---|
1335 |
|
---|
1336 | <varlistentry id="xjc">
|
---|
1337 | <term><command>xjc</command></term>
|
---|
1338 | <listitem>
|
---|
1339 | <para>is a Java XML binding compiler.</para>
|
---|
1340 | <indexterm zone="openjdk xjc">
|
---|
1341 | <primary sortas="b-xjc">xjc</primary>
|
---|
1342 | </indexterm>
|
---|
1343 | </listitem>
|
---|
1344 | </varlistentry>
|
---|
1345 |
|
---|
1346 | </variablelist>
|
---|
1347 |
|
---|
1348 | </sect2>
|
---|
1349 |
|
---|
1350 | </sect1>
|
---|