歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

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

Copyright © Linux教程網 All Rights Reserved