How To Install JDK 6 / Java SE 6 (+ Tomcat) in Fedora Core 6 / Fedora 7 in 5 Minutes Comment installer le JDK 6 / Java SE 6 (+ Tomcat) dans Fedora Core 6 / 7 Fedora en 5 minutes
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.
Filed under Classé sous Enterprise Software Logiciel d'entreprise , Fedora 7 Fedora 7 , Fedora Core 6 Fedora Core 6 , Headline News Headline News , How To Comment , J2EE , Java Software Logiciel de Java , Linux , Programming Programmation , Tech Note Note technique , Web , Web 2.0 2,0 Web , Web Hosting Web Hosting , Web Services Services Web | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | cet article |
Email this Article Envoyer cet article
You may also like to read Vous mai également à lire |





August 13th, 2007 at 10:05 am Août 13, 2007 at 10:05 am
You can do the download with Lynx, it is just a pain. Vous pouvez faire le téléchargement avec Lynx, c'est juste une douleur. Make sure you select to accept the license agreement by marking the [x] above the download link. Assurez-vous que vous choisissez d'accepter l'accord de licence par le marquage [x] au-dessus du lien de téléchargement.
August 31st, 2007 at 7:27 am 31 août 2007 à 7:27 am
Thanks, it worked like a charm on my Fedora 7 box! Merci, il a travaillé comme un charme sur ma Fedora case 7!
September 3rd, 2007 at 7:55 am 3 septembre 2007 à 7:55 am
hi, Salut,
on fedora or redhat, change the JAVA_HOME variable in /etc/sysconfig/tomcat5 rather than /etc/tomcat5/tomcat5.conf. sur une Fedora ou RedHat, changer la variable JAVA_HOME / etc/sysconfig/tomcat5 plutôt que dans / etc/tomcat5/tomcat5.conf. tomcat is NOT hard-wired to use GCJ, the config file is just in a (RH standard) different place. tomcat n'est PAS câblés d'utiliser GCJ, le fichier de configuration est juste à un (RH standard) différents.
regards, observe,
sb SB
September 18th, 2007 at 5:42 am Septembre 18th, 2007 at 5:42 am
hi there, Salut,
if nothing works try putting the java path on to the ‘.bash_profile’ and modify the path. si rien ne fonctionne, essayez de mettre le chemin de Java sur le ". bash_profile et de modifier le chemin. also the java path should come first than others. aussi le chemin de Java devrait venir en premier lieu que les autres.
–aneeskA - AneeskA
October 13th, 2007 at 9:34 am Octobre 13, 2007 at 9:34 am
Hi, Salut,
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. J'ai plesk 8.2.1 et ne voulait pas avoir à installer Tomcat, mais j'ai réussi à surmonter en faisant des modifications à 4 / usr/bin/dtomcat5 fichier.
Basically I changes the following lines Fondamentalement, je change les lignes suivantes
_RUNJAVA=”JAVA_HOME”/bin/java to: _RUNJAVA = "JAVA_HOME" / bin / java:
_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: ce changement a également été faite pour les caractéristiques suivantes dans ce fichier:
_RUNJDB
_RUNJAVAC
CLASSPATH
I know this is not a pretty solution however works Je sais que ce n'est pas une solution mais plutôt de travaux
December 30th, 2007 at 4:07 pm 30 décembre 2007 à 4:07 pm
Alternate solution to download SUN JDK to remote Fedora server Autre solution pour télécharger Sun JDK à distance serveur Fedora
1) Login to Fedora server, install SFTP on Fedora and follow 1) Identifiez-vous pour Fedora serveur, installez SFTP sur Fedora et suivre
a. A. yum install vsftpd yum install vsftpd
b. B. service vsftpd start service vsftpd start
c. C. service vsftpd status service vsftpd statut
2) Download linux version of SUN JDK from your windows desktop 2) Télécharger la version linux de Sun JDK de votre bureau Windows
3) Install any Free SFTP client (winSCP) on your client desktop and start a new session. 3) Installez tout gratuit client SFTP (WinSCP) sur votre bureau client et commencer une nouvelle session. Use your Fedora credentials Utilisez vos pouvoirs Fedora
4) Transfer the SUN JDK file to the Fedora server and continue with JDK installation process 4) Transférer le fichier Sun JDK au serveur Fedora et continuez avec la procédure d'installation du JDK
5) In case, you don\\\’t want SFTP service anymore, 5) Dans le cas, vous n \ \ \ 't SFTP voulons plus de service,
service vsftpd stop service vsftpd stop
February 24th, 2008 at 8:34 am 24 février 2008 à 8:34 am
Thanks a lot for this useful information Merci beaucoup pour ces informations utiles
This was a great help and probably saved me a lot of time Il s'agit d'un grand secours et m'a sauvé probablement beaucoup de temps
May 23rd, 2008 at 2:54 pm 23 mai 2008 à 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. [...] Merci à Angsuman Chakraborty, l'auteur de: Comment installer le JDK 6 / Java SE 6 (+ Tomcat) dans Fedora Core 6 / 7 Fedora en 5 minutes. [...]
June 6th, 2008 at 3:19 pm Le 6 juin 2008 à 3:19 pm
[...] is an excellent article about installing jdk6 on FC6 which works for FC3 as [...] [...] Est un excellent article sur l'installation jdk6 sur FC6 qui travaille pour le FC3 [...]