日期:2014-05-17  浏览次数:20869 次

重装Windows7 Eclipse3.6不能启动

?  将Windows XP升级为Windows7,启动D盘的 Eclipse3.6报告如下错误。


  查看eclipse的日志发现存在如下错误信息。

java.lang.RuntimeException: D:\eclipse3.6\configuration\org.eclipse.osgi\.manager\.fileTableLock (拒绝访问。)
	at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:187)
	at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:157)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:286)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
	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:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Caused by: java.io.FileNotFoundException: D:\eclipse3.6\configuration\org.eclipse.osgi\.manager\.fileTableLock (拒绝访问。)
	at java.io.RandomAccessFile.open(Native Method)
	at java.io.RandomAccessFile.<init>(Unknown Source)
	at org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio.lock(Locker_JavaNio.java:33)
	at org.eclipse.osgi.storagemanager.StorageManager.lock(StorageManager.java:387)
	at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:688)
	at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(BaseStorage.java:213)
	at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(BaseStorage.java:147)
	at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.java:114)
	at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:185)

?
?  进入错误提示的目录查看文件存在。因此,根据以往对Widows7的使用经验来看,应该是文件访问权限不足导致。查看.fileTableLock文件的安全选项,问题果然如此,该文件在windows7下的账户和组下只有读取权限。因此,删除原属于Windows XP的账户和组。



??

重新编辑Windows 7下的组合账户的SYSTEM权限。问题解决了。



?