ubuntu中安装openjdk与oracle jdk
2012-12-17 00:00
344 查看
Preparing your system
First you need to remove openjdk for this run the following command from your terminal
sudo apt-get purge openjdk*
If you installed java 7 from any other PPA and you are having problem with java then you have to do following steps before installing the PPA menctioned here
sudo rm /var/lib/dpkg/info/oracle-java7-installer*
sudo apt-get purge oracle-java7-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt-get update
Install oracle java 7 in ubuntu 12.04
Open the terminal and run the following commands
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
You can check the java version by searching java in dashboard
First you need to remove openjdk for this run the following command from your terminal
sudo apt-get purge openjdk*
If you installed java 7 from any other PPA and you are having problem with java then you have to do following steps before installing the PPA menctioned here
sudo rm /var/lib/dpkg/info/oracle-java7-installer*
sudo apt-get purge oracle-java7-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt-get update
Install oracle java 7 in ubuntu 12.04
Open the terminal and run the following commands
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
You can check the java version by searching java in dashboard
相关文章推荐
- Ubuntu下同时安装OpenJDK和Oracle JDK
- ubuntu默认安装JAVA的openjdk版本没有tools.jar的问题(以ubuntu16.04为例)
- ubuntu下安装OpenJDK 7
- ubuntu14.04安装Oracle JDK
- Ubuntu16.04安装openjdk-7-jdk
- ubuntu安装openjdk
- Ubuntu16.04 安装openjdk-7-jdk
- Ubuntu 下安装 Oracle JDK
- ubuntu 安装 Oracle JDK
- 【技术】Ubuntu下安装最新OpenJdk1.8
- ubuntu 安装sunjdk替换openjdk
- ubuntu下安装tomcat的openjdk配置解决
- ubuntu安装JAVA的openjdk
- ubuntu 配置oracle jdk 安装eclipse
- ubuntu 14.04 安装openjdk 8
- ubuntu下安装jdk7并配置默认使用的JDK版本(默认openjdk6)
- [linux]ubuntu上卸载openjdk并安装sunjdk
- Ubuntu16.04/LinuxMint18安装openjdk-7-jdk
- Ubuntu Android OpenJDK 1.6、1.7、1.8、1.9下载安装
- [linux]ubuntu上卸载openjdk并安装sunjdk