Chinaunix首页 | 论坛 | 博客
  • 博客访问: 576121
  • 博文数量: 836
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 4995
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-22 16:55
文章分类

全部博文(836)

文章存档

2008年(836)

我的朋友

分类: LINUX

2008-08-22 17:41:37

 
1.FirstdownloadJDK6,copyitto/usr/share/JDK6,andinstallit.
NOTE:ThefirsttimeItriedtoinstallJDK6.however,inFedora7,IfailedtoconfiguretheJAVA_HOME,CLASSPATHandPATHin/etc/profile.d,andthismademysystemrefusetoboot.SoIreinstalledFedora7.ThenexttimeItriedtoinstalltheJDK,IwasafraidthattheconfigurationofJDKwoulddestroymySystemonceagain,soIused“yum-yinstalljava”anditinstalledtheJDK5butNOTJDK6.It''sdefaultpathis/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0.

2.InstalltheEclipse.
Itisnotactuallyto"install"theEclipse,becauseto"install"Eclipsewejustsimpleuncompressthefileintoafolderanditwillwork.However,inFedora7,Idon''tknowwhy,it(Eclipse3.3)refusedtowork.IsearchmanyarticlesviaGoogleandBaiduandcouldn''tsolvetheproblem(Evennow,Idon''tknowhowtosolveityet.).SoIfinallyforcedtouse"Install/RemovePrograms"toinstallFedoraEclipse3.2.Thedefaultinstallingpathis/usr/share/eclipse.


3.InstallTomcat
WeinstalledtheTomcatalsousing"Install/RemovePrograms".However,whenItriedtouseittoday,IforgotthatIhadinstalledit[:)],soIwenttohomepageofTomcatanddownloadbothTomcat5.5andTomcat6.ButlaterIfoundthatEclipse3.2didn''tsupportTomcat6,soIinstalledTomcat5.5.ThemethodtoinstallTomcat5.5isalsoverysimple.Ijustdownloaditanduncompressitinto/opt/tomcat/.

4.integrateEclipse,JavaandTomcat.
4.1Java6inEclipse
Eclipse:Window-->Preferences-->Java-->installedJREs.TheJDK5isdefaultshowedonit.Using"Add",IaddedtheJDK6andpressed"OK"tofinishtheconfigurationofJDK6inEclipse.
NOTE:Tomcatdidn''tworkwhenIuseJDK5.WhenIhadatrytouseJDK6,andwasverygladtofindthatitworks.Sothisisveryimportant.
4.2Tomcat5.5inEclipse
Eclipse:Window-->Preferences-->Server-->InstalledRuntimes.Click"Add"ontheboardtoaddtheTomcat5.5.Noticetoselect"JDK6"youhaveinstalledasitsJRE.
4.3Tomcatplugin
TheconfigurationofTomcatpluginisthesameasthatinWindows.DownloadTomcatPluginV31anduncompressitinto$ECLIPSE_HOME/plugins.RestartEclipseandthreelogosofTomcatwillshow.ThengotoWindow-->Preferences-->Server-->Tomcatandconfigureit.AlsonoticetoselectJDK6oritwilltakenoactionwhenyoutrytostartit.

阅读(174) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~