source: general/prog/java.xml@ ec5324f

systemd-13485
Last change on this file since ec5324f was 8770a48, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Update to doxygen-1.8.10
Update to OpenJDK-1.8.0.51
Update to check-0.10.0
Fix a build error in Valgrind using glibc-2.22
Update to GnuTLS-3.4.4.1
Update to acpid-2.0.25
Update to cURL-7.44.0
Update to libpng-1.6.18
Update to cmake-3.3.1
Update to harfbuzz-1.0.2
Update to libdrm-2.4.64
Update to Mesa-10.6.4 (will wait for 11.x release for next update)
Update to Linux-PAM-1.2.1
Update to xterm-319
Update to gdk-pixbuf-2.31.6
Update to vala-0.28.1
Update to LVM2-2.02.128
Update to openbox-3.6.1
Update to PIN-Entry-0.9.5
Update to GnuPG-2.1.7
Update to gcr-3.16.0
Fix URL for gsettings-desktop-schemas-3.16.1
Add some short descriptions by Denis.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16358 af4574ff-66df-0310-9fd7-8a98e5e911e0

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