How To Install JDK 6 / Java SE 6 (+ Tomcat) in Fedora Core 6 / Fedora 7 in 5 Minutes Cómo instalar el JDK 6 / Java SE 6 (+ Tomcat) en Fedora Core 6 / Fedora 7 en 5 minutos
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 sí 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á.
Filed under Filed under Enterprise Software Enterprise Software , Fedora 7 Fedora 7 , Fedora Core 6 Fedora Core 6 , Headline News Headline News , How To Cómo , J2EE , Java Software El software de Java , Linux , Programming Programación , Tech Note Nota técnica , Web , Web 2.0 Web 2,0 , Web Hosting Web Hosting , Web Services Web Services | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artículo |
Email this Article Enviar artículo
You may also like to read También puede leer |





August 13th, 2007 at 10:05 am Agosto 13, 2007 a las 10:05 am
You can do the download with Lynx, it is just a pain. Usted puede hacer la descarga con Lynx, es sólo un dolor. Make sure you select to accept the license agreement by marking the [x] above the download link. Asegúrese de que usted seleccione para aceptar el acuerdo de licencia mediante el marcado de la [x] por encima del enlace de descarga.
August 31st, 2007 at 7:27 am 31 de agosto de 2007, a las 7:27 am
Thanks, it worked like a charm on my Fedora 7 box! Gracias, funcionó como un encanto en mi Fedora 7 caja!
September 3rd, 2007 at 7:55 am 3 de septiembre de 2007, a las 7:55 am
hi, Hola,
on fedora or redhat, change the JAVA_HOME variable in /etc/sysconfig/tomcat5 rather than /etc/tomcat5/tomcat5.conf. en fedora o redhat, cambie la variable JAVA_HOME / etc/sysconfig/tomcat5 en lugar de / etc/tomcat5/tomcat5.conf. tomcat is NOT hard-wired to use GCJ, the config file is just in a (RH standard) different place. tomcat no es difícil-por cable para uso GCJ, el fichero de configuración es sólo en una (RH estándar) lugar diferente.
regards, recuerdos,
sb SB
September 18th, 2007 at 5:42 am 18 de Septiembre, 2007 a las 5:42 am
hi there, Hola,
if nothing works try putting the java path on to the ‘.bash_profile’ and modify the path. si nada funciona intentar poner el java en camino a la '. bash_profile "y modificar el camino. also the java path should come first than others. También el camino de Java debe venir primero que otros.
–aneeskA - AneeskA
October 13th, 2007 at 9:34 am 13 de octubre de 2007, a las 9:34 am
Hi, Hola,
I am running plesk 8.2.1 and so did not want to have to re install Tomcat, however I managed to overcome this by making 4 changes to the /usr/bin/dtomcat5 file. Me estoy Plesk 8.2.1 y para que no quería tener que volver instalar Tomcat, sin embargo he logrado superar esta haciendo 4 cambios en el / usr/bin/dtomcat5 archivo.
Basically I changes the following lines Básicamente los cambios que las siguientes líneas
_RUNJAVA=”JAVA_HOME”/bin/java to: _RUNJAVA = "JAVA_HOME" / bin / java para:
_RUNJAVA=/usr/java/jdk1.6.0_05/bin/java _RUNJAVA = / Usr/java/jdk1.6.0_05/bin/java
this change was also made to the following attributes in this file: este cambio también se hizo con los siguientes atributos de este archivo:
_RUNJDB
_RUNJAVAC
CLASSPATH
I know this is not a pretty solution however works Sé que esto no es una solución bastante sin embargo las obras
December 30th, 2007 at 4:07 pm 30 de diciembre de 2007, a las 4:07 pm
Alternate solution to download SUN JDK to remote Fedora server Solución alternativa para descargar el JDK de Sun para Fedora servidor remoto
1) Login to Fedora server, install SFTP on Fedora and follow 1) Ingresar a Fedora servidor SFTP instalación en Fedora y siga
a. A. yum install vsftpd Yum instalar vsftpd
b. B. service vsftpd start servicio vsftpd inicio
c. C. service vsftpd status servicio vsftpd estado
2) Download linux version of SUN JDK from your windows desktop 2) Descargar la versión de linux el JDK de Sun desde su escritorio de Windows
3) Install any Free SFTP client (winSCP) on your client desktop and start a new session. 3) Instale cualquiera de Libre cliente SFTP (WinSCP) en su cliente de escritorio y comenzar un nuevo período de sesiones. Use your Fedora credentials Utilice sus credenciales Fedora
4) Transfer the SUN JDK file to the Fedora server and continue with JDK installation process 4) Transferir el JDK de Sun para el archivo de servidor Fedora y continuar con el proceso de instalación JDK
5) In case, you don\\\’t want SFTP service anymore, 5) En caso, don \ \ \ 't desea SFTP servicio más,
service vsftpd stop servicio vsftpd stop
February 24th, 2008 at 8:34 am 24 de febrero de 2008 a 8:34 am
Thanks a lot for this useful information Muchas gracias por esta información útil
This was a great help and probably saved me a lot of time Esta fue una gran ayuda y, probablemente, me salvó un montón de tiempo
May 23rd, 2008 at 2:54 pm 23 de mayo de 2008 a 2:54 pm
[...] Thanks to Angsuman Chakraborty, the author of: How To Install JDK 6 / Java SE 6 (+ Tomcat) in Fedora Core 6 / Fedora 7 in 5 Minutes. [...] Gracias a Angsuman Chakraborty, el autor de: Cómo instalar el JDK 6 / Java SE 6 (+ Tomcat) en Fedora Core 6 / Fedora 7 en 5 minutos. [...]
June 6th, 2008 at 3:19 pm 6 de Junio de 2008 a 3:19 pm
[...] is an excellent article about installing jdk6 on FC6 which works for FC3 as [...] [...] Es un excelente artículo sobre la instalación de jdk6 en FC6 que trabaja para FC3 como [...]