下面是我的一些体会:

关于环境变量,这个是最无奈的,无论在windows还是linux下都需要设置,什么时候能够自动识别呢?

First install in Debian. Change to root, edit /etc/profile文件, 最后加上下面3行,如下:

 



Linux下安装和使用Eclipse_eclipseexport JAVA_HOME="/usr/local/java/jre1.6.0_03"

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

Linux下安装和使用Eclipse_eclipseexport CLASSPATH=.:"/usr/local/java/jre1.6.0_03/lib"


Test installation: 

 



Linux下安装和使用Eclipse_eclipsefxu@debian:~$ su -

Linux下安装和使用Eclipse_eclipsePassword:

Linux下安装和使用Eclipse_eclipsedebian:~# java -version

Linux下安装和使用Eclipse_eclipsejava version "1.6.0_03"

Linux下安装和使用Eclipse_eclipseJava(TM) SE Runtime Environment (build 1.6.0_03-b05)

Linux下安装和使用Eclipse_eclipseJava HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)Linux下安装和使用Eclipse_eclipse


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



Linux下安装和使用Eclipse_eclipse(eclipse:3674): Gtk-CRITICAL **: gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed

Linux下安装和使用Eclipse_eclipse#

Linux下安装和使用Eclipse_eclipse# An unexpected error has been detected by Java Runtime Environment:

Linux下安装和使用Eclipse_eclipse#

Linux下安装和使用Eclipse_eclipse#  SIGSEGV (0xb) at pc=0xb7de64f3, pid=3674, tid=3077646016

Linux下安装和使用Eclipse_eclipse#

Linux下安装和使用Eclipse_eclipse# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)

Linux下安装和使用Eclipse_eclipse# Problematic frame:

Linux下安装和使用Eclipse_eclipse# C  [libgtk-x11-2.0.so.0+0xf64f3]  gtk_icon_set_render_icon+0x593

Linux下安装和使用Eclipse_eclipse#

Linux下安装和使用Eclipse_eclipse# An error report file with more information is saved as hs_err_pid3674.log

Linux下安装和使用Eclipse_eclipse#

Linux下安装和使用Eclipse_eclipse# If you would like to submit a bug report, please visit:

Linux下安装和使用Eclipse_eclipse#   http://java.sun.com/webapps/bugreport/crash.jsp

Linux下安装和使用Eclipse_eclipse#

Linux下安装和使用Eclipse_eclipseAborted

Linux下安装和使用Eclipse_eclipse


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

 

What to do next? Try:

debian:~# apt-get install eclipse

Successfully install eclipse. Here is  information:

 



Linux下安装和使用Eclipse_eclipseEclipse SDK

Linux下安装和使用Eclipse_eclipse

Linux下安装和使用Eclipse_eclipseVersion: 3.2.1

Linux下安装和使用Eclipse_eclipseBuild id: M20060921-0945 (Debian version: 3.2.1-4)


 

 

Run it from "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/

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