[转载]Ubuntu 12.04 – install sun jdk 6-7
Contents
Ubuntu GNU/Linux 12.04 LTS (Precise Pangolin) released. I wanted to manually install the Sun JDK 6 and 7 on Ubuntu.
Installing Sun JDK 6 on Ubuntu 12.04:
-
Download the sun jdk 6 binfrom here .
-
Make the bin file executeable:
- Extract the bin file:
- Move extracted folder to this location:
- Install new java source in system:
- Choose default java:
- java version test:
- Verify the symlinks all point to the new java location:
- Enable Java plugin for Mozilla Firefox (even for Chrome)
Installing Sun JDK 7 on Ubuntu 12.04:
- Download the sun jdk 7 tar filefrom here
- Extract the tar file:
- Move extracted folder to this location:
- Install new java source in system:
- Choose default java:
- java version test:
- Verify the symlinks all point to the new java location:
- Enable Java plugin for Mozilla Firefox (even for Chrome)
**Update:**I have added Java Web Start configuration (Thanks Jack).
**Update:**I have added Java Plugin configuration for Mozilla Firefox even for Chrome (Thanksshetty).