source: general/prog/java.xml@ 62d70cb

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 62d70cb was 62d70cb, checked in by Pierre Labastie <pieere@…>, 5 years ago

Bump OpenJDK build number

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

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