From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GAOIQ-0003lF-D1 for garchives@archives.gentoo.org; Tue, 08 Aug 2006 09:54:46 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k789sSuo020786; Tue, 8 Aug 2006 09:54:28 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k789sPrO028718 for ; Tue, 8 Aug 2006 09:54:26 GMT Received: from lark (lark.gentoo.osuosl.org [140.211.166.177]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with SMTP id 8F94D642C4 for ; Tue, 8 Aug 2006 09:51:13 +0000 (UTC) Received: by lark (sSMTP sendmail emulation); Tue, 8 Aug 2006 09:51:13 +0000 From: "Lukasz Damentko" Date: Tue, 8 Aug 2006 09:51:13 +0000 To: gentoo-doc-cvs@lists.gentoo.org Subject: [gentoo-doc-cvs] cvs commit: java.xml Message-Id: <20060808095113.8F94D642C4@smtp.gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-doc-cvs@gentoo.org Reply-to: docs-team@lists.gentoo.org X-Archives-Salt: cf5c7c9f-c7d8-41f0-8764-28b02a3154cb X-Archives-Hash: c49573fa48311508116b28b571648556 rane 06/08/08 09:51:12 Modified: java.xml Log: #143152, updated by java team Revision Changes Path 1.28 xml/htdocs/doc/en/java.xml file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/java.xml?rev=1.28&view=markup plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/java.xml?rev=1.28&content-type=text/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/java.xml?r1=1.27&r2=1.28 Index: java.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/java.xml,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- java.xml 25 Jul 2006 08:13:47 -0000 1.27 +++ java.xml 8 Aug 2006 09:51:12 -0000 1.28 @@ -1,15 +1,15 @@ - + Gentoo Java Guide - Karl Trygve Kalleberg + Joshua Nichols - Joshua Nichols + Karl Trygve Kalleberg Joshua Saddler @@ -24,8 +24,8 @@ -0.5 -2006-07-24 +0.6 +2006-08-07 What is Java? @@ -57,14 +57,113 @@ -Installing a JRE/JDK +New Java System +
+ + +

+The way Java is handled on Gentoo has recently seen many changes and +improvements. This has only happened very recently, and as a result, all the +packages related to it are marked with testing keywords, ie ~x86. This +document assumes you are using the new system. +

+ + +
+
+Keywords + + +

+If you are using the stable tree, i.e. x86, ppc, or amd64 as opposed to ~x86, +~ppc, or ~amd64, you will need to add some entries to your +/etc/portage/package.keywords: +

+ +
+# Core Gentoo/Java Packages
+dev-java/ant-core
+dev-java/ant-tasks
+dev-java/ant
+dev-java/java-config
+dev-java/java-config-wrapper
+dev-java/javatoolkit
+# JDKs
+=dev-java/sun-jdk-1.4*
+=dev-java/sun-jdk-1.5*
+=dev-java/ibm-jdk-bin-1.4*
+=dev-java/ibm-jdk-bin-1.5*
+=dev-java/jrockit-jdk-bin-1.4*
+=dev-java/jrockit-jdk-bin-1.5*
+=dev-java/blackdown-jdk-1.4*
+dev-java/kaffe
+# JREs
+=dev-java/sun-jre-bin-1.4*
+=dev-java/sun-jre-bin-1.5*
+=dev-java/ibm-jre-bin-1.4*
+=dev-java/blackdown-jre-1.4*
+# Virtuals
+virtual/jdk
+virtual/jre
+# Compilers
+dev-java/eclipse-ecj
+dev-java/jikes
+# Documentation
+dev-java/java-sdk-docs
+# Misc packages that have been updated to generation-2,
+# where the generation-1 won't build and/or run properly 
+dev-java/lucene
+# These have optional Java support, but need ~arch to function properly
+# with generation-2
+dev-util/subversion
+sys-libs/db
+
+ + +It is crucial that you keyword ALL packages related to the new Java system, +otherwise you will have problems in the later steps of this guide. + + + +It can't be emphasized enough that you have to have ALL the packages related +to the new Java system keyworded for it to function properly. + + + +
+
+Existing installs + + +

+For existing installs, regardless of if you have installed anything Java +before, make sure you have followed the Java Upgrade Guide. +

+ + +
+
+New installs + + +

+New installs should require no further preparation. +

+ + +
+
+ + +Installing a Virtual Machine
The choices

-Gentoo provides numerous JREs and JDKs. Among the current alternatives, we -have: +Gentoo provides numerous Runtime Environments (JREs) and Development Kits +(JDKs). Among the current choices, we have:

@@ -111,14 +210,14 @@

-Both the Sun and the IBM are generally faster, but getting them is a bit more -hassle, as you are required to read and accept their license before downloading -(IBM additionally requires you to register). +The default for Java 1.4 is the Blackdown JRE/JDK pair, as it is freely +("free as in beer") available without any registration fuss.

-Our ebuilds for the Sun and IBM JRE/JDKs will inform you how to download the -appropriate files. +JREs and JDKs from Sun, IBM, and BEA are generally faster, but getting them +is a bit more work, as you are required to read and accept their license before +downloading (IBM additionally requires you to register).

@@ -132,6 +231,12 @@ Or to install your profile's default JRE, you can emerge virtual/jre.

+

+In recent events, Sun has relicensed their JDK and JRE under a more Linux +distro friendly license. As a result, Sun releases Java 1.5 and onwards are +freely downloadable, without any further hassle. +

+ A JDK also includes a JRE, so if you install a JDK you shouldn't have to also have to install a JRE. @@ -140,15 +245,13 @@
-Installing the Sun/IBM JRE/JDKs +Installing fetch-restricted virtual machines

-If you run emerge dev-java/sun-jdk or emerge -dev-java/ibm-jdk-bin, you will be notified that you are required to -download the actual files yourself. This has to do with license restrictions -for the Sun JRE/JDK (online click-wrap license) and registration issues with -the IBM JRE/JDK. +As already mentioned, some of the JDKs and JREs require you to jump through a +few hoops before installing. Simply emerge the packages as you normally would. +The ebuilds will then instruct you where to go and what to download.

@@ -162,7 +265,7 @@ -Configuring your JRE/JDK +Configuring your virtual machine

Overview @@ -186,7 +289,7 @@
-Setting a default JRE/JDK +Setting a default virtual machine

@@ -480,6 +583,15 @@ This is typically used to provide your IDE with the source code for the package. +

  • + The source flag installs a zip of the source code of a package. + This is traditionally used for for IDEs to 'attach' source to the libraries + you are using. +
  • +
  • + For Java packages, the doc flag will build API documentation using + javadoc. +
  • -- gentoo-doc-cvs@gentoo.org mailing list