Ubuntu 安装常用工具
来源:互联网 发布:金融软件供应商 编辑:程序博客网 时间:2024/06/05 16:39
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
- ubuntu常用工具安装
- ubuntu 13.10 安装常用工具
- Ubuntu常用工具安装
- ubuntu常用工具安装
- Ubuntu 安装常用工具
- ubuntu 装机常用工具安装总结
- Ubuntu常用工具
- Ubuntu常用工具
- ubuntu常用工具
- ubuntu常用工具【转】
- ubuntu的常用工具
- ubuntu下常用工具
- ubuntu下常用工具
- ubuntu下常用工具
- ubuntu常用工具记录
- Fedora 10 常用工具安装
- Linux 安装常用工具
- linux常用工具安装
- Git快照
- 调用自己封装的库,实现位图的格式转换
- Android布局加载React Native视图
- 宏定义 命名规范和常用的
- 根据滑动改变view的大小和位置
- Ubuntu 安装常用工具
- TabLayout的各种用法
- protobuf入门教程(六):导入定义(import)
- 深入浅出,带你撸出一个ButterKnife
- 搜集有意义的东西
- 团队协作及scrum sprint story编写
- lvs与nginx区别
- 画圆拖动0630
- How can I convert printStackTrace message to a string?