Fedora7下分别安装Eclopse
下面是我的一些体会:
关于环境变量,这个是最无奈的,无论在windows还是linux下都需要设置,什么时候能够自动识别呢?
FirstinstallinDebian.Changetoroot,edit/etc/profile文件,最后加上下面3行,如下:
exportJAVA_HOME="/usr/local/java/jre1.6.0_03"
exportPATH="/usr/local/java/jre1.6.0_03/bin":$PATH
exportCLASSPATH=.:"/usr/local/java/jre1.6.0_03/lib"
Testinstallation:
fxu@debian:~$su-
Password:
debian:~#java-version
javaversion"1.6.0_03"
Java(TM)SERuntimeEnvironment(build1.6.0_03-b05)
JavaHotSpot(TM)ClientVM(build1.6.0_03-b05,mixedmode,sharing)
Download,unziptheEclipseandrun.Badluck,geterror:
(eclipse:3674):Gtk-CRITICAL**:gtk_icon_theme_load_icon:assertion`GTK_IS_ICON_THEME(icon_theme)''failed
#
#AnunexpectederrorhasbeendetectedbyJavaRuntimeEnvironment:
#
#SIGSEGV(0xb)atpc=0xb7de64f3,pid=3674,tid=3077646016
#
#JavaVM:JavaHotSpot(TM)ClientVM(1.6.0_03-b05mixedmode,sharing)
#Problematicframe:
#C[libgtk-x11-2.0.so.0 0xf64f3]gtk_icon_set_render_icon 0x593
#
#Anerrorreportfilewithmoreinformationissavedashs_err_pid3674.log
#
#Ifyouwouldliketosubmitabugreport,pleasevisit:
#
#
Aborted
Runitdirectlyattheinstallationdirectory.Doubleclickthe"Eclipse":
Whattodonext?Try:
debian:~#apt-getinstalleclipse
Successfullyinstalleclipse.Hereisinformation:
EclipseSDK
Version:3.2.1
Buildid:M20060921-0945(Debianversion:3.2.1-4)
Runitfrom"Application->Programming->Eclipse"
没有找到JRE,这个容易,将之前下载的"/usr/local/java/jre1.6.0_03"拷贝到"/usr/lib/j2sdk1.4-sun/"就好了。
debian:~#cp-r/usr/local/java/jre1.6.0_03/usr/lib/j2sdk1.4-sun/
欺骗一下系统。在此运行就成功了!
下载本文示例代码