/[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.15 Revision 1.16
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.15 2005/03/23 13:40:23 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/java.xml,v 1.16 2005/09/29 18:22:22 rane 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
20Java with Gentoo Linux. 20Java with Gentoo Linux.
21</abstract> 21</abstract>
22 22
23<license/> 23<license/>
24 24
25<version>0.1.6</version> 25<version>0.1.7</version>
26<date>2005-03-06</date> 26<date>2005-09-29</date>
27 27
28<chapter> 28<chapter>
29<title>What is Java?</title> 29<title>What is Java?</title>
30<section> 30<section>
31<title>Overview</title> 31<title>Overview</title>
191(generally <path>~/.bashrc</path>). 191(generally <path>~/.bashrc</path>).
192</p> 192</p>
193 193
194</body> 194</body>
195</section> 195</section>
196
197<section>
198<title>Setting a default CLASSPATH</title>
199<body>
200
201<p>
202<c>java-config</c> can also be used to set a system-wide default CLASSPATH, and
203of course a user-specific default CLASSPATH.
204</p>
205
206<p>
207First you want to list available java libraries that might be interesting to put
208in your CLASSPATH. Here is an example of output:
209</p>
210
211<pre caption="Listing classes">
212# <i>java-config --list-available-packages</i>
213[bsh] BeanShell is a small, free, embeddable, Java
214source interpreter with object scripting language
215features. (/usr/share/bsh/package.env)
216[oro] A set of text-processing Java classes that
217provide Perl5 compatible regular expressions, AWK-like
218regular expressions, glob expressions, and utility
219classes for performing substitutions, splits, filtering
220filenames, etc. (/usr/share/oro/package.env)
221[bcel] The Byte Code Engineering Library: analyze, create,
222manipulate Java class files (/usr/share/bcel/package.env)
223[jsch] JSch is a pure Java implementation of SSH2.
224(/usr/share/jsch/package.env)
225...
226</pre>
227
228<p>
229Again, the name in brackets <path>"[]"</path> are the IDs that you have to pass
230to <c>java-config --set-system-classpath</c>. Here is an example:
231</p>
232
233<pre caption="Setting classpaths">
234# <i>java-config --set-system-classpath=log4j,java-gtk,java-gnome</i>
235</pre>
236
237<note>
238The current directory (.) will not be part of the system classpath, as that
239should be added in root's login profile.
240</note>
241
242<p>
243Again, you will want to run <c>env-update</c> to update your system's
244environment, and you might also want to relogin or resource the
245<path>/etc/profile</path>.
246</p>
247
248<p>
249For users, <c>java-config --set-user-classpath</c> will create
250<path>~/.gentoo/java-env-classpath</path>, which is automatically included
251by <path>~/.gentoo/java-env</path>.
252</p>
253
254</body>
255</section>
256</chapter> 196</chapter>
257 197
258<chapter> 198<chapter>
259<title>USE flags for use with Java</title> 199<title>USE flags for use with Java</title>
260<section> 200<section>
273<title>The flags</title> 213<title>The flags</title>
274<body> 214<body>
275 215
276<ul> 216<ul>
277<li>The <b>java</b> flag adds support for Java in a variety of programs.</li> 217<li>The <b>java</b> flag adds support for Java in a variety of programs.</li>
278<li>The <b>mozilla</b> flag adds support for Mozilla-like browsers (including Firefox) 218<li>The <b>browserplugin</b> flag adds support for Mozilla-like browsers (including Firefox)
279if you are using blackdown's Java kit. You will need this for viewing Java applets 219if you are using blackdown's Java kit. You will need this for viewing Java applets
280in your Mozilla-like browser.</li> 220in your Mozilla-like browser.</li>
281</ul> 221</ul>
282 222
283</body> 223</body>
303<title>Online resources</title> 243<title>Online resources</title>
304<body> 244<body>
305<ul> 245<ul>
306<li>The <uri link="http://news.gmane.org/gmane.linux.gentoo.devel" 246<li>The <uri link="http://news.gmane.org/gmane.linux.gentoo.devel"
307>gentoo-dev</uri>, <uri link="http://news.gmane.org/gmane.linux.gentoo.user" 247>gentoo-dev</uri>, <uri link="http://news.gmane.org/gmane.linux.gentoo.user"
308>gentoo-user </uri> mailing list archives</li> 248>gentoo-user </uri> and <uri link="http://news.gmane.org/gmane.linux.gentoo.java">gentoo-java</uri> mailing list archives</li>
309<li>#gentoo and #gentoo-java on irc.freenode.net</li> 249<li>#gentoo and #gentoo-java on irc.freenode.net</li>
310<li><uri link="http://en.wikipedia.org/wiki/Java_programming_language">Wikipedia's entry for Java</uri></li> 250<li><uri link="http://en.wikipedia.org/wiki/Java_programming_language">Wikipedia's entry for Java</uri></li>
311</ul> 251</ul>
312 252
313</body> 253</body>

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.20