JDKの6 Fedora Core developers make it rather hard to install and properly configure Sun’s JVM. Fedora Coreの開発者に適切に構成するというハードをインストールして太陽の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 /ジャワse 6で5分、またはそれ以下となります。 Here are the steps:ここでの手順を実行:

1. 1 。 Login as rootは、 rootとしてログイン

2. 2 。 First you need to download it from最初からダウンロードすることをする必要があります。 hereここで .です。 This works fine from GUI browsers like Firefox, Internet Explorer or Safari.この作品のようなFirefoxの罰金よりGUIのブラウザは、 Internet Explorerまたは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).しかし太陽には非常に難しい( java.sun.com )をダウンロードしてLinuxコンソールのユーザー(しようとしてインストールするようにして専用のWebサーバー)です。 You cannot access the download link from text based lynx browser.ダウンロードのリンクにアクセスすることはできませんからテキストベースのlynxブラウザです。 Fortunately there is a way.幸いには、方法です。 I found a私は secret location秘密の場所に for you to easily download JDK 6 using wget or curl (console apps).あなたを簡単にダウンロードするためのJDK 6を使用してwgetまたはcurl (コンソールアプリ)です。 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またはcurlを使用してダウンロードしてください。 The command, for example, today will be:このコマンドは、たとえば、今日される:
wget 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 -リナックス- i586なら- 12_apr_2007 - 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本文-ビン- b02 -リナックス- i586なら- 12_apr_2007 - rpm.bin

4. 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.タイプのJavaのバージョンは、コマンドラインとしてまだポイントが表示さをくだらない古のJVMよりgcjに取り組んでいます。

5. 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.今すぐしてalternativesコマンドを実行する必要がソフト帽を認識するに指示する太陽のJVMのです。
alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_02/bin/ java 100 代替-インストール/ u sr/ b inに/ジャワジャワ/ u sr/java/jdk1.6.0_02/bin/ジャワ1 00
alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_02/bin/ jar 100 代替-インストール/ u sr/ b inに/ジャージャー/ u sr/java/jdk1.6.0_02/bin/瓶 1 00
alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_02/bin/ javac 100 代替-インストール/ u sr/ b inに/のj avacのj avac/ u sr/java/jdk1.6.0_02/bin/ j avacの1 00

You can do this for other Java executables too, should you need them, following the same pattern.これを行うには、他のJavaの実行可能ファイルも、それが必要なら、次のと同じパターンです。

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.これにより、少なくとも2提示するオプションを選択します。 Choose the one for Sun’s JVM.太陽のJVMの1つを選択してください。 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のバージョンと表示されるはずのようになります:

java version “ 1.6.0_02 -ea” Javaバージョン" 1.6.0_02 - EA本文"
Java(TM) SE Runtime Environment (build 1.6.0_02-ea-b02) ジャワ( ) seランタイム環境(ビルド1.6.0_02 - EA本文- b02 )
Java HotSpot(TM) Client VM (build 1.6.0_02-ea-b02, mixed mode, sharing) ジャワHotSpot ( tm )クライアントの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.私たちが見つかりましたset JAVA_HOMEで上記の値と設定は完了です。