Fedora7下安装JDK6 Eclipse3.3 Tomcat6
1、安装jdk-6u3-linux-i586.bin:chmod +x jdk-6u3-linux-i586.bin
./jdk-6u3-linux-i586.bin
自动安装,然后拷贝jdk1.6.0_03到/usr/local下。解压缩apache-tomcat-6.0.14.tar.gz和eclipse-java-europa-fall-linux-gtk.tar.gz到/usr/local下。
2、配置/etc/profile:
export JAVA_HOME=/usr/local/jdk1.6.0_03
export PATH=$PATH:JAVA_HOME/bin
export CLASSPATH=$JAVA_HOME/lib
export CATALINA_BASE=/usr/local/tomcat6
export CATALINA_HOME=/usr/local/tomcat6
export PATH=$PATH:$CATALINA_HOME/bin
3、建立一个run.sh文件
export JAVA_HOME=/usr/local/jdk1.6.0_03
export CLASSPATH=/usr/local/jdk1.6.0_03/lib
/opt/eclipse/eclipse -vm /usr/java/jdk1.6.0_03/bin/java &
给run.sh加上执行权限: chmod +x run.sh
这样就可以双击run.sh就运行eclipse了。
4、配置工作空间 /root/workspace
[root@dhcp-24574-347 bin]# sh startup.sh
Using CATALINA_BASE: /usr/local/tomcat6
Using CATALINA_HOME: /usr/local/tomcat6
Using CATALINA_TMPDIR: /usr/local/tomcat6/temp
Using JRE_HOME: /usr/local/jdk1.6.0_03
[root@dhcp-24574-347 bin]# cd /usr/local/eclipse
[root@dhcp-24574-347 eclipse]# sh run.sh