1 |
<?xml version='1.0' encoding="UTF-8"?> |
<?xml version='1.0' encoding="UTF-8"?> |
2 |
<?xml-stylesheet href="/xsl/guide.xsl" type="text/xsl"?> |
<!-- $Header$ --> |
3 |
|
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
4 |
|
|
5 |
<guide link = "/doc/en/java.xml"> |
<guide link = "/doc/en/java.xml"> |
6 |
<title>Gentoo Java Guide</title> |
<title>Gentoo Java Guide</title> |
7 |
<author title="Author and Editor"> |
<author title="Author and Editor"> |
8 |
<mail link="karltk@gentoo.org">Karl Trygve Kalleberg</mail> |
<mail link="karltk@gentoo.org">Karl Trygve Kalleberg</mail> |
9 |
</author> |
</author> |
10 |
|
<author title="Editor"> |
11 |
|
<mail link="swift@gentoo.org">Sven Vermeulen</mail> |
12 |
|
</author> |
13 |
|
|
14 |
<abstract> |
<abstract> |
15 |
Users' and Developers' Guide to Java in Gentoo |
Users' and Developers' Guide to Java in Gentoo |
17 |
|
|
18 |
<license/> |
<license/> |
19 |
|
|
20 |
<version>0.1.2</version> |
<version>0.1.3</version> |
21 |
<date>September 4, 2002</date> |
<date>November 16, 2003</date> |
22 |
|
|
23 |
<chapter> |
<chapter> |
24 |
<title>Installing a JDK/JRE</title> |
<title>Installing a JDK/JRE</title> |
83 |
<body> |
<body> |
84 |
|
|
85 |
<p>Gentoo has the ability to have multiple JDKs and JREs installed |
<p>Gentoo has the ability to have multiple JDKs and JREs installed |
86 |
without them conflicting. There are a few caveats to this, as noted |
without them conflicting. |
|
below. |
|
87 |
</p> |
</p> |
88 |
|
|
89 |
<p>Using the <c>java-config</c> tool, you can set the system-wide |
<p>Using the <c>java-config</c> tool, you can set the system-wide |
228 |
|
|
229 |
</body> |
</body> |
230 |
</section> |
</section> |
|
</chapter> |
|
|
|
|
|
<chapter> |
|
|
<title>Caveats</title> |
|
|
<section> |
|
|
<title>General</title> |
|
|
|
|
|
<body> |
|
|
|
|
|
<p>If you select a JRE as your default VM, you may not have a |
|
|
<c>javac</c> command handy at all times, unless you have manually |
|
|
installed a symlink to take care of that. |
|
|
</p> |
|
|
|
|
|
<p>Jikes will be used to compile some of the largest packages, if it |
|
|
is available. With time, we hope to be able to compile all |
|
|
java-dependent packages with Jikes, so some dependencies on the JDK |
|
|
can be replaced with a dependency on the JRE.</p> |
|
|
|
|
|
<p>With some versions of Portage, doing an <c>emerge --update world</c> |
|
|
will install the JDK regardless if whether you have it |
|
|
installed before or not. This is a known bug addressed in later |
|
|
versions of Portage. |
|
|
</p> |
|
|
|
|
|
</body> |
|
|
</section> |
|
231 |
</chapter> |
</chapter> |
232 |
</guide> |
</guide> |