Java:读取配置:无法创建锁管理器

时间:2015-07-14 15:35:26

标签: java eclipse

我收到了以下错误。我有Eclipse Mars和JRE V 1.7(我最初安装了V1.8但因为它不兼容所以卸载并安装了这个版本。)

我在调用Eclipse本身时遇到了这个问题。

eclipse.buildId=4.5.0.I20150603-2000
java.version=1.7.0_80
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US

!ENTRY org.eclipse.osgi 4 0 2015-07-14 11:20:39.006
!MESSAGE Error reading configuration: Unable to create lock manager.
!STACK 0
java.io.IOException: Unable to create lock manager.
    at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:698)
    at org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:1750)
    at org.eclipse.osgi.storage.Storage.getInfoInputStream(Storage.java:1767)
    at org.eclipse.osgi.storage.Storage.<init>(Storage.java:127)
    at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:86)
    at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:75)
    at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:31)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:295)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:231)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1488)

1 个答案:

答案 0 :(得分:2)

我怀疑你没有必要纠正eclipse尝试将其锁定文件写入的任何文件夹的写入权限。确保您具有正确的写入权限。

来自评论******

此外,您可能还需要使用管理权限运行Eclipse本身。例如,在Windows中,右键单击 - &gt;以管理员身份运行。