Ubuntu安装jdk
1.去官网下载,我下载的是jdk-7u15-linux-i586.tar.gz
2.解压下载的jdk,解压到/home/jokul下
sudo tar -zxvf /home/jokul/Downloads/jdk-7u15-linux-i586.tar.gz
然后移动到/opt下
sudo mv /home/jokul/jdk1.7.0_15 /opt
3.配置环境变量
创建一个文件development.sh,在其中输入
JAVA_HOME=/opt/jdk1.7.0_15
CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
然后移动到/etc/profile.d
sudo mv /home/jokul/development.sh /etc/profile.d
ubuntu安装eclipse
1.到eclipse的官网去下载,我下载的是eclipse-jee-juno-SR1-linux-gtk.tar.gz
2.解压eclipse,可以直接解压.会解压到/home/jokul下
sudo tar -zxvf /home/jokul/work/software/eclipse-jee-juno-SR1-linux-gtk.tar.gz
然后移动到/opt
sudo mv /home/jokul/eclipse /opt
3.给eclilpse创建启动栏图标.随便创建一个文件,把下面的内容拷进去
[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=/opt/eclipse/icon.xpm
Exec=/opt/eclipse/eclipse
Terminal=false
Categories=Development;IDE;Java;
然后把名称改为eclipse.desktop,然后移动到/usr/share/applications目录下
sudo mv /home/jokul/eclispe.desktop /usr/share/applications
然后我们在Dash主页搜索关键字“eclipse”,就可以找到了
ubuntu eclipse安装tomcat
1.下载Eclipse的插件tomcatPlugin.网站http://www.eclipsetotale.com/tomcatPlugin.html.我下载的是tomcatPluginV33.zip
2.解压tomcatPluginV33.zip.然后放到/opt/eclipse/dropins中
3.下载tomcat,网站http://tomcat.apache.org/download-70.cgi.我下载的是apache-tomcat-7.0.35.tar.gz
4.解压,放到/opt中
sudo tar zxvf /home/jokul/work/software/apache-tomcat-7.0.35.tar.gz
sudo mv /home/jokul/apache-tomcat-7.0.35 /opt
5.在windows->perference->tomcat,设置tomcat路径