nightmorph    06/10/08 22:52:16

  Modified:             java.xml
  Log:
  Updated java.xml for bug 148699. includes new java browser plug-in chapter, 
as well as updated code listings. thanks to nichoj for the help

Revision  Changes    Path
1.34                 xml/htdocs/doc/en/java.xml

file : 
http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/java.xml?rev=1.34&view=markup
plain: 
http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/java.xml?rev=1.34&content-type=text/plain
diff : 
http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/java.xml?r1=1.33&r2=1.34

Index: java.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/java.xml,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- java.xml    10 Sep 2006 22:27:26 -0000      1.33
+++ java.xml    8 Oct 2006 22:52:16 -0000       1.34
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/java.xml,v 1.33 2006/09/10 
22:27:26 nightmorph Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/java.xml,v 1.34 2006/10/08 
22:52:16 nightmorph Exp $ -->
 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
 
 <guide link="/doc/en/java.xml">
@@ -24,8 +24,8 @@
 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
 <license/>
 
-<version>0.9</version>
-<date>2006-09-10</date>
+<version>0.10</version>
+<date>2006-10-08</date>
 
 <chapter>
 <title>What is Java?</title>
@@ -291,18 +291,13 @@
 
 <pre caption="Listing available VMs">
 # <i>java-config --list-available-vms</i>
-1) Blackdown JDK 1.3.1 [blackdown-jdk-1.3] 
(/etc/env.d/java/20blackdown-jdk-1.3)
-2) Blackdown JDK 1.4.2.02 [blackdown-jdk-1.4] 
(/etc/env.d/java/20blackdown-jdk-1.4)
-3) Blackdown JRE 1.4.2.02 [blackdown-jre-1.4] 
(/etc/env.d/java/20blackdown-jre-1.4)
-4) IBM JDK 1.4.2 [ibm-jdk-bin-1.4] (/etc/env.d/java/20ibm-jdk-bin-1.4)
-5) IBM JRE 1.4.2 [ibm-jre-bin-1.4] (/etc/env.d/java/20ibm-jre-bin-1.4)
-6) WebLogic JRockit 1.4.2.05 [jrockit-jdk-bin-1.4] 
(/etc/env.d/java/20jrockit-jdk-bin-1.4)
-7) WebLogic JRockit 1.5.0.03 [jrockit-jdk-bin-1.5] 
(/etc/env.d/java/20jrockit-jdk-bin-1.5)
-8) Sun JDK 1.3.1.13 [sun-jdk-1.3] (/etc/env.d/java/20sun-jdk-1.3)
-9) Sun JDK 1.4.2.09 [sun-jdk-1.4] (/etc/env.d/java/20sun-jdk-1.4)
-*) Sun JDK 1.5.0.04 [sun-jdk-1.5] (/etc/env.d/java/20sun-jdk-1.5)
-11) Sun JRE 1.4.2.09 [sun-jre-bin-1.4] (/etc/env.d/java/20sun-jre-bin-1.4)
-12) Sun JRE 1.5.0.04 [sun-jre-bin-1.5] (/etc/env.d/java/20sun-jre-bin-1.5)
+The following VMs are available for generation-2:
+1)      Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
+2)      Blackdown JRE 1.4.2.03 [blackdown-jre-1.4.2]
+3)      Blackdown 32bit JRE 1.4.2.03 [emul-linux-x86-java-1.4.2]
+4)      Sun 32bit JRE 1.5.0.08 [emul-linux-x86-java-1.5]
+5)      Kaffe 1.1.7 [kaffe]
+*)      Sun JDK 1.5.0.08 [sun-jdk-1.5]
 </pre>
 
 <p>
@@ -315,8 +310,10 @@
 <pre caption="Setting the System VM">
 <comment>(By handle (preferred))</comment>
 # <i>java-config --set-system-vm blackdown-jdk-1.4</i>
+Now using blackdown-jdk-1.4 as your generation-2 system JVM
 <comment>(By number)</comment>
