source: general/prog/java.xml@ c7a230b

10.0 10.1 11.0 9.0 9.1 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since c7a230b was c7a230b, checked in by Douglas R. Reno <renodr@…>, 2 years ago

Update to OpenJDK-12.0.2+10

The i686 binary will be generated and uploaded before BLFS 9.0's release.

In addition, I have not tested a build of Libreoffice with this, nor fop, due to the proximity of the freeze

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

  • Property mode set to 100644
File size: 6.4 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<!-- 32-bit binary for JDK12 pending, will be done before 9.0 releases -->
10 <!ENTITY anduin-download "&sources-anduin-http;/OpenJDK/OpenJDK-&openjdk-version;">
11 <!ENTITY openjdk-download-binary-x86 "&anduin-download;/OpenJDK-11.0.2+9-i686-bin.tar.xz">
12 <!ENTITY openjdk-bin-md5sum-x86 "2b917647040e9804e0f3ccd51f40394b">
13 <!ENTITY openjdk-bin-size-x86 "158 MB">
14 <!ENTITY openjdk-bin-buildsize-x86 "273 MB">
15
16<!-- Not uploaded to anduin, since this file is now available under GNU GPLv2
17 licence.-->
18<!-- I've crafted a binary in case the version is removed from Oracle after
19 BLFS 8.4 is released. -->
20 <!ENTITY openjdk-download-binary-x64 "https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/&openjdk-build;/GPL/openjdk-&openjdk-version;_linux-x64_bin.tar.gz">
21 <!ENTITY openjdk-bin-md5sum-x64 "f5da6f4dec81bdd2a096184ec1d69216">
22 <!ENTITY openjdk-bin-size-x64 "189 MB">
23 <!ENTITY openjdk-bin-buildsize-x64 "296 MB">
24]>
25
26<sect1 id="java" xreflabel="Java-&openjdk-version;">
27 <?dbhtml filename="java.html"?>
28
29 <sect1info>
30 <othername>$LastChangedBy$</othername>
31 <date>$Date$</date>
32 </sect1info>
33
34 <title>Java-&openjdk-version;</title>
35
36 <indexterm zone="java">
37 <primary sortas="a-java">JDK Binary</primary>
38 </indexterm>
39
40
41 <sect2>
42 <title>About Java</title>
43 <para>Java is different from most of the packages in LFS and BLFS. It
44 is a programming language that works with files of byte codes to obtain
45 instructions and executes then in a Java Virtual Machine (JVM). An
46 introductory java program looks like:</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>This program is saved as <filename>HelloWorld.java</filename>. The
57 file name, <emphasis>HelloWorld</emphasis>, must match the class name. It
58 is then converted into byte code with
59 <command>javac HelloWorld.java</command>. The output file is
60 <filename>HelloWorld.class</filename>. The program is executed with
61 <command>java HelloWorld</command>. This creates a JVM and runs the
62 code. The 'class' extension must not be specified.</para>
63
64 <para>Several class files can be combined into one file with the
65 <command>jar</command> command. This is similar to the standard
66 <command>tar</command> command. For instance, the command
67 <command>jar cf myjar.jar *.class</command> will combine all class files
68 in a directory into one jar file. These act as library files.</para>
69
70 <para>The JVM can search for and use classes in jar files automatically.
71 It uses the <envar>CLASSPATH</envar> environment variable to search for
72 jar files. This is a standard list of colon-separated directory names
73 similar to the <envar>PATH</envar> environment variable.</para>
74
75 </sect2>
76
77 <sect2 id="java-bin" xreflabel="Java Binary" role="package">
78 <title>Binary JDK Information</title>
79
80 <para>Creating a JVM from source requires a set of circular dependencies.
81 The first thing that's needed is a set of programs called a Java Development
82 Kit (JDK). This set of programs includes <command>java</command>,
83 <command>javac</command>, <command>jar</command>, and several others. It
84 also includes several base <emphasis>jar</emphasis> files.</para>
85
86 <para>To start, we set up a binary installation of the JDK created
87 by the BLFS editors. It is installed in the <filename>/opt</filename>
88 directory to allow for multiple installations, including a source based
89 version.</para>
90
91 &lfs84_checked;
92
93 <bridgehead renderas="sect3">Binary Package Information</bridgehead>
94 <itemizedlist spacing="compact">
95 <listitem>
96 <para>Binary download (x86):
97 <ulink url="&openjdk-download-binary-x86;"/></para>
98 </listitem>
99 <listitem>
100 <para>Download MD5 sum: &openjdk-bin-md5sum-x86;</para>
101 </listitem>
102 <listitem>
103 <para>Download size (binary): &openjdk-bin-size-x86;</para>
104 </listitem>
105 <listitem>
106 <para>Estimated disk space required: &openjdk-bin-buildsize-x86;</para>
107 </listitem>
108 </itemizedlist>
109 <itemizedlist spacing="compact">
110 <listitem>
111 <para>Binary download (x86_64):
112 <ulink url="&openjdk-download-binary-x64;"/></para>
113 </listitem>
114 <listitem>
115 <para>Download MD5 sum: &openjdk-bin-md5sum-x64;</para>
116 </listitem>
117 <listitem>
118 <para>Download size (binary): &openjdk-bin-size-x64;</para>
119 </listitem>
120 <listitem>
121 <para>Estimated disk space required: &openjdk-bin-buildsize-x64;</para>
122 </listitem>
123 </itemizedlist>
124
125 <bridgehead renderas="sect3">Java Binary Runtime Dependencies</bridgehead>
126 <para role="required">
127 <xref role="runtime" linkend="alsa-lib"/>,
128 <xref role="runtime" linkend="cups"/>,
129 <xref role="runtime" linkend="giflib"/>, and
130 <xref role="runtime" linkend="xorg7-lib"/>
131 </para>
132
133 </sect2>
134
135 <sect2 role="installation">
136 <title>Installation of the Java BinaryJDK </title>
137 <para>Begin by extracting the appropriate binary tarball for your
138 architecture and changing to the extracted directory. Install the binary
139 <application>OpenJDK</application> with the following commands as the
140 <systemitem class="username">root</systemitem> user:</para>
141
142<screen role="root"><userinput>install -vdm755 /opt/OpenJDK-&openjdk-version;+&openjdk-build;-bin &amp;&amp;
143mv -v * /opt/OpenJDK-&openjdk-version;+&openjdk-build;-bin &amp;&amp;
144chown -R root:root /opt/OpenJDK-&openjdk-version;+&openjdk-build;-bin</userinput></screen>
145
146 <para>
147 The binary version is now installed. You may create a symlink to that
148 version by issuing, as the <systemitem class="username">root</systemitem>
149 user:
150 </para>
151
152<screen role="root"><userinput>ln -sfn OpenJDK-&openjdk-version;+&openjdk-build;-bin /opt/jdk</userinput></screen>
153
154 <para>
155 You may now proceed to <xref linkend="ojdk-conf"/>, where the
156 instructions assume that the above link exists.
157 </para>
158
159 </sect2>
160
161</sect1>
Note: See TracBrowser for help on using the repository browser.