资讯专栏INFORMATION COLUMN

Install Oracle JDK7 in Ubuntu

cheukyin / 2632人阅读

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

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/69765.html

相关文章

  • Ubuntu14.04 LTS下安装jdk

    摘要:近日,由于项目要求,需要在下安装和配置开发环境,下面对自己的一些实践做了一下总结。二下载提供的自解压包进行手动安装这种安装可自由选择版本,能进行灵活的配置。我一般把非系统软件安装到下。 近日,由于项目要求,需要在ubuntu下安装和配置java开发环境,下面对自己的一些实践做了一下总结。   Sun JDK的安装一般有两种方式: 一、通过ubuntu提供的包管理工具进行安装   ...

    dreamGong 评论0 收藏0

发表评论

0条评论

cheukyin

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<