-# <i>java-config --set-system-vm 2</i>
+# <i>java-config --set-system-vm 6</i>
+Now using sun-jdk-1.5 as your generation-2 system JVM
 </pre>
 
 <p>
@@ -541,6 +538,114 @@
 </chapter>
 
 <chapter>
+<title>Java Browser Plug-ins</title>
+<section>
+<title>Installing a plug-in</title>
+<body>
+
+<p>
+You can install a Java plug-in for your web browser by emerging a Java VM with
+the <c>nsplugin</c> USE flag set.
+</p>
+
+<note>
+<c>nsplugin</c> is not available for all architectures. Check for available
+plug-ins on your arch before trying to install a VM by running <c>emerge -pv
+&lt;java-vm&gt;</c>.
+</note>
+
+<p>
+Portage will allow you to install multiple versions of Java plug-ins, though
+only one will be used by your browser. You can check the list of available
+plug-ins by running:
+</p>
+
+<pre caption="Viewing available plug-ins">
+# <i>eselect java-nsplugin list</i>
+   [1]   sun-jre-bin-1.5
+   [2]   blackdown-jre-1.4.2
+</pre>
+
+<p>
+In this example, <c>sun-jre-bin</c> is selected for the browser plug-in.
+</p>
+
+<pre caption="Selecting a plug-in">
+# <i>eselect java-nsplugin sun-jre-bin-1.5</i>
+</pre>
+
+<p>
+Verify that the correct plug-in was selected:
+</p>
+
+<pre caption="Verifying the correct plug-in">
+# <i>eselect java-nsplugin list</i>
+   [1]   sun-jre-bin-1.5  current
+   [2]   blackdown-jre-1.4.2
+</pre>
+
+<p>
+Java.com also provides a link to <uri
+link="http://java.com/en/download/installed.jsp";>verify your installed
+plug-in</uri>. Additionally, if you are using a Mozilla-based browser, you can
+verify your Java plug-in by typing <c>about:plugins</c> into the address bar.
+</p>
+
+</body>
+</section>
+<section>
+<title>Plug-ins on multilib systems</title>
+<body>
+
+<p>
+If you are running a mixed 64-bit and 32-bit multilib system (for example, on 
AMD64),
+you can have both 64-bit and a 32-bit Java plug-ins installed.
+</p>
+
+<p>
+First, check which plug-ins are available:
+</p>
+
+<pre caption="Viewing available plug-ins">
+# <i>eselect java-nsplugin list</i>
+Available 32-bit Java browser plugins
+  [1]   emul-linux-x86-java-1.4.2
+  [2]   emul-linux-x86-java-1.5
+Available 64-bit Java browser plugins
+  [1]   blackdown-jdk-1.4.2
+  [2]   blackdown-jre-1.4.2
+</pre>
+
+<p>
+You can select a 32-bit plug-in for a 32-bit browser (for example,
+<c>firefox-bin</c>), and you can select a 64-bit plug-in for your 64-bit
+browser (for example, <c>konqueror</c>).
+</p>
+
+<pre caption="Selecting plug-ins">
+# <i>eselect java-nsplugin set 32bit emul-linux-x86-java-1.4.2</i>
+# <i>eselect java-nsplugin set 64bit blackdown-jdk-1.4.2</i>
+</pre>
+
+<p>
+Verify the correct plug-ins were selected:
+</p>
+
+<pre caption="Verifying the correct plug-ins">
+# <i>eselect java-nsplugin list</i>
+Available 32-bit Java browser plugins
+  [1]   emul-linux-x86-java-1.4.2  current
+  [2]   emul-linux-x86-java-1.5
+Available 64-bit Java browser plugins
+  [1]   blackdown-jdk-1.4.2  current
+  [2]   blackdown-jre-1.4.2
+</pre>
+
+</body>
+</section>
+</chapter>
+
+<chapter>
 <title>USE flags for use with Java</title>
 <section>
 <title>Setting USE flags</title>



-- 
[email protected] mailing list

Reply via email to