Back to Top

ぷろぐらむノート

VB・C#・Linux などの覚書

  • -目 次- 
  • -紹 介- 

Post navigation

← Previous Next →

Ubuntu14 Java Platform (JDK) のインストール

Posted on 2014年8月30日2014年8月30日 by miyunsarna

1
2
3
4
5
6
7
8
9
1.Java Platform (JDK) のインストール
 
#sudo add-apt-repository ppa:webupd8team/java
#sudo apt-get update
#sudo apt-get -y install oracle-java8-installer
#sudo apt-get -y install oracle-java8-set-default
 
バージョン表示
#java -version

1
2
3
4
5
<strong>2.Oracle (SUN) JDK を使うように設定</strong>
 
sudo update-java-alternatives  --jre -s java-8-oracle
sudo update-java-alternatives  --jre-headless -s java-8-oracle
sudo update-java-alternatives  -s java-8-oracle

1
2
3
3.設定の確認
 
sudo update-alternatives --config java

1
2
3
4
5
4.<strong>java のバージョンの確認</strong>
 
update-java-alternatives -l
java -version
 

1
2
3
4
5
6
5.<strong>変数 JAVA_HOME の設定</strong>
~/.bashrc または ~/.bash_profile に設定
 
export JAVA_HOME=/usr/lib/jvm/<strong>java-8-oracle</strong>
export PATH=/usr/lib/jvm/<strong>java-8-oracle</strong>/bin:$PATH
export CLASSPATH=.:/usr/lib/jvm/<strong>java-8-oracle</strong>/lib

Posted in Ubuntu | Leave a reply

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください。

カテゴリー




Ⓒ 2011 ソフトペイント