Ubuntu 安装常用工具

1.   Installjdk1.7/1.8

Firstly, you need to add PPA:

sudoadd-apt-repository ppa:webupd8team/java

sudo apt-getupdate

 

Secondly, installoracle-jave-installer

Jdk7

sudo apt-get install oracle-java7-installer

jdk8

sudo apt-get install oracle-java8-installer

 

Installer willnotice you to agree some terms of services, SELECT ok, and the SELECT yes.

(Chooseable)

/**

But if you aretoo lazy to lift you fingers, you can add some cmds like this:

Jdk7

echo oracle-java7-installer shared/accepted-oracle-license-v1-1select true | sudo /usr/bin/debconf-set-selections

Jdk8

echo oracle-java8-installer shared/accepted-oracle-license-v1-1select true | sudo /usr/bin/debconf-set-selections

**/

Now ,you just need to wait it download from the internet.If your net’s speed is very slow, you can download the compressed file, such asxxxx.tar.gz, and copy the xxx.tar.gz to:

       /var/cache/oracle-jdk7-installer                 (jdk7) 

       /var/cache/oracle-jdk8-installer                 (jdk8) 

Then, reinstall the installer.

Thirdly, set jdk environment

JDk7

sudo update-java-alternatives -s java-7-oracle

JDK8

sudo update-java-alternatives -s java-8-oracle

If you have installed both jdk7 and jdk8, and you need to switchform 1.7 to 1.8 or 1.8 to 1.7, you can do like this:

jdk8 to jdk7

sudo update-java-alternatives -s java-7-oracle

jdk7 to jdk8

sudo update-java-alternatives -s java-8-oracle

Now,test whether jdk work well:

java -version

javac -version

 

2.   InstallEclipse

Firstly, Install

Download eclipse-java-neon-2-linux-gtk-x86_64.tar.gzfrom eclipse’s official website

Then uncompress it toyour workhome

Secondly, Create fast launch menu:

Locate in /usr/share/applications,create eclipse.desktop:

sudo gedit eclipse.desktopn and then input codes like this:

[Desktop Entry]

Type=Application

Name=Eclipse

Comment=Eclipse Integrated Development Environment

Icon=your path/icon.xpm

Exec=your path/eclipse

Terminal=false

Categories=Development;IDE;Java;


Now, click Dash and type “eclipse”,you will see a eclipse icon?Click it tolaunch,Eclipse will launch now,atthe same thime, Eclipse icon will show in the left taskbar。

We can lock it in the taskbar,youjust to click right button your mouse and click lock to Launcher。

Note:we can move eclipse.desktopto /home/dezhou/SoftWares/eclipse (Your eclipseroot path),and create a soft linkto/usr/share/applications,in thiscase we don’t need to recreate eclipse.desktop file when we reinstall oursystem。

cd /usr/share/applications

sudo ln -s /home/dezhou/SoftWares/eclipse /eclipse.desktop

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值