java 开发环境搭建
1.JDK下载
http://www.oracle.com/technetwork/java/javase/downloads/index.html
2.解压
sudo tar -zxvf ~/jdk-8u25-linux-x64.tar.gz -C /usr/local/
3.配置环境变量
sudo gedit /etc/profile
末尾加入:
export JAVA_HOME=/usr/local/jdk1.8.0_25/
export PATH=$PATH:$JAVA_HOME/bin
4.注销登陆可以使用
java -version
查看是否安装成功
eclipse安装
1.下载
http://www.eclipse.org/downloads/
2.解压
sudo tar -vxzf ./eclipse-jee-luna-SR1-linux-gtk-x86_64.tar.gz -C /usr/local/
2.显示图标
新建eclipse.desktop 文件
1.JDK下载
http://www.oracle.com/technetwork/java/javase/downloads/index.html
2.解压
sudo tar -zxvf ~/jdk-8u25-linux-x64.tar.gz -C /usr/local/
3.配置环境变量
sudo gedit /etc/profile
末尾加入:
export JAVA_HOME=/usr/local/jdk1.8.0_25/
export PATH=$PATH:$JAVA_HOME/bin
4.注销登陆可以使用
java -version
查看是否安装成功
eclipse安装
1.下载
http://www.eclipse.org/downloads/
2.解压
sudo tar -vxzf ./eclipse-jee-luna-SR1-linux-gtk-x86_64.tar.gz -C /usr/local/
2.显示图标
新建eclipse.desktop 文件
[Desktop Entry]
Name=Eclipse
GenericName[zh_CN]=Eclipse
GenericName=Eclipse with ADT
Comment=Eclipse IDE
Exec=/usr/local/eclipse/eclipse
Terminal=false
Icon=eclipse-icon
Type=Application
Categories=Development;IDE;