安装jdk
http://www.javahelps.com/2015/03/install-oracle-jdk-in-ubuntu.html
安装eclipse
http://www.javahelps.com/2015/03/install-latest-eclipse-in-ubuntu.html
安装tomcat并集成eclipse
http://www.javahelps.com/2015/03/install-apache-tomcat-on-ubuntu.html
ubuntu 安装jdk
1,vim /etc/profile
2,
export JAVA_HOME=/opt/jdk1.8.0_77
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$CLASS_PATH:$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
3,可选vim /etc/environment
JAVA_HOME=/opt/jdk1.8.0_77
PATH=":/opt/jdk1.8.0_77/bin........................:/opt/jdk1.8.0_77/bin"
ubuntu 安装 tomcat:
在tomcat目录下新建backup目录,
在tomcat/bin目录下新建setenv.sh,
输入内容:export JAVA_HOME=jdk的目录
ubuntu 安装eclipse:
在dash里添加eclipse快捷方式:
1,cd /usr/share/applications/
2,vim eclipse.desktop
3,
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse Platfrom
Comment=Eclipse IDE
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;