QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 973|回复: 6

ecilpse在普通用户下无法运行?

[复制链接]
发表于 2005-8-31 23:10:28 | 显示全部楼层 |阅读模式
系统:debian3.0;ecilpse3.1在root下可以运行,但在普通用户下无法运行?
错误信息如下:
!SESSION 2005-08-31 23:03:11.638 -----------------------------------------------
eclipse.buildId=I20050627-1435
java.version=1.4.2_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=zh_CN
Command-line arguments:  -os linux -ws gtk -arch x86

!ENTRY org.eclipse.osgi 2005-08-31 23:03:12.106
!MESSAGE Error reading configuration: /usr/local/eclipse/configuration/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)
!STACK 0
java.io.FileNotFoundException: /usr/local/eclipse/configuration/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
        at org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio.lock(Locker_JavaNio.java:34)
        at org.eclipse.core.runtime.adaptor.FileManager.lock(FileManager.java:361)
        at org.eclipse.core.runtime.adaptor.FileManager.open(FileManager.java:65
        at org.eclipse.core.runtime.adaptor.EclipseAdaptor.initFileManager(EclipseAdaptor.java:809)
        at org.eclipse.core.runtime.adaptor.EclipseAdaptor.initialize(EclipseAdaptor.java:139)
        at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:126)
        at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:104)
        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:272)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:159)
        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.invokeFramework(Main.java:334)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:27
        at org.eclipse.core.launcher.Main.run(Main.java:973)
        at org.eclipse.core.launcher.Main.main(Main.java:94

!ENTRY initial@reference:file:plugins/org.eclipse.core.runtime_3.1.0.jar/ 0 0 2005-08-31 23:03:12.673
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.core.internal.runtime.PlatformActivator.start() of bundle org.eclipse.core.runtime.
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1013)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:969)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:321)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:339)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1024)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:576)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:49
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:45
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)
Caused by: java.io.FileNotFoundException: /usr/local/eclipse/configuration/org.eclipse.core.runtime/.manager/.fileTableLock (Permission denied)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
        at org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio.lock(Locker_JavaNio.java:34)
        at org.eclipse.core.runtime.adaptor.FileManager.lock(FileManager.java:361)
        at org.eclipse.core.runtime.adaptor.FileManager.open(FileManager.java:65
        at org.eclipse.core.internal.runtime.InternalPlatform.initializeRuntimeFileManager(InternalPlatform.java:786)
        at org.eclipse.core.internal.runtime.InternalPlatform.start(InternalPlatform.java:1086)
        at org.eclipse.core.internal.runtime.PlatformActivator.startInternalPlatform(PlatformActivator.java:141)
        at org.eclipse.core.internal.runtime.PlatformActivator.start(PlatformActivator.java:57)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:994)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:98
        ... 10 more
Root exception:
java.io.FileNotFoundException: /usr/local/eclipse/configuration/org.eclipse.core.runtime/.manager/.fileTableLock (Permission denied)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
        at org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio.lock(Locker_JavaNio.java:34)
        at org.eclipse.core.runtime.adaptor.FileManager.lock(FileManager.java:361)
        at org.eclipse.core.runtime.adaptor.FileManager.open(FileManager.java:65
        at org.eclipse.core.internal.runtime.InternalPlatform.initializeRuntimeFileManager(InternalPlatform.java:786)
        at org.eclipse.core.internal.runtime.InternalPlatform.start(InternalPlatform.java:1086)
        at org.eclipse.core.internal.runtime.PlatformActivator.startInternalPlatform(PlatformActivator.java:141)
        at org.eclipse.core.internal.runtime.PlatformActivator.start(PlatformActivator.java:57)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:994)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:98
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:969)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:321)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:339)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1024)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:576)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:49
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:458)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)

!ENTRY initial@reference:file:plugins/org.eclipse.update.configurator_3.1.0.jar/ 0 0 2005-08-31 23:03:12.713
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.update.internal.configurator.ConfigurationActivator.start() of bundle org.eclipse.update.configurator.
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1013)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:969)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:321)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:339)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1024)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:576)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:498)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:458)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)
Caused by: java.lang.Exception: Cannot initialize the Update Configurator
        at org.eclipse.update.internal.configurator.ConfigurationActivator.initialize(ConfigurationActivator.java:89)
        at org.eclipse.update.internal.configurator.ConfigurationActivator.start(ConfigurationActivator.java:67)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:994)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:988)
        ... 10 more
Root exception:
java.lang.Exception: Cannot initialize the Update Configurator
        at org.eclipse.update.internal.configurator.ConfigurationActivator.initialize(ConfigurationActivator.java:89)
        at org.eclipse.update.internal.configurator.ConfigurationActivator.start(ConfigurationActivator.java:67)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:994)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:988)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:969)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:321)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:339)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1024)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:576)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:498)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:458)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)

!ENTRY org.eclipse.osgi 2005-08-31 23:03:12.716
!MESSAGE Startup error
!STACK 1
java.lang.IllegalStateException: Bundle initial@reference:file:plugins/org.eclipse.core.runtime_3.1.0.jar/ [1] is not active.
        at org.eclipse.core.runtime.adaptor.EclipseStarter.ensureBundlesActive(EclipseStarter.java:410)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:297)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:159)
        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.invokeFramework(Main.java:334)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
        at org.eclipse.core.launcher.Main.run(Main.java:973)
        at org.eclipse.core.launcher.Main.main(Main.java:948)
请问应该怎么解决?
在普通用户x下用root也无法运行eclipse,错误提示:
A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
/usr/local/eclipse/./jre/bin/java
'java' in your current PATH
在root的x下运行都正常,但在普通用户x下root也不能运行,找不到解决方法,还请大家帮忙?
发表于 2005-9-1 10:22:18 | 显示全部楼层
我也有同样的问题~~~~~~~~~~~~~~~~
而且在root下也不能运行
回复

使用道具 举报

发表于 2005-9-1 11:26:12 | 显示全部楼层
java.io.FileNotFoundException: /usr/local/eclipse/configuration/org.eclipse.core.runtime/.manager/.fileTableLock (Permission denied)
java.io.FileNotFoundException: /usr/local/eclipse/configuration/org.eclipse.core.runtime/.manager/.fileTableLock (Permission denied)
看到了这些异常的信息了么?你去确认一下
/usr/local/eclipse/
这个目录下所有文件是不是root之外无法访问(读写执行)
如果时就修改这些文件属性就可以了,不是什么大不了的问题。
回复

使用道具 举报

 楼主| 发表于 2005-9-1 14:11:15 | 显示全部楼层
to:goodboy1881
1.eclipse下的文件chmod 777 后还是不行;
2.如果是权限问题,在普通用户下用root还是不行;
不知道怎么解决???
回复

使用道具 举报

发表于 2005-9-1 19:28:09 | 显示全部楼层
很有可能是哪些环境变量没配好
我自己摸索着,终于在root下能运行eclipse了
你再到网上去查一查
呵呵,我也是刚刚配好的
回复

使用道具 举报

发表于 2005-9-2 11:30:30 | 显示全部楼层
?????
回复

使用道具 举报

发表于 2005-9-4 08:40:00 | 显示全部楼层
#!/bin/bash
export JAVA_HOME=/opt/SUNWappserver/jdk
export PATH=$PAHT:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/tools.jar
/usr/local/bin/eclipse/eclipse -vm /opt/SUNWappserver/jdk/bin/java -data ~/workspace


fileName: eclips.sh
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-5 11:45 , Processed in 0.047516 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表