JDK 6 Fedora Core developers make it rather hard to install and properly configure Sun’s JVM. Fedora Core desarrolladores hacen bastante difícil de instalar y configurar adecuadamente la JVM de Sun. 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. Todo dicho y hecho JVM de Sun (viene con JDK) es la mejor JVM aplicación a cabo en ese lugar; por no mencionar que es la aplicación de referencia. Here is how you can easily install JDK 6 / Java SE 6 in 5 minutes or less. Aquí está cómo usted puede fácilmente instalar JDK 6 / Java SE 6 en 5 minutos o menos. Here are the steps: Estos son los pasos:

1. Login as root Accediendo al sistema como root

2. First you need to download it from Lo primero que necesita es descargar de here aquí . This works fine from GUI browsers like Firefox, Internet Explorer or Safari. Esto funciona bien GUI de los navegadores, como Firefox, Internet Explorer o 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). Sin embargo Sun hace que sea muy difícil (de java.sun.com) para que pueda descargar la consola de Linux para los usuarios (como los que tratan de instalar en su servidor web dedicado). You cannot access the download link from text based lynx browser. Usted no puede acceder al vínculo de descarga de texto basado lince navegador. Fortunately there is a way. Afortunadamente hay una manera. I found a ¡He encontrado un secret location lugar secreto for you to easily download JDK 6 using wget or curl (console apps). para que usted fácilmente descargar JDK 6 usando wget o curl (aplicaciones de consola). This is also very useful if you are planning to use any download accelerators. Esto también es muy útil si se planea utilizar cualquier descarga aceleradores. The current binary (32 bit version) is El actual binario (32 bits versión) es here aquí . 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. Este vínculo, sin duda cambiar con el tiempo por lo que es mejor para desplazarse hasta el enlace de arriba y luego acceder a este enlace de esa página.

Download it using wget or curl. Descargar usando wget o curl. The command, for example, today will be: El comando, por ejemplo, hoy serán los siguientes:
wget http://www.java.net/…/jdk-6u2-ea-bin-b02-linux-i586-12_apr_2007-rpm.bin http://www.java.net/… / jdk-6u2-cu-bin-B02-linux-i586-12_apr_2007-rpm.bin

Note: The link has been truncated for brevity, however it is hyperlinked to the actual link. Nota: El enlace se ha truncado en favor de la brevedad, sin embargo se enlazará con el enlace real.

3. Now change the permission of the downloaded file to 755 like this: Ahora cambiar el permiso del archivo descargado a 755 como esto:
chmod 755 jdk-6u2-ea-bin-b02-linux-i586-12_apr_2007-rpm.bin chmod 755 jdk-6u2-cu-bin-B02-linux-i586-12_apr_2007-rpm.bin

4. Then run it: A continuación, ejecute:
./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. Será necesario que el tipo a indicar su aceptación de su acuerdo y la instalación completa por su propia cuenta. Unfortunately you are not yet done. Lamentablemente usted no lo hayan hecho. Type java -version on the command line and you will see that it still points to the crappy old JVM from gcj. Tipo java-version en la línea de comando y verá que aún apunta a la vieja 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. Ahora que usted necesita para encontrar la ubicación real de su JDK instalación e indicar a Fedora a aceptar su elección.

Type the following: Escriba el texto siguiente:
updatedb;locate javac |grep bin updatedb; localizar javac | grep bin

You will see an entry like this: Usted podrá ver una entrada como esta:
/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. Aquí / usr/java/jdk1.6.0_02 es el JAVA_HOME para su máquina. Note this as you will need it to run the future commands. Tenga en cuenta esto como lo necesitará para poder ejecutar los comandos futuro.

Now you need to run the alternatives command to instruct Fedora to recognize Sun’s JVM. Ahora lo que necesita para ejecutar el comando alternativas de encargar a Fedora a reconocer la JVM de Sun.
alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_02/bin/ java 100 alternativas - 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 alternativas - install / usr / bin / jar jar / usr/java/jdk1.6.0_02/bin / jar 100
alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_02/bin/ javac 100 alternativas - 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. Usted puede hacer esto para otros ejecutables de Java también, en caso de que usted los necesita, siguiendo el mismo patrón.

Note: If alternatives is not in your path then use locate alternatives to locate it. Nota: Si las alternativas no se encuentra en su camino localizar a continuación, utilice alternativas para localizarla.

Finally you should configure alternative to use Sun’s JVM as the default JVM. Por último hay que configurar alternativa al uso de la JVM de Sun como la JVM por defecto. To do this type: Para hacer este tipo:
/usr/sbin/alternatives --config java / usr / sbin / alternatives - config java

This will present you with at least 2 options. Esto le presente con al menos 2 opciones. Choose the one for Sun’s JVM. Elija el uno para JVM de Sun. Similarly repeat the process for other commands. Del mismo modo repetir el proceso para otros comandos.

Now you are done configuring Fedora for the most part. Ahora está terminado de configurar Fedora en su mayor parte. Type java -version and you should see something like this: Tipo java-versión y usted debería ver algo como esto:

java version “ 1.6.0_02 -ea” java version "1.6.0_02-cu"
Java(TM) SE Runtime Environment (build 1.6.0_02-ea-b02) Java (TM) Runtime Environment SE (build 1.6.0_02-cu-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-cu-B02, en modo mixto, compartido)

Note: This works for most part, except Tomcat. Nota: Esto funciona para la mayor parte, con la excepción de Tomcat. The default installation of Tomcat has been hardwired to use GCJ. La instalación por defecto de Tomcat ha sido hardwired utilizar gcj. I changed the configuration file and it didn’t help. He cambiado el fichero de configuración que no ayuda. My solution for Tomcat is to ditch Fedora’s version and install directly from site. Mi solución para Tomcat zanja es la versión de Fedora e instalar directamente de sitio. It works like a charm. Funciona como un encanto. Set JAVA_HOME to the value we found above and you are done. Set JAVA_HOME con el valor que encuentra en la parte superior y ya está.