求助,ECLIPSE在LINUX下无法运行.

时间:2008-01-16 12:57:54  来源:  作者:

下载了eclipse_linux_gtk 3.1,在GNOME 2.8下运行,JDK为sun jdk 1.5,系统内核2.6.7,一运行就出错,我是新手,大家帮帮我啊,是哪里有问题呢,怎么才能让它在LINUX正常动行,以下是出错提示: 


!SESSION Oct 11, 2004 00:36:59.306 --------------------------------------------- 
eclipse.buildId=M200409161125 
java.version=1.5.0 
java.vendor=Sun Microsystems Inc. 
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US 

!ENTRY org.eclipse.osgi Oct 11, 2004 00:36:59.334 
!MESSAGE Startup error 
!STACK 1 
java.lang.RuntimeException: Exception while creating System Bundle: Unable to find system bundle manifest file. 
at org.eclipse.osgi.framework.internal.core.Framework.createSystemBundle(Framework.java:253) 
at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:152) 
at org.eclipse.osgi.framework.internal.core.Framework.<init>;(Framework.java:95) 
at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90) 
at org.eclipse.osgi.framework.internal.core.OSGi.<init>;(OSGi.java:31) 
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:215) 
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:585) 
at org.eclipse.core.launcher.Main.basicRun(Main.java:185) 
at org.eclipse.core.launcher.Main.run(Main.java:704) 
at org.eclipse.core.launcher.Main.main(Main.java:688) 
!SESSION Mon Oct 11 00:36:59 GMT 2004 ------------------------------------------ 
!ENTRY org.eclipse.core.launcher 4 0 Oct 11, 2004 24:36:59.376 
!MESSAGE Exception launching the Eclipse Platform: 
!STACK 
java.lang.NullPointerException 
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:138) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:585) 
at org.eclipse.core.launcher.Main.basicRun(Main.java:185) 
at org.eclipse.core.launcher.Main.run(Main.java:704) 
at org.eclipse.core.launcher.Main.main(Main.java:688)



 sakulagi 回复于:2004-10-11 20:35:01

我只在Gnome 2.4上用过Eclipse 2.1.2和3.0,都没有问题。


 findreams 回复于:2004-10-12 14:10:15

那问一下,能在LINUX下正常使用ECLIPSE的同志们,你们的运行环境是什么啊?都用的是什么发行版,什么JDK,什么桌面环境?


 jhsea3do 回复于:2004-10-12 16:06:09

fedora 1+gnome(自带)+j2sdk1.42+eclipse 2.1.3 (3.0)


 sakulagi 回复于:2004-10-12 16:38:11

RH3Enterprise, Eclipse 2.12/3.0


 shawleo 回复于:2004-10-13 14:40:21

你不妨试用一下J2SDK 1.4.2.


 greenapplepark 回复于:2004-10-13 17:37:52

我也是这样的情况,不知道怎么解决,哪位大侠还碰到过这种情况吗?


 findreams 回复于:2004-10-13 18:12:57

jdk 1.4.2 试过了,还是不行,在别的地方也问了这个问题,sun的论坛上和eclipse的新闻组都去了,还没有能给解决的,这个问题真是奇怪了,好像还有不少人也遇到,受不了了........


 elssann 回复于:2004-10-13 18:39:59

我也遇到这个问题,开始安装的是 eclipse3.1+jdk 1.5,
后来换成了 eclipse 3.0+ jdk 1.42,还是不行,

有没有人提出解决办法啊
我用的是Fedora Core2
大家都是用的什么?


 elssann 回复于:2004-10-13 18:44:18

我贴上我的错误日志
!SESSION 十月 13, 2004 18:17:01.451 ----------------------------------------------
eclipse.buildId=I200406251208
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=zh_CN

!ENTRY org.eclipse.osgi 十月 13, 2004 18:17:01.472
!MESSAGE Startup error
!STACK 1
java.lang.RuntimeException: Exception while creating System Bundle: Unable to find system bundle manifest file.
at org.eclipse.osgi.framework.internal.core.Framework.createSystemBundle(Framework.java:253)
at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:152)
at org.eclipse.osgi.framework.internal.core.Framework.<init>;(Framework.java:95)
at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90)
at org.eclipse.osgi.framework.internal.core.OSGi.<init>;(OSGi.java:31)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:215)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
!SESSION Wed Oct 13 18:17:01 CST 2004 ------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 十月 13, 2004 18:17:01.509
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.NullPointerException
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)


 greenapplepark 回复于:2004-10-13 19:11:59

这几天我一直在网上搜索,不过都没什么合适的答案
在win下面eclipse好像是要一个javaw来运行的
我在linux下找了一个,只有javaws这个程序


 greenapplepark 回复于:2004-10-13 19:36:16

在win下面我也碰到过这样的问题,原因是在装了jdk以后我又装了一个oracle的客户端,oracle自己有装了一个jdk,并且添加到系统的环境变量里面去了,后来我把环境变量删掉还要改一下注册表,eclipse才能正常运行。我原来在另外一台机器上linux下装eclipse是可以的,不过不记得是jdk1.4还是1.5了,反正是这两个里面的一个。这次装eclipse之前我先装了一个永中的office,一个用java写的office,也是自带了一个jre,不过我在/etc/profile里面找了一下,他并没写到那个文件中去,而eclipse也启动不了


 elssann 回复于:2004-10-14 17:57:47

我现在怀疑是Fedora Core2的问题
大家都是用的什么?


 shiyiming 回复于:2004-10-14 21:08:49

我也试试看


 greenapplepark 回复于:2004-10-15 10:17:34

我用的rh9的,以前曾经成功过,不过是在另外一台机器上
现在这台机器上java路径设置正确,编译运行都正常


 elssann 回复于:2004-10-19 10:16:43

这个问题我已经找到了解决办法

http://bbs.chinaunix.net/forum/26/20041019/427535.html


 zxffl 回复于:2006-12-30 22:23:26

今天 搞了一天一直不成功,临近晚上十点终于能够解决了,但具体原因请高手解释,我没有想明白为什么?
解决方案如下:
1.在windows下解压
tar zxvf eclipse-SDK-3.2.1-linux-gtk.tar.gz
cd eclipse
./eclipse
成功
2. cp -rf eclipse  /home/user/
chown -R user:root eclipse
cd /home/user/eclipse/
./eclipse
成功
3. cp -rf eclipse /usr/eclipse
chown -R user:root eclipse
cd eclipse
./eclipse
出现上述错误,存入日志文件中
出就是1,2是成功的,但为什么3不成功我就不清楚了,但eclipse3.0当时我在/usr/下运行也是成功的

有问题可以联系我[email]zxffl@163.com[/email]


 ua 回复于:2006-12-31 08:47:11

文件权限?!




原文链接:http://bbs.chinaunix.net/viewthread.php?tid=422330
转载请注明作者名及原文出处


文章评论

共有 位网友发表了评论 查看完整内容