Linux下安装和使用Eclipse
2007-12-26 04:27
519 查看
下面是我的一些体会:
关于环境变量,这个是最无奈的,无论在windows还是linux下都需要设置,什么时候能够自动识别呢?
First install in Debian. Change to root, edit /etc/profile文件, 最后加上下面3行,如下:
export J***A_HOME="/usr/local/java/jre1.6.0_03"
export PATH="/usr/local/java/jre1.6.0_03/bin":$PATH
export CLASSPATH=.:"/usr/local/java/jre1.6.0_03/lib"
Test installation:
fxu@debian:~$ su -
Password:
debian:~# java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
Download, unzip the Eclipse and run. Bad luck, get error:
(eclipse:3674): Gtk-CRITICAL **: gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb7de64f3, pid=3674, tid=3077646016
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
# Problematic frame:
# C [libgtk-x11-2.0.so.0+0xf64f3] gtk_icon_set_render_icon+0x593
#
# An error report file with more information is saved as hs_err_pid3674.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted
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:
Eclipse SDK
Version: 3.2.1
Build 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/
欺骗一下系统。在此运行就成功了!
接下来要测试在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/
关于环境变量,这个是最无奈的,无论在windows还是linux下都需要设置,什么时候能够自动识别呢?
First install in Debian. Change to root, edit /etc/profile文件, 最后加上下面3行,如下:
export J***A_HOME="/usr/local/java/jre1.6.0_03"
export PATH="/usr/local/java/jre1.6.0_03/bin":$PATH
export CLASSPATH=.:"/usr/local/java/jre1.6.0_03/lib"
Test installation:
fxu@debian:~$ su -
Password:
debian:~# java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
Download, unzip the Eclipse and run. Bad luck, get error:
(eclipse:3674): Gtk-CRITICAL **: gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb7de64f3, pid=3674, tid=3077646016
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
# Problematic frame:
# C [libgtk-x11-2.0.so.0+0xf64f3] gtk_icon_set_render_icon+0x593
#
# An error report file with more information is saved as hs_err_pid3674.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted
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:
Eclipse SDK
Version: 3.2.1
Build 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/
欺骗一下系统。在此运行就成功了!
接下来要测试在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/
相关文章推荐
- Linux(ubuntu)下用eclipse对log4cplus库的安装,编译和使用-由张海伦指导完成
- 学习Hadoop第十二课(Hadoop序列化机制、Linux安装Eclipse及创建快捷图标、使用Maven开发)
- python安装MySQLdb:在windows下或linux下(以及eclipse中pydev使用msqldb的配置方法)
- Linux 系统下Eclipse安装及使用
- python安装MySQLdb:在windows下或linux下(以及eclipse中pydev使用msqldb的配置方法)
- Linux 下Eclipse安装及使用
- linux环境中的arm程序编辑器eclipse安装及使用方法
- Hadoop在Linux下伪分布式的安装以及wordcount实例的运行还有Eclipse的使用
- linux下安装jdk,让eclipse使用sun jdk
- linux(Ubuntu)下安装Eclipse 使用CDT调试C/C++程序
- Linux(centos)环境+xmanager+eclipse安装使用
- 如何在linux里将某个用户安装的eclipse共享给其他用户使用
- linux 下安装 eclipse for c++ 无法使用
- Eclipse下JRebel的安装和基本使用
- 使用links方式安装Eclipse插件
- Ubuntu12.04下JDK、Eclipse的安装,在linux终端中用命令启动eclipse
- Linux 上安装Eclipse并配置Hadoop
- linux下使用yum安装Apache+php+Mysql+phpMyAdmin
- linux下使用yum安装mysql