How To Install JDK 6 / Java SE 6 (+ Tomcat) in Fedora Core 6 / Fedora 7 in 5 Minutes jdk를 설치하는 방법을 6 / 자바 남동 6 (+ tomcat)에 페도라 코어 6 / 중절모 7, 5 분,
Fedora Core developers make it rather hard to install and properly configure Sun’s JVM. 중절모 핵심 개발자들이 만들어 하드를 설치하고 적절하게 구성이 오히려 태양의 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. 모든 말들, 행동 태양의 jvm (함께 jdk)는 최고의 jvm 구현 밖에; 참조 구현하는 것은 말할 것도없고. Here is how you can easily install JDK 6 / Java SE 6 in 5 minutes or less. 다음은 쉽게 설치할 수있는 방법에 jdk 6 / 자바 남동 6에 5 분 이하합니다. Here are the steps: 다음과 같은 단계 :
1. Login as root 루트로 로그인
2. 두합니다. First you need to download it from 첫 번째에서 다운로드해야합니다 here 여기에 . 합니다. This works fine from GUI browsers like Firefox, Internet Explorer or Safari. 같은 브라우저에서 제대로 작동 gui이 firefox, 인터넷 탐색기 또는 사파리합니다. 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). 그러나 태양이 매우 하드 (java.sun.com)를 다운로드하여 리눅스 콘솔 사용자 (들처럼 그들의 헌신에 설치하려는 웹 서버). You cannot access the download link from text based lynx browser. 액세스 할 수 없다는 브라우저의 다운로드 링크를 텍스트 기반 링크스합니다. Fortunately there is a way. 운이 좋은 방법이 있어요. I found a 찾았습니다 secret location 비밀 위치를 for you to easily download JDK 6 using wget or curl (console apps). wget를 사용하여 쉽게 다운로드를 위해 6 jdk 또는 컬 (콘솔 애플 리케이션). This is also very useful if you are planning to use any download accelerators. 이것은 또한 계획을 사용하는 경우 매우 유용합니다 액셀 러레이터를 다운로드합니다. The current binary (32 bit version) is 현재의 이진 (32 비트 버전)은 here 여기에 . 합니다. 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. 이 링크는 반드시 시간 변경하는 것이 좋습니다 그래서 위의 링크로 이동하고 해당 페이지에서이 링크를 접속합니다.
Download it using wget or curl. wget을 사용하여 다운로드하거나 컬합니다. The command, for example, today will be: 이 명령, 예를 들어, 오늘은 :
wget http://www.java.net/…/jdk-6u2-ea-bin-b02-linux-i586-12_apr_2007-rpm.bin http://www.java.net/… / jdk - 6u2 - ea - 빈 - 12_apr_2007 - b02 - 리눅스 - i586 - rpm.bin
Note: The link has been truncated for brevity, however it is hyperlinked to the actual link. 참고 :이 링크를 잘렸습니다 짧게, 그러나 그것의 실제 링크는 하이퍼 링크로합니다.
3. 3합니다. Now change the permission of the downloaded file to 755 like this: 지금 다운로드 파일을 755 권한을 변경합니다 이렇게 :
chmod 755 jdk-6u2-ea-bin-b02-linux-i586-12_apr_2007-rpm.bin chmod 755 jdk - 6u2 - ea - 빈 - 12_apr_2007 - b02 - 리눅스 - i586 - rpm.bin
4. 사. Then run it: 를 실행합니다 :
./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. 당신이 필요로 귀하의 동의를 입력 예를 나타냅니다 그들의 계약 및 그 자체의 설치가 완료합니다. Unfortunately you are not yet done. 불행히도 아직 완료되지 않습니다. Type java -version on the command line and you will see that it still points to the crappy old JVM from gcj. 유형 자바 - 버전을 해당 명령줄 및가 나타납니다 구질구질해 보이는가 jvm에서 여전히 gcj를 가리 킵니다.
5. 오. Now you need to find the actual location of your JDK installation and indicate to Fedora to accept your choice. 지금 당신의 실제 위치를 찾을 필요가 jdk 설치하고 당신의 선택을 받아들일 중절모를 나타냅니다.
Type the following: 다음과 같이 입력합니다 :
updatedb;locate javac |grep bin updatedb; 찾아 javac | grep 빈
You will see an entry like this: 이렇게하는 항목가 나타납니다 :
/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. 여기에 / usr/java/jdk1.6.0_02는 실제 java_home 해당 기계. Note this as you will need it to run the future commands. 참고 :이 때 필요하므로 미래의 명령어를 실행합니다.
Now you need to run the alternatives command to instruct Fedora to recognize Sun’s JVM. 이제 명령을 지시하는 대안이 필요 중절모를 실행하는 태양의 jvm을 인식합니다.
alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_02/bin/ java 100 대안 - 설치 / usr / 빈 / 자바 자바 / usr/java/jdk1.6.0_02/bin / 자바 100
alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_02/bin/ jar 100 대안 - 설치 / usr / 빈 / 자자 / usr/java/jdk1.6.0_02/bin / 병 100
alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_02/bin/ javac 100 대안 - 설치 / usr / 빈 / 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. 넌 할 수있어 다른 자바 실행 파일을 역시 그들을해야 할 경우, 다음과 같은 패턴을합니다.
Note: If alternatives is not in your path then use locate alternatives to locate it. 참고 :이 대안이 당신의 경로를 찾아 대안을 찾아 그것을 사용합니다.
Finally you should configure alternative to use Sun’s JVM as the default JVM. 마지막으로 대안을 사용해야합니다 태양의 jvm을 구성을 기본 jvm합니다. To do this type: 이렇게 유형 :
/usr/sbin/alternatives --config java / usr / sbin / 대안 - 구성 자바
This will present you with at least 2 options. 이것은 적어도 두 옵션을 소개 해 드릴 것은합니다. Choose the one for Sun’s JVM. 하나는 태양의 jvm을 선택합니다. Similarly repeat the process for other commands. 마찬가지로 다른 명령이 프로세스를 반복합니다.
Now you are done configuring Fedora for the most part. 자, 이제 당신은 대부분의 중절모 완료을 구성합니다. Type java -version and you should see something like this: 유형 자바 - 버전과 같이 나타납니다 :
java version “ 1.6.0_02 -ea” 자바 버전 "1.6.0_02 - ea"
Java(TM) SE Runtime Environment (build 1.6.0_02-ea-b02) 자바 () 남동 런타임 환경 (빌드 1.6.0_02 - ea - b02)
Java HotSpot(TM) Client VM (build 1.6.0_02-ea-b02, mixed mode, sharing) 자바 핫스팟 () 클라이언트 vm (빌드 1.6.0_02 - ea - b02, 혼합 모드로, 공유)
Note: This works for most part, except Tomcat. 참고 : 이것은 대부분의 일부 경우를 제외 tomcat합니다. The default installation of Tomcat has been hardwired to use GCJ. 하드웨어의 기본 설치 tomcat은 gcj를 사용합니다. I changed the configuration file and it didn’t help. 나는 설정 파일을 변경하고 도움이되지 않았습니다. My solution for Tomcat is to ditch Fedora’s version and install directly from site. 내 솔루션을 tomcat 중절모의 버전과 도랑이 사이트에서 직접 설치합니다. It works like a charm. 마치 마법처럼 작동합니다. Set JAVA_HOME to the value we found above and you are done. java_home을 위의 값을 설정이 완료 찾았습니다.
Filed under 밑에 Enterprise Software 엔터 프라이즈 소프트웨어를 , Fedora 7 중절모 7 , Fedora Core 6 페도라 코어 6 , Headline News 헤드 라인 뉴스 , How To 하는 방법을 , J2EE J2 쥶 E , Java Software 자바 소프트웨어 , Linux 리눅스 , Programming 프로그래밍 , Tech Note 기술 참고 사항 , Web 웹 , Web 2.0 웹 2.0 , Web Hosting 웹 호스팅 , Web Services 웹 서비스 | |
| |
RSS 2.0 rss 2.0 | |
Trackback 트랙백 this Article | 이 문서 |
Email this Article 전자 우편이 문서
You may also like to read 같은를 읽을 수있습니다 |





