Install the Oracle JDK 6
来源:互联网 发布:win7小马激活软件 编辑:程序博客网 时间:2024/05/16 14:02
Oracle themselves have the official guide to install their JDK - below is based upon those instructions.
- Download the 32bit or 64bit Linux "compressed binary file" - it has a ".bin" file extension
Give it permissions to execute and extract it
chmod a+x [version]-linux-i586.bin
./[version]-linux-i586.bin
During installation it will ask you to register - press ENTER. Firefox will open with the registration page. Registration is optional.
JDK 6 package is extracted into ./jdk1.6.0_x
directory, for example./jdk1.6.0_30
.
Lets rename it:
mv jdk1.6.0_30 java-6-oracle
- Now move the JDK 6 directory to
/usr/lib
sudo mkdir /usr/lib/jvm
sudo mv java-6-oracle /usr/lib/jvm
switch to Oracle JDK 6
webupd8.googlecode.com hosts a nice-easy script to help with this.
wget http://webupd8.googlecode.com/files/update-java-0.5bchmod +x update-java-0.5bsudo ./update-java-0.5b
don't worry - 0.5b refers to the script version - not the version of java!
An alternative to this is to use the webupd8 ppa and the update-java
package.
Finally test the switch has been successful:
java -versionjavac -version
- Install the Oracle JDK 6
- how to install the Oracle Java (JDK) 8, Oracle Java (JDK + JRE) 7 or Oracle Java (JDK) 6 on Ubuntu 1
- Ubuntu install Oracle jdk
- ubuntu install Oracle JDK/JRE
- To install JDK on the Linux
- Install JDK on the Cent Os 6.2
- ubuntu 14.0.4 install oracle jdk
- install sun jdk 6-7
- jdk install
- JDK install
- jdk install
- jdk install
- How can I install Sun/Oracle's proprietary Java 6/7 JRE or JDK?
- How to Install Oracle Java JDK 6/7/8 on Ubuntu 13.04 / 12.10 / 12.04
- How to install the Sun Java JDK on Ubuntu 10.10
- How To Install Oracle Java 7 (JDK) In Ubuntu
- Install Oracle Java JDK 7 in Ubuntu 12.04 (Precise Pangolin)
- How to Install Oracle Java JDK on Ubuntu Linux
- jdk1.5-1.7新特性详细介绍
- 文件下载中文文件名乱码
- 在SQLPLUS中oracle查看表结构SQL语句 oracle修改表字段SQL语句 修改表字段SQL语句
- 实战DeviceIoControl 之一:通过API访问设备驱动程序(学习)
- 技术转载:Android高手进阶教程(二十二)之---Android中几种图像特效处理的集锦!! .
- Install the Oracle JDK 6
- [转].net中的认证(authentication)与授权(authorization)
- Autohiding Scrollbars
- 实战DeviceIoControl 之二:获取软盘/硬盘/光盘的参数(学习)
- Perl Object
- [转]FluorineFx:认证与授权
- 数据库查询大全
- 实战DeviceIoControl 之三:制作磁盘镜像文件
- Windows 7远程桌面连接设置