How To Install JDK 6 / Java SE 6 (+ Tomcat) in Fedora Core 6 / Fedora 7 in 5 Minutes Como instalar o JDK 6 / Java SE 6 (+ Tomcat) no Fedora Core 6 / 7 Fedora em 5 minutos
Fedora Core developers make it rather hard to install and properly configure Sun’s JVM. Fedora Core desenvolvedores torná-la um pouco difícil de instalar e configurar corretamente da 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. Tudo dito e feito da Sun JVM (vem com o JDK) é a melhor implementação JVM lá fora, para não falar que é a implementação de referência. Here is how you can easily install JDK 6 / Java SE 6 in 5 minutes or less. Aqui está como você pode instalar facilmente o JDK 6 / Java SE 6, em 5 minutos ou menos. Here are the steps: Aqui estão os passos:
1. Login as root Login como root
2. First you need to download it from Primeiro você precisa para baixá-lo a partir de here aqui . This works fine from GUI browsers like Firefox, Internet Explorer or Safari. Isso funciona bem a partir de GUI navegadores como o 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). No entanto Sun torna muito difícil (a partir de java.sun.com) para baixá-lo para o Linux console usuários (como aqueles a tentar instalar em seu servidor web dedicado). You cannot access the download link from text based lynx browser. Você não pode acessar o link de download lince navegador baseado em texto. Fortunately there is a way. Felizmente há uma maneira. I found a Eu encontrei um secret location local secreto for you to easily download JDK 6 using wget or curl (console apps). para que você possa facilmente download JDK 6 usando wget ou curl (console apps). This is also very useful if you are planning to use any download accelerators. Isso também é muito útil se você está planejando usar a qualquer download aceleradores. The current binary (32 bit version) is O actual binário (32 bits versão) é here aqui . 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. Esta ligação vai mudar com o tempo, por isso, é melhor para navegar até o link acima e então acessar este link a partir dessa página.
Download it using wget or curl. Download-lo usando wget ou encurvamento. The command, for example, today will be: O comando, por exemplo, hoje será:
wget http://www.java.net/…/jdk-6u2-ea-bin-b02-linux-i586-12_apr_2007-rpm.bin http://www.java.net/… / jdk-6u2-EA-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: O link foi truncado para a brevidade, no entanto, é hiperlink para a efectiva ligação.
3. Now change the permission of the downloaded file to 755 like this: Agora mudar a permissão do arquivo baixado para 755 como este:
chmod 755 jdk-6u2-ea-bin-b02-linux-i586-12_apr_2007-rpm.bin chmod 755 jdk-6u2-EA-bin-B02-linux-i586-12_apr_2007-rpm.bin
4. Then run it: Então execute-o:
./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. Você precisa de tipo "sim" para indicar a sua aceitação para o seu acordo e que a instalação será concluída a sua própria. Unfortunately you are not yet done. Infelizmente você ainda não está concluído. Type java -version on the command line and you will see that it still points to the crappy old JVM from gcj. Tipo java-versão sobre a linha de comando e você verá que ele ainda chama a atenção para a antiga 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. Agora você tem de encontrar o verdadeiro local de sua instalação e indicar a JDK Fedora para aceitar a sua escolha.
Type the following: Digite o seguinte:
updatedb;locate javac |grep bin updatedb; localizar javac | grep bin
You will see an entry like this: Você verá uma 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. Aqui / usr/java/jdk1.6.0_02 é a real JAVA_HOME para a sua máquina. Note this as you will need it to run the future commands. Note como este que você precisa para executar os comandos futuro.
Now you need to run the alternatives command to instruct Fedora to recognize Sun’s JVM. Agora, você precisa executar o comando alternativas para instruir o Fedora para reconhecer Sun's JVM.
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 / 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 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. Você pode fazer isso para os outros executáveis Java também, você deve necessitar deles, seguindo o mesmo padrão.
Note: If alternatives is not in your path then use locate alternatives to locate it. Nota: Se alternativas não está em seu caminho, então, usar localizar alternativas para localizá-la.
Finally you should configure alternative to use Sun’s JVM as the default JVM. Finalmente, você deve configurar alternativa ao uso da Sun JVM como o padrão JVM. To do this type: Para fazer este tipo:
/usr/sbin/alternatives --config java / usr / sbin / alternatives - config java
This will present you with at least 2 options. Isto irá apresentar-lhe pelo menos 2 opções. Choose the one for Sun’s JVM. Escolha um para o Sun's JVM. Similarly repeat the process for other commands. Do mesmo modo repita o processo para os outros comandos.
Now you are done configuring Fedora for the most part. Agora você é feito configurando o Fedora Core na sua maior parte. Type java -version and you should see something like this: Tipo java-versão e você deve ver algo como isto:
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) SE Runtime Environment (construir 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 (1.6.0_02 construir-EA-B02, misturados modo, a partilha)
Note: This works for most part, except Tomcat. Nota: Este funciona para a maior parte dos casos, exceto Tomcat. The default installation of Tomcat has been hardwired to use GCJ. A instalação padrão do Tomcat tem sido a utilização hardwired GCJ. I changed the configuration file and it didn’t help. Eu mudei o arquivo de configuração e que não ajudam. My solution for Tomcat is to ditch Fedora’s version and install directly from site. A minha solução para Tomcat é a versão do Fedora vala e instalar diretamente do site. It works like a charm. É como se fosse um charme. Set JAVA_HOME to the value we found above and you are done. Definir a JAVA_HOME o valor encontrado foi exposto, e está feito.
Filed under Arquivado em Enterprise Software Enterprise Software , De Fedora 7 Fedora 7 , De Fedora Core 6 Fedora Core 6 , De Headline News Headline News , De How To How To , De J2EE , De Java Software Java Software , De Linux O Linux , De Programming Programação , De Tech Note Nota Tech , De Web , De Web 2.0 Web 2,0 , De Web Hosting Web Hosting , De Web Services Web Services | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artigo |
Email this Article E-mail este artigo
You may also like to read Você pode também gosta de ler |





August 13th, 2007 at 10:05 am 13 de agosto de 2007 em 10:05 am
You can do the download with Lynx, it is just a pain. Você pode fazer o download do Lince, é apenas uma dor. Make sure you select to accept the license agreement by marking the [x] above the download link. Tenha certeza que você selecione a aceitar o acordo de licença com a marcação [x] acima no link de download.
August 31st, 2007 at 7:27 am 31 de agosto de 2007 em 7:27 am
Thanks, it worked like a charm on my Fedora 7 box! Obrigado, ele trabalhou como um encanto a minha casa 7 Fedora!
September 3rd, 2007 at 7:55 am 3 de setembro de 2007 em 7:55 am
hi, oi,
on fedora or redhat, change the JAVA_HOME variable in /etc/sysconfig/tomcat5 rather than /etc/tomcat5/tomcat5.conf. em fedora ou redhat, mudar a variável JAVA_HOME no / em vez de etc/sysconfig/tomcat5 / 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ÃO é com fios de usar GCJ, o arquivo de configuração é apenas em um (RH padrão) lugar diferente.
regards, atenciosamente,
sb SB
September 18th, 2007 at 5:42 am 18 de setembro de 2007 em 5:42 am
hi there, oi lá,
if nothing works try putting the java path on to the ‘.bash_profile’ and modify the path. se nada funciona tente colocar o caminho para o java '. bash_profile' e modificar o caminho. also the java path should come first than others. java também o caminho deve vir em primeiro lugar do que outros.
–aneeskA - AneeskA
October 13th, 2007 at 9:34 am Dia 13 de Outubro, 2007 em 9:34 am
Hi, Oi,
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. Estou executando plesk 8.2.1 e por isso não queremos ter de instalar novamente Tomcat, porém eu conseguimos ultrapassar esta a fazer alterações no 4 / usr/bin/dtomcat5 arquivo.
Basically I changes the following lines Basicamente eu muda as seguintes linhas
_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: esta mudança também foi feita para os seguintes atributos deste arquivo:
_RUNJDB
_RUNJAVAC
CLASSPATH
I know this is not a pretty solution however works Sei que esta não é uma solução bonita porém obras
December 30th, 2007 at 4:07 pm 30 de dezembro de 2007 em 4:07 pm
Alternate solution to download SUN JDK to remote Fedora server Alternate solução para fazer o download do JDK SUN Fedora servidor remoto
1) Login to Fedora server, install SFTP on Fedora and follow 1) a entrada Fedora servidor, instalar SFTP sobre o Fedora Core e siga
a. yum install vsftpd Yum instalar vsftpd
b. B. service vsftpd start Serviço de começar vsftpd
c. C. service vsftpd status serviço vsftpd status
2) Download linux version of SUN JDK from your windows desktop 2) Baixar versão do linux SUN JDK a partir de suas janelas desktop
3) Install any Free SFTP client (winSCP) on your client desktop and start a new session. 3) A instalação de qualquer cliente SFTP Livre (winSCP) sobre o seu cliente desktop e iniciar uma nova sessão. Use your Fedora credentials Use suas credenciais Fedora
4) Transfer the SUN JDK file to the Fedora server and continue with JDK installation process 4) Transferir a SUN JDK arquivo para o servidor Fedora e continuar a instalação processo JDK
5) In case, you don\\\’t want SFTP service anymore, 5) No caso, você don \ \ \ 't querem SFTP serviço, deixa de ser,
service vsftpd stop Serviço de parar vsftpd
February 24th, 2008 at 8:34 am 24 de fevereiro de 2008, 8:34 am
Thanks a lot for this useful information Graças a esta muita informação útil
This was a great help and probably saved me a lot of time Esta foi uma grande ajuda, e provavelmente salvou-me um monte de tempo
May 23rd, 2008 at 2:54 pm 23 maio, 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. [...] Graças a Angsuman Chakraborty, o autor de: How To Install JDK 6 / Java SE 6 (+ Tomcat) no Fedora Core 6 / 7 no Fedora Core 5 minutos. [...]
June 6th, 2008 at 3:19 pm 6 de junho, 2008, 3:19 pm
[...] is an excellent article about installing jdk6 on FC6 which works for FC3 as [...] [...] É um excelente artigo sobre como instalar jdk6 em FC6 que trabalha para o FC3 como [...]