Linux(Fedora7)+JDK6+Eclipse3.2+Tomcat5.5

17 篇文章 0 订阅
1.First download JDK6, copy it to /usr/share/JDK6, and install it.
  NOTE: The first time I tried to install JDK6. however, in Fedora7, I failed to configure the JAVA_HOME, CLASSPATH and PATH in /etc/profile.d, and this made my system refuse to boot. So I reinstalled Fedora7. The next time I tried to install the JDK, I was afraid that the configuration of JDK would destroy my System once again, so I used “yum -y install java” and it installed the JDK5 but NOT JDK6. It's default path is /usr/lib/jvm/java-1.5.0-gcj-1.5.0.0.

2. Install the Eclipse.
  It is not actually to "install" the Eclipse, because to "install" Eclipse we just simple uncompress the file into a folder and it will work. However, in Fedora 7, I don't know why,it (Eclipse 3.3) refused to work. I search many articles via Google and Baidu and couldn't solve the problem (Even now, I don't know how to solve it yet.). So I finally forced to use "Install/Remove Programs" to install Fedora Eclipse 3.2. The default installing path is /usr/share/eclipse.


3. Install Tomcat
 We installed the Tomcat also using "Install/Remove Programs". However, when I tried to use it today, I forgot that I had installed it [ :) ], so I went to homepage of Tomcat and download both  Tomcat 5.5 and Tomcat 6. But later I found that Eclipse 3.2 didn't support Tomcat 6, so I installed Tomcat 5.5. The method to install Tomcat 5.5 is  also very simple. I just download it and uncompress it into /opt/tomcat/.

4. integrate Eclipse, Java and Tomcat.
  4.1 Java 6 in Eclipse
  Eclipse: Window --> Preferences --> Java --> installed JREs. The JDK 5 is default showed on it. Using "Add", I added the JDK 6 and pressed "OK" to finish the configuration of JDK 6 in Eclipse.
  NOTE: Tomcat didn't work when I use JDK 5. When I had a try to use JDK 6, and was very glad to find that it works. So this is very important.
  4.2 Tomcat 5.5 in Eclipse
 Eclipse: Window --> Preferences --> Server --> Installed Runtimes. Click "Add" on the board to add the Tomcat 5.5. Notice to select "JDK 6" you have installed as its JRE.
  4.3 Tomcat plugin
  The configuration of Tomcat plugin is the same as that in Windows. Download TomcatPluginV31 and uncompress it into $ECLIPSE_HOME/plugins. Restart Eclipse and three logos of Tomcat will show. Then  go to Window --> Preferences --> Server --> Tomcat and configure it. Also notice to select JDK 6 or it will take no action when you try to start it.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值