How to install Sun JRE 6 On Ubuntu

Sun, Nov 27, 2011 1-minute read

Outline

  • JRE 是建置 JAVA 執行環境的軟體
  • JRE 的內部有一個 Java 虛擬機器(JVM)以及一些標準的類別函數庫,協助 Java 程式運作
  • JRE 只能運行 JAVA 程式,無法開發 JAVA 程式

Development environment

  • Ubuntu 11.10 (x86-64)
  • Dell Studio XPS 1640

Method 1: Install a package by a PPA

1.加入新的的PPA來源

2.Install Sun JRE & Java Plugin

Method 2: Installing the JRE manually

1.建立你要安裝的目錄並到該目錄下

2.Downloading JRE from the Oracle Web site ,The file is bin file.

3.將下載的 JRE 設定為可執行的檔案並安裝

執行完後會在目錄下建立一個資料夾(jre1.6.0)這個資料夾是你安裝 JRE 的路徑

4.在 /etc/profile 檔案中設定環境變數

在設定環境變數的檔案中加入下面參數 {% codeblock profile %} export JAVA_HOME="/home/simonhsu/programs/jre1.6.0_29" export CLASSPATH=.:/JAVA_HOME/lib export PATH=$PATH:$JAVA_HOME/bin {% endcodeblock %}

5.重新載入 /etc/profile 並重新開機

These are the steps to install a JRE on your system.

Firefox:

1.建立瀏覽器的 Plugin 資料夾

2.建立Plugin的連結

Chrome:

1.建立Chrome瀏覽器的 Plugin 資料夾

2.建立Plugin的連結

#Test JRE & Plugin

Test Java Runtime Environment

Test Browser Plugin

Go How do I test whether Java is working on my computer? website can test JRE Plugin