source: general/prog/java.xml@ a790ec35

11.2 plabs/python-mods qt5new trunk xry111/soup3
Last change on this file since a790ec35 was a790ec35, checked in by Pierre Labastie <pierre.labastie@…>, 7 months ago

FInish updating to OpenJDK-18.0.1.1

  • Property mode set to 100644
File size: 6.8 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<!-- Maintainer: before making the tarball, remove all .debuginfo files from
8 the directory: this saves more than 70 MB. -->
9 <!ENTITY anduin-download "&sources-anduin-http;/OpenJDK/OpenJDK-&openjdk-version;">
10 <!ENTITY openjdk-download-binary-x86 "&sources-anduin-http;/OpenJDK/OpenJDK-&openjdk-version;/OpenJDK-&openjdk-version;+&openjdk-build;-i686-bin.tar.xz">
11 <!ENTITY openjdk-bin-md5sum-x86 "cdcbbd909fff6db24473f6a49f1e6dcb">
12 <!ENTITY openjdk-bin-size-x86 "154 MB">
13 <!ENTITY openjdk-bin-buildsize-x86 "295 MB">
14
15<!-- Not uploaded to anduin, since this file is now available under GNU GPLv2
16 licence.-->
17<!-- Reuploaded to anduin due to the complexity of the download URL, per Bruce's
18 request. - Doug -->
19 <!ENTITY openjdk-download-binary-x64 "&sources-anduin-http;/OpenJDK/OpenJDK-&openjdk-version;/OpenJDK-&openjdk-version;+&openjdk-build;-x86_64-bin.tar.xz">
20 <!ENTITY openjdk-bin-md5sum-x64 "99ec5eb2a973081120c63cce2079f7b8">
21 <!ENTITY openjdk-bin-size-x64 "160 MB">
22 <!ENTITY openjdk-bin-buildsize-x64 "319 MB">
23]>
24
25<sect1 id="java" xreflabel="Java-&openjdk-version;">
26 <?dbhtml filename="java.html"?>
27
28 <sect1info>
29 <date>$Date$</date>
30 </sect1info>
31
32 <title>Java-&openjdk-version;</title>
33
34 <indexterm zone="java">
35 <primary sortas="a-java">JDK Binary</primary>
36 </indexterm>
37
38
39 <sect2>
40 <title>About Java</title>
41 <para>
42 Java is different from most of the packages in LFS and BLFS. It
43 is a programming language that works with files of bytecode to obtain
44 instructions and executes them in a Java Virtual Machine (JVM). An
45 introductory java program looks like:
46 </para>
47
48<screen><literal>public class HelloWorld
49{
50 public static void main(String[] args)
51 {
52 System.out.println("Hello, World");
53 }
54}</literal></screen>
55
56 <para>
57 This program is saved as <filename>HelloWorld.java</filename>. The
58 file name, <emphasis>HelloWorld</emphasis>, must match the class name.
59 It is then converted into byte code with
60 <command>javac HelloWorld.java</command>. The output file is
61 <filename>HelloWorld.class</filename>. The program is executed with
62 <command>java HelloWorld</command>. This creates a JVM and runs the
63 code. The 'class' extension must not be specified.
64 </para>
65
66 <para>
67 Several class files can be combined into one file with the
68 <command>jar</command> command. This is similar to the standard
69 <command>tar</command> command. For instance, the command
70 <command>jar cf myjar.jar *.class</command> will combine all class files
71 in a directory into one jar file. These act as library files.
72 </para>
73
74 <para>
75 The JVM can search for and use classes in jar files automatically.
76 It uses the <envar>CLASSPATH</envar> environment variable to search for
77 jar files. This is a standard list of colon-separated directory names
78 similar to the <envar>PATH</envar> environment variable.
79 </para>
80
81 </sect2>
82
83 <sect2 id="java-bin" xreflabel="Java Binary" role="package">
84 <title>Binary JDK Information</title>
85
86 <para>
87 Creating a JVM from source requires a set of circular dependencies.
88 The first thing that's needed is a set of programs called a Java
89 Development Kit (JDK). This set of programs includes
90 <command>java</command>, <command>javac</command>,
91 <command>jar</command>, and several others. It also includes several
92 base <emphasis>jar</emphasis> files.
93 </para>
94
95 <para>
96 To start, we set up a binary installation of the JDK created
97 by the BLFS editors. It is installed in the <filename>/opt</filename>
98 directory to allow for multiple installations, including a source based
99 version.
100 </para>
101
102 &lfs111_checked;
103
104 <bridgehead renderas="sect3">Binary Package Information</bridgehead>
105 <itemizedlist spacing="compact">
106 <listitem>
107 <para>
108 Binary download (x86): <ulink url="&openjdk-download-binary-x86;"/>
109 </para>
110 </listitem>
111 <listitem>
112 <para>
113 Download MD5 sum: &openjdk-bin-md5sum-x86;
114 </para>
115 </listitem>
116 <listitem>
117 <para>
118 Download size (binary): &openjdk-bin-size-x86;
119 </para>
120 </listitem>
121 <listitem>
122 <para>
123 Estimated disk space required: &openjdk-bin-buildsize-x86;
124 </para>
125 </listitem>
126 </itemizedlist>
127 <itemizedlist spacing="compact">
128 <listitem>
129 <para>
130 Binary download (x86_64): <ulink url="&openjdk-download-binary-x64;"/>
131 </para>
132 </listitem>
133 <listitem>
134 <para>
135 Download MD5 sum: &openjdk-bin-md5sum-x64;
136 </para>
137 </listitem>
138 <listitem>
139 <para>
140 Download size (binary): &openjdk-bin-size-x64;
141 </para>
142 </listitem>
143 <listitem>
144 <para>
145 Estimated disk space required: &openjdk-bin-buildsize-x64;
146 </para>
147 </listitem>
148 </itemizedlist>
149
150 <bridgehead renderas="sect3">Java Binary Runtime Dependencies</bridgehead>
151 <para role="required">
152 <xref role="runtime" linkend="alsa-lib"/>,
153 <xref role="runtime" linkend="cups"/>,
154 <xref role="runtime" linkend="giflib"/>, and
155 <xref role="runtime" linkend="xorg7-lib"/>
156 </para>
157
158 </sect2>
159
160 <sect2 role="installation">
161 <title>Installation of the Java BinaryJDK </title>
162<!--
163 <note>
164 <para>
165 The tarball
166 <emphasis>openjdk-&openjdk-version;_linux-x64_bin.tar.gz</emphasis> will
167 untar to the <emphasis>jdk-&openjdk-version;</emphasis> directory.
168 </para>
169 </note>
170-->
171 <para>
172 Begin by extracting the appropriate binary tarball for your
173 architecture and changing to the extracted directory. Install the binary
174 <application>OpenJDK</application> with the following commands as the
175 <systemitem class="username">root</systemitem> user:
176 </para>
177
178<screen role="root"><userinput>install -vdm755 /opt/OpenJDK-&openjdk-version;-bin &amp;&amp;
179mv -v * /opt/OpenJDK-&openjdk-version;-bin &amp;&amp;
180chown -R root:root /opt/OpenJDK-&openjdk-version;-bin</userinput></screen>
181
182 <para>
183 The binary version is now installed. You may create a symlink to that
184 version by issuing, as the <systemitem class="username">root</systemitem>
185 user:
186 </para>
187
188<screen role="root"><userinput>ln -sfn OpenJDK-&openjdk-version;-bin /opt/jdk</userinput></screen>
189
190 <para>
191 You may now proceed to <xref linkend="ojdk-conf"/>, where the
192 instructions assume that the above link exists.
193 </para>
194
195 </sect2>
196
197</sect1>
Note: See TracBrowser for help on using the repository browser.