[Play Framework] 第一回 準備1.サーバーのJDK更新

java ver7をyumで入れる

sudo yum search jdk

============================================== N/S Matched: jdk ==============================================
java-1.6.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.6.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.6.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.6.0-openjdk-javadoc.x86_64 : OpenJDK API Documentation
java-1.6.0-openjdk-src.x86_64 : OpenJDK Source Bundle
java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.7.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.7.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.7.0-openjdk-javadoc.noarch : OpenJDK API Documentation
java-1.7.0-openjdk-src.x86_64 : OpenJDK Source Bundle
ldapjdk-javadoc.x86_64 : Javadoc for ldapjdk
icedtea-web.x86_64 : Additional Java components for OpenJDK
ldapjdk.x86_64 : The Mozilla LDAP Java SDK

Name and summary matches only, use “search all” for everything.

sudo yum install java-1.7.0-openjdk-devel.x86_64

==============================================================================================================
Package Arch Version Repository Size
==============================================================================================================
Installing:
java-1.7.0-openjdk-devel x86_64 1:1.7.0.25-2.3.10.4.el6_4 updates 9.4 M
Installing for dependencies:
java-1.7.0-openjdk x86_64 1:1.7.0.25-2.3.10.4.el6_4 updates 26 M
ttmkfdir x86_64 3.0.9-32.1.el6 base 43 k
xorg-x11-fonts-Type1 noarch 7.2-9.1.el6 base 520 k

Transaction Summary
==============================================================================================================
Install 4 Package(s)

Total download size: 36 M
Installed size: 126 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): java-1.7.0-openjdk-1.7.0.25-2.3.10.4.el6_4.x86_64.rpm | 26 MB 00:00
(2/4): java-1.7.0-openjdk-devel-1.7.0.25-2.3.10.4.el6_4.x86_64.rpm | 9.4 MB 00:00
(3/4): ttmkfdir-3.0.9-32.1.el6.x86_64.rpm | 43 kB 00:00
(4/4): xorg-x11-fonts-Type1-7.2-9.1.el6.noarch.rpm | 520 kB 00:00

update-alternatives --config java

3 プログラムがあり ‘java’ を提供します。

選択 コマンド
———————————————–
1 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
*+ 3 /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java

Enter を押して現在の選択 [+] を保持するか、選択番号を入力します:
/var/lib/alternatives/java.new の作成に失敗です: 許可がありません

java -version

java version “1.7.0_25”

javac -version

javac 1.7.0_25

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です