/[gentoo]/xml/htdocs/doc/en/java.xml
Gentoo

Diff of /xml/htdocs/doc/en/java.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.36 Revision 1.37
1<?xml version="1.0" encoding="UTF-8"?> 1<?xml version="1.0" encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/java.xml,v 1.36 2006/10/16 12:18:15 nightmorph Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/java.xml,v 1.37 2007/01/11 20:52:46 nightmorph Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link="/doc/en/java.xml"> 5<guide link="/doc/en/java.xml">
6<title>Gentoo Java Guide</title> 6<title>Gentoo Java Guide</title>
7 7
8<author title="Author"> 8<author title="Author">
9 <mail link="nichoj@gentoo.org">Joshua Nichols</mail> 9 <mail link="nichoj@gentoo.org">Joshua Nichols</mail>
10</author> 10</author>
11<author title="Author"> 11<author title="Author">
12 <mail link="karltk@gentoo.org">Karl Trygve Kalleberg</mail> 12 <mail link="karltk@gentoo.org">Karl Trygve Kalleberg</mail>
13</author> 13</author>
14<author title="Editor"> 14<author title="Editor">
15 <mail link="nightmorph@gentoo.org">Joshua Saddler</mail> 15 <mail link="nightmorph@gentoo.org">Joshua Saddler</mail>
16</author> 16</author>
17 17
18<abstract> 18<abstract>
19This guide will introduce you to Java and explain how to use Java with Gentoo 19This guide will introduce you to Java and explain how to use Java with Gentoo
20Linux. 20Linux.
21</abstract> 21</abstract>
22 22
23<!-- The content of this document is licensed under the CC-BY-SA license --> 23<!-- The content of this document is licensed under the CC-BY-SA license -->
24<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 24<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
25<license/> 25<license/>
26 26
27<version>0.12</version> 27<version>0.13</version>
28<date>2006-10-16</date> 28<date>2007-01-11</date>
29 29
30<chapter> 30<chapter>
31<title>What is Java?</title> 31<title>What is Java?</title>
32<section> 32<section>
33<title>Overview</title> 33<title>Overview</title>
34<body> 34<body>
35 35
36<p> 36<p>
37Java is a programming language developed by engineers of Sun Microsystems. The 37Java is a programming language developed by engineers of Sun Microsystems. The
38language is object-oriented and designed to run on multiple platforms without 38language is object-oriented and designed to run on multiple platforms without
39the need of recompiling code for each platform. Although Java can be compiled 39the need of recompiling code for each platform. Although Java can be compiled
40as a native program, much of Java's popularity can be attributed to its 40as a native program, much of Java's popularity can be attributed to its
41portability, along with other features such as garbage collection. To make 41portability, along with other features such as garbage collection. To make
42platform independence possible the Java compiler compiles the Java code to an 42platform independence possible the Java compiler compiles the Java code to an
43intermediate representation called "Java bytecode" that runs on a JRE (Java 43intermediate representation called "Java bytecode" that runs on a JRE (Java
258</body> 258</body>
259</section> 259</section>
260<section id="preferred-vm"> 260<section id="preferred-vm">
261<title>Preferred VM</title> 261<title>Preferred VM</title>
262<body> 262<body>
263 263
264<p> 264<p>
265While merging Java packages, the VM can and will be switched as necessary. 265While merging Java packages, the VM can and will be switched as necessary.
266</p> 266</p>
267 267
268<p> 268<p>
269Because of the wide variety of available VMs, we do not have the resources to 269Because of the wide variety of available VMs, we do not have the resources to
270test and verify every package works on all of them. So to ensure that every 270test and verify every package works on all of them. So to ensure that every
271packages merges smoothly, we have defined a list of <e>default/supported 271packages merges smoothly, we have defined a list of <e>default/supported
272VMs</e> per arch. You can find them in 272VMs</e> per arch. You can find them in
273<path>/usr/share/java-config/config/jdk-defaults.conf</path>. When you are 273<path>/usr/share/java-config-2/config/jdk-defaults.conf</path>. When you are
274merging a Java package, and it detects one of the VM in that file is installed, 274merging a Java package, and it detects one of the VM in that file is installed,
275it will automatically use that VM, instead of the system-vm. 275it will automatically use that VM, instead of the system-vm.
276</p> 276</p>
277 277
278<p> 278<p>
279The merge time VM switching is also needed when, for example, your system-vm is 279The merge time VM switching is also needed when, for example, your system-vm is
280set a 1.4 VM and the package you are merging requires a 1.5 VM. While merging 280set a 1.4 VM and the package you are merging requires a 1.5 VM. While merging
281it will use the preferred 1.5 VM, leaving your system-vm choice intact. 281it will use the preferred 1.5 VM, leaving your system-vm choice intact.
282</p> 282</p>
283 283
284<p> 284<p>
285Of course, Gentoo is all about choice, so you can override these defaults in 285Of course, Gentoo is all about choice, so you can override these defaults in
286<path>/etc/java-config-2/build/jdk.conf</path> and have complete control over 286<path>/etc/java-config-2/build/jdk.conf</path> and have complete control over
287which VM will get used. Some examples: 287which VM will get used. Some examples:
288</p> 288</p>

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

  ViewVC Help
Powered by ViewVC 1.1.20