How to install Sun JDK 6 On Ubuntu

Sun, Nov 27, 2011 1-minute read

Outline

  • JDK 提供開發人員的軟體開發工具並建置編譯與執行 JAVA 的開發環境
  • JDK 包含了 JAVA 開發工具外,還包含了 JRE 和 JVM
  • JDK 可以開發與運行 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 JDK & Java Plugin

Method 2: Installing the JDK manually

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

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

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

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

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

在設定環境變數的檔案中加入下面參數

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

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

If you need installed the plugin to browser:

Firefox:

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

2.建立Plugin的連結

Chrome:

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

2.建立Plugin的連結

Test JDK & Plugin

Test Java Development Kit

Test Browser Plugin

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