Ubuntu安裝JDK7(Oracle JDK)

Ubuntu安裝JDK7(Oracle JDK) 

Preparing your systemjava

First you need to remove openjdk for this run the following command from your terminalweb

sudo apt-get purge openjdk*ubuntu

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 hereoracle

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 updatethis


Install oracle java 7 in ubuntu 12.04spa

Open the terminal and run the following commandsrem

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installerterminal

You can check the java version by searching java in dashboardget

相關文章
相關標籤/搜索