6 jdk 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을 위의 값을 설정이 완료 찾았습니다.