How To Install JDK 6 / Java SE 6 (+ Tomcat) in Fedora Core 6 / Fedora 7 in 5 MinutesのJDKをインストールする方法について6 /ジャワse 6 ( + Tomcatの)にはFedora Core 6 /ソフト帽7で5分
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で上記の値と設定は完了です。
Filed under提出されて Enterprise Softwareエンタープライズソフトウェア , 、 Fedora 7 7ソフト帽 , 、 Fedora Core 6 Fedora Coreの6 , 、 Headline Newsニュースの見出し , 、 How Toどのように , 、 J2EE J2EEの , 、 Java Software Javaソフトウェア , 、 Linuxリナックス , 、 Programmingプログラミング , 、 Tech Note技術のノート , 、 Webウェブ , 、 Web 2.0ウェブ2.0 , 、 Web Hostingウェブホスティング , 、 Web Services Webサービス | |
| |
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:05時
You can do the download with Lynx, it is just a pain.には、ダウンロードすることができます。 Lynxでは動作することは痛みだけです。 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.またはredhat Fedoraでは、 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. Tomcatのではないハードワイヤードを使用するgcjのは、 configファイルだけでは、 ( 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.パットの作品がない場合はJavaパスをしようとして' 。 bash_profileに'と変更してパスを入力します。 also the java path should come first than others.また、 Javaのパスに来て最初のものもあります。
–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.私は実行中のPlesk 8.2.1としたくないので参考にはTomcatのインストールを再度、しかし私はどうにかし4の変更を克服するには、メーカーは、 / usr/bin/dtomcat5ファイルです。
Basically I changes the following lines基本的に私は、次の行を変更
_RUNJAVA=”JAVA_HOME”/bin/java to: _runjava = "のJAVA_HOME " /ビン/ 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:この変更はまた、このファイルには、次の属性:
_RUNJDB _runjdb
_RUNJAVAC _runjavac
CLASSPATH classpathに
I know this is not a pretty solution however worksかなり知っ解決策しかし、この作品ではない
December 30th, 2007 at 4:07 pm 2007年12月30日は4:07 pmの
Alternate solution to download SUN JDK to remote Fedora server別の解決策をダウンロードするSunのJDKをリモートサーバーにソフト帽
1) Login to Fedora server, install SFTP on Fedora and follow 1 )ソフト帽サーバーにログインして、インストールSFTPは以下のFedoraとは
a. 1つの。 yum install vsftpd Yumのインストールvsftpdの
b. service vsftpd startサービスvsftpdのスタート]ボタンを
c. service vsftpd statusサービスvsftpdの状態
2) Download linux version of SUN JDK from your windows desktop 2 )リナックスのバージョンのSunのJDKをダウンロードして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 ) SunのJDKにファイルを転送しているFedoraサーバーおよび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 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. [...]のおかげでのAngsuman Chakraborty 、の著者:のJDKをインストールする方法について6 /ジャワse 6 ( + Tomcatの)にはFedora Core 6 /ソフト帽7で5分です。 [...]
June 6th, 2008 at 3:19 pm 2008年6月6日は3:19 pmの
[...] is an excellent article about installing jdk6 on FC6 which works for FC3 as [...] [...]は、優れたjdk6をインストールに関する記事をfc3としてどの作品fc6 [...]