JDK 6 Fedora Core developers make it rather hard to install and properly configure Sun’s JVM. Fedora Core développeurs rendent plutôt difficile à installer et la configuration de Sun JVM. All said and done Sun’s JVM (comes with JDK) is the best JVM implementation out there; not to mention that it is the reference implementation. Tous dit et fait JVM de Sun (JDK est livré avec) est la meilleure JVM à la mise en œuvre; pas de mentionner que c'est l'implémentation de référence. Here is how you can easily install JDK 6 / Java SE 6 in 5 minutes or less. Voici comment vous pouvez facilement installer le JDK 6 / Java SE 6 en 5 minutes ou moins. Here are the steps: Voici les étapes:

1. Login as root Ouverture de session en tant que root

2. First you need to download it from Vous devez d'abord télécharger à partir de here ici . This works fine from GUI browsers like Firefox, Internet Explorer or Safari. Cela fonctionne très bien interface graphique de navigateurs comme Firefox, Internet Explorer ou Safari. However Sun makes it very hard (from java.sun.com) to download it for Linux console users (like those trying to install on their dedicated web server). Toutefois Sun rend très difficile (à partir de java.sun.com) pour télécharger Linux pour les utilisateurs de console (comme ceux qui cherchent à installer sur leur serveur web dédié). You cannot access the download link from text based lynx browser. Vous ne pouvez pas accéder au lien de téléchargement de texte lynx navigateur. Fortunately there is a way. Heureusement, il existe un moyen. I found a J'ai trouvé un secret location lieu secret for you to easily download JDK 6 using wget or curl (console apps). pour que vous puissiez télécharger facilement JDK 6 l'aide de wget ou curl (console apps). This is also very useful if you are planning to use any download accelerators. C'est aussi très utile si vous prévoyez d'utiliser tout les accélérateurs de téléchargement. The current binary (32 bit version) is L'actuel binaire (32 bit version) here ici . This link will surely change with time so it is better to browse to the link above and then access this link from that page. Ce lien va certainement changer avec le temps, il est préférable de rechercher le lien ci-dessus, puis accéder à ce lien de cette page.

Download it using wget or curl. Téléchargez-le en utilisant wget ou curl. The command, for example, today will be: La commande, par exemple, aujourd'hui seront les suivants:
wget http://www.java.net/…/jdk-6u2-ea-bin-b02-linux-i586-12_apr_2007-rpm.bin http://www.java.net/… / jdk-6u2-EA-B02-bin-linux-i586-rpm.bin-12_apr_2007

Note: The link has been truncated for brevity, however it is hyperlinked to the actual link. Note: Le lien a été tronqué par souci de brièveté, mais il a un lien hypertexte pour le lien.

3. Now change the permission of the downloaded file to 755 like this: Maintenant, changez l'autorisation du fichier téléchargé à 755 comme ceci:
chmod 755 jdk-6u2-ea-bin-b02-linux-i586-12_apr_2007-rpm.bin chmod 755 jdk-6u2-EA-B02-bin-linux-i586-rpm.bin-12_apr_2007

4. Then run it: Ensuite, exécutez:
./jdk-6u2-ea-bin-b02-linux-i586-12_apr_2007-rpm.bin

You will need to type yes to indicate your acceptance to their agreement and the installation will complete on its own. Vous aurez besoin de taper «oui» à indiquer votre acceptation de leur accord et l'installation complète de lui-même. Unfortunately you are not yet done. Malheureusement, vous n'êtes pas encore fait. Type java -version on the command line and you will see that it still points to the crappy old JVM from gcj. Type de java-version sur la ligne de commande et vous verrez qu'il pointe encore vers l'ancienne crappy JVM de gcj.

5. Now you need to find the actual location of your JDK installation and indicate to Fedora to accept your choice. Maintenant, vous devez trouver l'emplacement réel de votre JDK installation et indiquer à Fedora d'accepter votre choix.

Type the following: Tapez ce qui suit:
updatedb;locate javac |grep bin updatedb; localiser javac | grep bin

You will see an entry like this: Vous verrez une entrée comme ceci:
/usr/java/jdk1.6.0_02/bin/javac / usr/java/jdk1.6.0_02/bin/javac

Here /usr/java/jdk1.6.0_02 is the actual JAVA_HOME for your machine. Ici / usr/java/jdk1.6.0_02 est le JAVA_HOME pour votre machine. Note this as you will need it to run the future commands. Note ce que vous en aurez besoin pour exécuter les commandes futures.

Now you need to run the alternatives command to instruct Fedora to recognize Sun’s JVM. Maintenant, vous devez exécuter la commande des alternatives à Fedora charger de reconnaître la JVM de Sun.
alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_02/bin/ java 100 alternatives - install / usr / bin / java java / usr/java/jdk1.6.0_02/bin / java 100
alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_02/bin/ jar 100 alternatives - install / usr / bin / pot pot / usr/java/jdk1.6.0_02/bin / JAR 100
alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_02/bin/ javac 100 alternatives - install / usr / bin / javac javac / usr/java/jdk1.6.0_02/bin / javac 100

You can do this for other Java executables too, should you need them, following the same pattern. Vous pouvez le faire pour d'autres exécutables Java aussi, si vous avez besoin d'eux, suivant le même schéma.

Note: If alternatives is not in your path then use locate alternatives to locate it. Note: Si des alternatives n'est pas dans votre chemin puis utilisez trouver des alternatives pour le retrouver.

Finally you should configure alternative to use Sun’s JVM as the default JVM. Enfin, vous devez configurer alternative à l'utilisation de Sun JVM que la JVM par défaut. To do this type: Pour ce faire, tapez:
/usr/sbin/alternatives --config java / usr / sbin / alternatives - config java

This will present you with at least 2 options. Ce que vous présente au moins 2 options. Choose the one for Sun’s JVM. Choisissez l'une pour la JVM de Sun. Similarly repeat the process for other commands. Répéter le même processus pour les autres commandes.

Now you are done configuring Fedora for the most part. Vous êtes maintenant terminé la configuration de Fedora pour la plupart. Type java -version and you should see something like this: Type de java-version et vous devriez voir quelque chose comme ceci:

java version “ 1.6.0_02 -ea” java version "1.6.0_02-ea"
Java(TM) SE Runtime Environment (build 1.6.0_02-ea-b02) Java (TM) Runtime Environment SE (build 1.6.0_02-EA-B02)
Java HotSpot(TM) Client VM (build 1.6.0_02-ea-b02, mixed mode, sharing) Java HotSpot (TM) Client VM (build 1.6.0_02-EA-B02, mode mixte, partage)

Note: This works for most part, except Tomcat. Note: Cela fonctionne pour la plupart partie, à l'exception de Tomcat. The default installation of Tomcat has been hardwired to use GCJ. L'installation par défaut de Tomcat a été reliés à l'utilisation GCJ. I changed the configuration file and it didn’t help. J'ai changé le fichier de configuration et il n'a pas aidé. My solution for Tomcat is to ditch Fedora’s version and install directly from site. Ma solution pour Tomcat est fossé à la version de Fedora et l'installation directement depuis le site. It works like a charm. Il fonctionne comme un charme. Set JAVA_HOME to the value we found above and you are done. Set JAVA_HOME à la valeur trouvée au-dessus de nous et c'est tout.