Linux下安装和使用Eclipse

下面是我的一些体会:

关于环境变量,这个是最无奈的,无论在windows还是linux下都需要设置,什么时候能够自动识别呢?
First install in Debian. Change to root, edit /etc/profile文件, 最后加上下面3行,如下:

Linux下安装和使用EclipseexportJAVA_HOME="/usr/local/java/jre1.6.0_03"
Linux下安装和使用EclipseexportPATH="/usr/local/java/jre1.6.0_03/bin":$PATH
Linux下安装和使用EclipseexportCLASSPATH=.:"/usr/local/java/jre1.6.0_03/lib"


Test installation:

Linux下安装和使用Eclipse[email protected]:~$su-
Linux下安装和使用EclipsePassword:
Linux下安装和使用Eclipsedebian:~#java-version
Linux下安装和使用Eclipsejavaversion"1.6.0_03"
Linux下安装和使用EclipseJava(TM)SERuntimeEnvironment(build1.6.0_03-b05)
Linux下安装和使用EclipseJavaHotSpot(TM)ClientVM(build1.6.0_03-b05,mixedmode,sharing)Linux下安装和使用Eclipse


Download, unzip the Eclipse and run. Bad luck, get error:

Linux下安装和使用Eclipse(eclipse:3674):Gtk-CRITICAL**:gtk_icon_theme_load_icon:assertion`GTK_IS_ICON_THEME(icon_theme)'failed
Linux下安装和使用Eclipse#
Linux下安装和使用Eclipse#AnunexpectederrorhasbeendetectedbyJavaRuntimeEnvironment:
Linux下安装和使用Eclipse#
Linux下安装和使用Eclipse#SIGSEGV(0xb)atpc=0xb7de64f3,pid=3674,tid=3077646016
Linux下安装和使用Eclipse#
Linux下安装和使用Eclipse#JavaVM:JavaHotSpot(TM)ClientVM(1.6.0_03-b05mixedmode,sharing)
Linux下安装和使用Eclipse#Problematicframe:
Linux下安装和使用Eclipse#C[libgtk-x11-2.0.so.0+0xf64f3]gtk_icon_set_render_icon+0x593
Linux下安装和使用Eclipse#
Linux下安装和使用Eclipse#Anerrorreportfilewithmoreinformationissavedashs_err_pid3674.log
Linux下安装和使用Eclipse#
Linux下安装和使用Eclipse#Ifyouwouldliketosubmitabugreport,pleasevisit:
Linux下安装和使用Eclipse#http://java.sun.com/webapps/bugreport/crash.jsp
Linux下安装和使用Eclipse#
Linux下安装和使用EclipseAborted
Linux下安装和使用Eclipse

Run it directly at the installation directory. Double click the "Eclipse":

Linux下安装和使用Eclipse

What to do next? Try:

debian:~# apt-get install eclipse

Successfully install eclipse. Here is information:

Linux下安装和使用EclipseEclipseSDK
Linux下安装和使用Eclipse
Linux下安装和使用EclipseVersion:3.2.1
Linux下安装和使用EclipseBuildid:M20060921-0945(Debianversion:3.2.1-4)

Run it from "Application -> Programming -> Eclipse"

Linux下安装和使用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/

欺骗一下系统。在此运行就成功了!

Linux下安装和使用Eclipse接下来要测试在Fedora7上的安装了。

参考:

http://www.cnblogs.com/oomusou/archive/2007/12/16/557741.html

http://goflyfreely.bokee.com/3310314.html

关于Debian安装Sun Java还可以参考

http://www.debian-administration.org/article/Installing_Sun%27s_Java_environment_on_Debian_systems
http://www.linuxforums.org/forum/debian-linux-help/53103-java-debian.html
http://crossfire.real-time.com/editors/install/linux_debian-v5.html
http://synapse.wordpress.com/2006/04/17/installing-sun-jre-on-debian/