August 13th, 2007 at 10:05 am 2007년 8월 13일에서 오전 10시 5분
You can do the download with Lynx, it is just a pain. 작업을 수행할 수있습니다 다운로드와 링크스, 이건 그냥 고통을합니다. Make sure you select to accept the license agreement by marking the [x] above the download link. 있는지 확인하여 선택하여 사용권 계약에 동의합니다 마킹의 [x] 위에있는 다운로드 링크를합니다.
August 31st, 2007 at 7:27 am 2007년 8월 31일에서 오전 7시 27분
Thanks, it worked like a charm on my Fedora 7 box! 감사합니다, 효과가 중절모처럼 매력을 제 7 상자!
September 3rd, 2007 at 7:55 am 2007년 9월 3일에서 오전 7시 55분
hi, 안녕,
on fedora or redhat, change the JAVA_HOME variable in /etc/sysconfig/tomcat5 rather than /etc/tomcat5/tomcat5.conf. 이 중절모 또는 레드햇으로 변경합니다 변수에 java_home / 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. - 유선을 사용하는 것은 어렵지 않아 gcj tomcat의 설정 파일은에 (rh 기준) 서로 다른 위치합니다.
regards, 안부,
sb 안티몬
September 18th, 2007 at 5:42 am 2007년 9월 18일에서 오전 5시 42분
hi there, 안녕하세요,
if nothing works try putting the java path on to the ‘.bash_profile’ and modify the path. 에 태우고있다면 아무 소용이 없어 자바 경로를 시도하여 '합니다. bash_profile'을 수정하여 경로를합니다. also the java path should come first than others. 또한 자바 경로는 다른 것보다 우선합니다.
–aneeskA - aneeska
October 13th, 2007 at 9:34 am 2007년 10월 13일에서 오전 9시 34분
Hi, 안녕,
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. 8.2.1을 실행 plesk 나는 그래서 다시 설치하고 싶지 않았 바람둥이 '그러나 나는 네 변경 사항을 관리함으로써 이것을 극복하기는 / usr/bin/dtomcat5 파일을합니다.
Basically I changes the following lines 기본적으로 나는 다음과 같은 행이을 변경합니다
_RUNJAVA=”JAVA_HOME”/bin/java to: _runjava = "java_home"/ 빈 / 자바가 :
_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: 이 변경 사항은이 파일에 다음과 같은 특성을도 :
_RUNJDB _runjdb
_RUNJAVAC _runjavac
CLASSPATH 클래스
I know this is not a pretty solution however works 그러나 이것은 꽤 솔루션을 알고 작품
December 30th, 2007 at 4:07 pm 2007년 12월 30일에서 오후 4시 7분
Alternate solution to download SUN JDK to remote Fedora server 다른 해결책을 다운로드하는 태양 jdk 서버를 원격 중절모
1) Login to Fedora server, install SFTP on Fedora and follow 1) 로그인을 중절모 서버, 중절모를 설치하고 화면에 sftp
a. yum install vsftpd 최고의 맛 vsftpd를 설치
b. service vsftpd start 서비스를 시작 vsftpd
c. service vsftpd status 서비스를 vsftpd 상태
2) Download linux version of SUN JDK from your windows desktop 2)를 다운로드하여 리눅스 버전의 태양 사의 windows 바탕 화면
3) Install any Free SFTP client (winSCP) on your client desktop and start a new session. 3) 어떤 자유를 설치 sftp 클라이언트 (winscp)을 클릭하면 클라이언트 데스크톱 새 세션을 시작합니다. Use your Fedora credentials 중절모 자격 증명을 사용하여
4) Transfer the SUN JDK file to the Fedora server and continue with JDK installation process 4) 태양 jdk 파일을 전송하는 서버와 중절모 jdk 설치 프로세스를 계속 진행
5) In case, you don\\\’t want SFTP service anymore, 5)의 경우, 당신 돈 \ \ \ '를주기 sftp 서비스를 더 이상
service vsftpd stop 서비스를 중지 vsftpd
February 24th, 2008 at 8:34 am 2008년 2월 24일에서 오전 8시 34분
Thanks a lot for this useful information 이 유용한 정보를 대단히 감사합니다
This was a great help and probably saved me a lot of time 이것은 큰 도움이 그리고 아마도 많은 시간이 날 구원
May 23rd, 2008 at 2:54 pm 2008년 5월 23일에서 오후 2시 54분
[...] 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. [...] 덕분에 angsuman Chakraborty의, 저자의 : jdk를 설치하는 방법을 6 / 자바 남동 6 (+ tomcat)에 페도라 코어 6 / 중절모 7, 5 분. [...]
June 6th, 2008 at 3:19 pm 2008년 6월 6일에서 오후 3시 19분
[...] is an excellent article about installing jdk6 on FC6 which works for FC3 as [...] [...]이 우수한 작품에 대한 기사를 설치하기위한 fc3로 jdk6 [...]에 fc6