[原创]在fedora core 2中安装jdk+tomcat+eclipse

准备安装文件:

tomcatPlugin v3.0
http://www.sysdeo.com/eclipse/tomcatPlugin.html

lomboz v3.01
emf-sdo-runtime-2.0.0
http://www.objectlearn.com/projects/download.jsp

tomcat 5.0.27
struts 1.1
http://jakarta.apache.org

JDK
http://java.sun.com

eclipse SDK 3.0 release
http://www.eclipse.org/downloads/index.php

新建home/project目录,将安装文件全部放在这下面,包括:

http://blog.csdn.net/images/blog_csdn_net/ggjjzhzz/36926/r_recycle.gif

[root@localhost root]# cd /home/project
[root@localhost project]#

linux下安装JDK:
[root@localhost project]# chmod +x j2sdk-1.4.2_05-linux-i586-rpm.bin
[root@localhost project]# ./j2sdk-1.4.2_05-linux-i586-rpm.bin
[root@localhost project]# rpm -iv j2sdk-1_4_2_05-linux-i586.rpm
JDK将被安装在/usr/java/j2sdk1.4.2_05/中
[root@localhost project]# ln -s /usr/java/j2sdk1.4.2_05 /home/j2se

linux下安装tomcat 5.0.27
[root@localhost project]# tar zxvf jakarta-tomcat-5.0.27.tar.gz
[root@localhost project]# ln -s /home/project/jakarta-tomcat-5.0.27 /home/tomcat

设置环境变量:

[root@localhost project]# gedit /etc/profile
在/etc/profile中加入如下代码:

export JAVA_HOME=/home/j2se
export CATALINA_HOME=/home/tomcat
export PATH=$PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin
export CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$CATALINA_HOME/common/lib/servlet-api.jar:$CATALINA_HOME/common/lib/jsp-api.jar

linux下安装eclipse SDK 3.0 release 及其插件
[root@localhost project]# unzip -d .. eclipse-SDK-3.0-linux-gtk.zip
[root@localhost project]# unzip -d /home/eclipse lomboz.301.zip
[root@localhost project]# unzip -d /home emf-sdo-runtime-2.0.0.zip
[root@localhost project]# unzip -d /home/eclipse/plugins/ tomcatPluginV3.zip

安装struts,源码,文档:
[root@localhost project]# tar zxvf jakarta-struts-1.1.tar.gz
[root@localhost project]# tar zxvf jakarta-struts-1.1-src.tar.gz
[root@localhost project]# unzip -d /home/j2se j2sdk-1.4.2-documentation.zip
[root@localhost project]# unzip -d /home/j2se j2sdk-1.4.2-documentation.zip
[root@localhost project]# unzip -d /home/j2se j2eeri-1_4-doc-api.zip
[root@localhost project]# cd ..
[root@localhost home]# cd j2se
[root@localhost j2se]# ls -a
. bin docs lib README THIRDPARTYLICENSEREADME.txt
.. COPYRIGHT include LICENSE README.html
apidocs demo jre man src.zip
[root@localhost j2se]# mv apidocs/ j2eedocs/
[root@localhost j2se]# cd /home/project

在面板上的抽屉中设置eclipse启动器:


启动eclipse:

http://blog.csdn.net/images/blog_csdn_net/ggjjzhzz/36926/r_fedora-eclipse.jpg

你可能感兴趣的:(eclipse,jdk,tomcat,linux,J2SE)