Ubuntu 安装常用工具
2017-06-30 12:32
316 查看
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
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
相关文章推荐
- Ubuntu下常用开发工具安装(VirtualBox/ctags/Beyond Compare/Source Insight/ADB/minicom/fastboot)
- ubuntu操作系统及常用的工具的安装
- ubuntu常用工具安装
- 如何正确的使用Ubuntu以及安装常用的渗透工具集.
- ubuntu 装机常用工具安装总结
- Ubuntu下常用开发工具安装和配置(ROUTER+DHCP+SSH+NFS+SAMBA)
- Ubuntu 常用工具、指令安装
- Ubuntu常用工具安装
- Ubuntu中常用的工具安装
- Ubuntu 13.0 嵌入式开发常用工具安装(二) u-boot和Kernel及busybox官方下载地址
- ubuntu 安装git软件和ubuntu上常用gui工具
- 常用工具包-哈工大语言技术平台(LTP)-本地安装-java接口(ubuntu,win7-64位)
- Ubuntu 16.04安装Ubuntu After Install工具实现常用软件批量安装
- 常用工具包-哈工大语言技术平台(LTP)-本地安装-python接口(ubuntu,win7-64)
- ubuntu安装常用的工具及解决若干问题
- ubuntu 13.10 安装常用工具
- Ubuntu安装常用工具
- ubuntu常用工具安装
- Ubuntu下常用小工具安装以及扩大磁盘分区方法
- 阿里云ubuntu 16.04 Server配置方案 3 安装git ,node,pyhon常用的工具