Gentoo Archives: gentoo-doc-cvs

From: Josh Saddler <nightmorph@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: java.xml
Date: Sun, 08 Oct 2006 22:52:35
Message-Id: 20061008225217.82A996441C@smtp.gentoo.org
1 nightmorph 06/10/08 22:52:16
2
3 Modified: java.xml
4 Log:
5 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
6
7 Revision Changes Path
8 1.34 xml/htdocs/doc/en/java.xml
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/java.xml?rev=1.34&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/java.xml?rev=1.34&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/java.xml?r1=1.33&r2=1.34
13
14 Index: java.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/java.xml,v
17 retrieving revision 1.33
18 retrieving revision 1.34
19 diff -u -r1.33 -r1.34
20 --- java.xml 10 Sep 2006 22:27:26 -0000 1.33
21 +++ java.xml 8 Oct 2006 22:52:16 -0000 1.34
22 @@ -1,5 +1,5 @@
23 <?xml version="1.0" encoding="UTF-8"?>
24 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/java.xml,v 1.33 2006/09/10 22:27:26 nightmorph Exp $ -->
25 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/java.xml,v 1.34 2006/10/08 22:52:16 nightmorph Exp $ -->
26 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
27
28 <guide link="/doc/en/java.xml">
29 @@ -24,8 +24,8 @@
30 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
31 <license/>
32
33 -<version>0.9</version>
34 -<date>2006-09-10</date>
35 +<version>0.10</version>
36 +<date>2006-10-08</date>
37
38 <chapter>
39 <title>What is Java?</title>
40 @@ -291,18 +291,13 @@
41
42 <pre caption="Listing available VMs">
43 # <i>java-config --list-available-vms</i>
44 -1) Blackdown JDK 1.3.1 [blackdown-jdk-1.3] (/etc/env.d/java/20blackdown-jdk-1.3)
45 -2) Blackdown JDK 1.4.2.02 [blackdown-jdk-1.4] (/etc/env.d/java/20blackdown-jdk-1.4)
46 -3) Blackdown JRE 1.4.2.02 [blackdown-jre-1.4] (/etc/env.d/java/20blackdown-jre-1.4)
47 -4) IBM JDK 1.4.2 [ibm-jdk-bin-1.4] (/etc/env.d/java/20ibm-jdk-bin-1.4)
48 -5) IBM JRE 1.4.2 [ibm-jre-bin-1.4] (/etc/env.d/java/20ibm-jre-bin-1.4)
49 -6) WebLogic JRockit 1.4.2.05 [jrockit-jdk-bin-1.4] (/etc/env.d/java/20jrockit-jdk-bin-1.4)
50 -7) WebLogic JRockit 1.5.0.03 [jrockit-jdk-bin-1.5] (/etc/env.d/java/20jrockit-jdk-bin-1.5)
51 -8) Sun JDK 1.3.1.13 [sun-jdk-1.3] (/etc/env.d/java/20sun-jdk-1.3)
52 -9) Sun JDK 1.4.2.09 [sun-jdk-1.4] (/etc/env.d/java/20sun-jdk-1.4)
53 -*) Sun JDK 1.5.0.04 [sun-jdk-1.5] (/etc/env.d/java/20sun-jdk-1.5)
54 -11) Sun JRE 1.4.2.09 [sun-jre-bin-1.4] (/etc/env.d/java/20sun-jre-bin-1.4)
55 -12) Sun JRE 1.5.0.04 [sun-jre-bin-1.5] (/etc/env.d/java/20sun-jre-bin-1.5)
56 +The following VMs are available for generation-2:
57 +1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
58 +2) Blackdown JRE 1.4.2.03 [blackdown-jre-1.4.2]
59 +3) Blackdown 32bit JRE 1.4.2.03 [emul-linux-x86-java-1.4.2]
60 +4) Sun 32bit JRE 1.5.0.08 [emul-linux-x86-java-1.5]
61 +5) Kaffe 1.1.7 [kaffe]
62 +*) Sun JDK 1.5.0.08 [sun-jdk-1.5]
63 </pre>
64
65 <p>
66 @@ -315,8 +310,10 @@
67 <pre caption="Setting the System VM">
68 <comment>(By handle (preferred))</comment>
69 # <i>java-config --set-system-vm blackdown-jdk-1.4</i>
70 +Now using blackdown-jdk-1.4 as your generation-2 system JVM
71 <comment>(By number)</comment>
72 -# <i>java-config --set-system-vm 2</i>
73 +# <i>java-config --set-system-vm 6</i>
74 +Now using sun-jdk-1.5 as your generation-2 system JVM
75 </pre>
76
77 <p>
78 @@ -541,6 +538,114 @@
79 </chapter>
80
81 <chapter>
82 +<title>Java Browser Plug-ins</title>
83 +<section>
84 +<title>Installing a plug-in</title>
85 +<body>
86 +
87 +<p>
88 +You can install a Java plug-in for your web browser by emerging a Java VM with
89 +the <c>nsplugin</c> USE flag set.
90 +</p>
91 +
92 +<note>
93 +<c>nsplugin</c> is not available for all architectures. Check for available
94 +plug-ins on your arch before trying to install a VM by running <c>emerge -pv
95 +&lt;java-vm&gt;</c>.
96 +</note>
97 +
98 +<p>
99 +Portage will allow you to install multiple versions of Java plug-ins, though
100 +only one will be used by your browser. You can check the list of available
101 +plug-ins by running:
102 +</p>
103 +
104 +<pre caption="Viewing available plug-ins">
105 +# <i>eselect java-nsplugin list</i>
106 + [1] sun-jre-bin-1.5
107 + [2] blackdown-jre-1.4.2
108 +</pre>
109 +
110 +<p>
111 +In this example, <c>sun-jre-bin</c> is selected for the browser plug-in.
112 +</p>
113 +
114 +<pre caption="Selecting a plug-in">
115 +# <i>eselect java-nsplugin sun-jre-bin-1.5</i>
116 +</pre>
117 +
118 +<p>
119 +Verify that the correct plug-in was selected:
120 +</p>
121 +
122 +<pre caption="Verifying the correct plug-in">
123 +# <i>eselect java-nsplugin list</i>
124 + [1] sun-jre-bin-1.5 current
125 + [2] blackdown-jre-1.4.2
126 +</pre>
127 +
128 +<p>
129 +Java.com also provides a link to <uri
130 +link="http://java.com/en/download/installed.jsp">verify your installed
131 +plug-in</uri>. Additionally, if you are using a Mozilla-based browser, you can
132 +verify your Java plug-in by typing <c>about:plugins</c> into the address bar.
133 +</p>
134 +
135 +</body>
136 +</section>
137 +<section>
138 +<title>Plug-ins on multilib systems</title>
139 +<body>
140 +
141 +<p>
142 +If you are running a mixed 64-bit and 32-bit multilib system (for example, on AMD64),
143 +you can have both 64-bit and a 32-bit Java plug-ins installed.
144 +</p>
145 +
146 +<p>
147 +First, check which plug-ins are available:
148 +</p>
149 +
150 +<pre caption="Viewing available plug-ins">
151 +# <i>eselect java-nsplugin list</i>
152 +Available 32-bit Java browser plugins
153 + [1] emul-linux-x86-java-1.4.2
154 + [2] emul-linux-x86-java-1.5
155 +Available 64-bit Java browser plugins
156 + [1] blackdown-jdk-1.4.2
157 + [2] blackdown-jre-1.4.2
158 +</pre>
159 +
160 +<p>
161 +You can select a 32-bit plug-in for a 32-bit browser (for example,
162 +<c>firefox-bin</c>), and you can select a 64-bit plug-in for your 64-bit
163 +browser (for example, <c>konqueror</c>).
164 +</p>
165 +
166 +<pre caption="Selecting plug-ins">
167 +# <i>eselect java-nsplugin set 32bit emul-linux-x86-java-1.4.2</i>
168 +# <i>eselect java-nsplugin set 64bit blackdown-jdk-1.4.2</i>
169 +</pre>
170 +
171 +<p>
172 +Verify the correct plug-ins were selected:
173 +</p>
174 +
175 +<pre caption="Verifying the correct plug-ins">
176 +# <i>eselect java-nsplugin list</i>
177 +Available 32-bit Java browser plugins
178 + [1] emul-linux-x86-java-1.4.2 current
179 + [2] emul-linux-x86-java-1.5
180 +Available 64-bit Java browser plugins
181 + [1] blackdown-jdk-1.4.2 current
182 + [2] blackdown-jre-1.4.2
183 +</pre>
184 +
185 +</body>
186 +</section>
187 +</chapter>
188 +
189 +<chapter>
190 <title>USE flags for use with Java</title>
191 <section>
192 <title>Setting USE flags</title>
193
194
195
196 --
197 gentoo-doc-cvs@g.o mailing list