Sun Java packages have been dropped from Ubuntu
10.04 LTS from the Multiverse section of Ubuntu archive. Ubuntu team is encouraging users to use OpenJDK instead of Sun JDK/JRE but still if you want to install Sun JDK on your Ubuntu then here is the solution for the same.
perform the following four steps to install the package.
1. Add the Canonical Partner Repository to your apt repositories:
2. Update the source list
3. Install
sun-java6-jdk
| $ sudo apt-get install sun-java6-jdk |
4. Select Sun’s Java as the default on your machine.
| $ sudo update-java-alternatives -s java-6-sun |
The full JDK which will be placed in
/usr/lib/jvm/java-6-sun (well, this directory is actually a symlink on Ubuntu).
After installation, make a quick check whether Sun’s JDK is correctly set up:
3 | Java(TM) SE Runtime Environment (build 1.6.0_20-b02) |
4 | Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing) |
0 comments:
Post a Comment