/[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.37 Revision 1.38
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.37 2007/01/11 20:52:46 nightmorph Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/java.xml,v 1.38 2007/01/23 19:35:12 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.13</version> 27<version>0.14</version>
28<date>2007-01-11</date> 28<date>2007-01-23</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
521verify your Java plug-in by typing <c>about:plugins</c> into the address bar. 521verify your Java plug-in by typing <c>about:plugins</c> into the address bar.
522</p> 522</p>
523 523
524</body> 524</body>
525</section> 525</section>
526<section> 526<section>
527<title>Plug-ins on multilib systems</title> 527<title>Plug-ins on multilib systems</title>
528<body> 528<body>
529 529
530<p> 530<p>
531If you are running a mixed 64-bit and 32-bit multilib system (for example, on AMD64), 531If you are running a mixed 64-bit and 32-bit multilib system (for example, on AMD64),
532you can have both 64-bit and a 32-bit Java plug-ins installed. 532you can have both 64-bit and a 32-bit Java plug-ins installed.
533</p> 533</p>
534 534
535<p> 535<p>
536To use a 32-bit plug-in, you will need to emerge <c>emul-linux-x86-java</c> with
537the <c>nsplugin</c> USE flag enabled.
538</p>
539
540<pre caption="Installing a 32-bit plug-in">
541# <i>echo "app-emulation/emul-linux-x86-java nsplugin" >> /etc/portage/package.use</i>
542# <i>emerge emul-linux-x86-java</i>
543</pre>
544
545<p>
536First, check which plug-ins are available: 546Next, check which plug-ins are available:
537</p> 547</p>
538 548
539<pre caption="Viewing available plug-ins"> 549<pre caption="Viewing available plug-ins">
540# <i>eselect java-nsplugin list</i> 550# <i>eselect java-nsplugin list</i>
541Available 32-bit Java browser plugins 551Available 32-bit Java browser plugins
542 [1] emul-linux-x86-java-1.4.2 552 [1] emul-linux-x86-java-1.4.2
543 [2] emul-linux-x86-java-1.5 553 [2] emul-linux-x86-java-1.5
544Available 64-bit Java browser plugins 554Available 64-bit Java browser plugins
545 [1] blackdown-jdk-1.4.2 555 [1] blackdown-jdk-1.4.2
546 [2] blackdown-jre-1.4.2 556 [2] blackdown-jre-1.4.2
547</pre> 557</pre>
548 558
549<p> 559<p>
550You can select a 32-bit plug-in for a 32-bit browser (for example, 560You can select a 32-bit plug-in for a 32-bit browser (for example,
551<c>firefox-bin</c>), and you can select a 64-bit plug-in for your 64-bit 561<c>firefox-bin</c>), and you can select a 64-bit plug-in for your 64-bit

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

  ViewVC Help
Powered by ViewVC 1.1.20