启动eclipse时出错

时间:2011-07-04 09:43:38

标签: eclipse

我正在尝试启动eclipse,我收到以下错误。我在windows7机器上运行Indigo并使用java版本1.6.0_24。这是错误:

!SESSION 2011-07-04 02:27:06.256 -----------------------------------------------
eclipse.buildId=M20110210-1200
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.osgi 4 0 2011-07-04 02:27:07.496
!MESSAGE Startup error
!STACK 1
java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre6\bin\nio.dll: The specified procedure could not be found
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.nio.ch.Util.load(Unknown Source)
    at sun.nio.ch.FileChannelImpl.<clinit>(Unknown Source)
    at java.io.RandomAccessFile.getChannel(Unknown Source)
    at org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio.lock(Locker_JavaNio.java:39)
    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)
    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:620)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

2 个答案:

答案 0 :(得分:1)

如果我是你,我会卸载Java,然后重新安装。很明显,文件丢失或Eclipse正在查找错误的位置。您最近是否运行了“优化”计算机的程序?还是注册表清理工具?您可以尝试将文件放在C:\ Program Files \ Java \ jre6 \ bin \中调用nio.dll,看看会发生什么。它可以工作,为您节省大量时间。或者你可以重新安装Java。祝你好运!

答案 1 :(得分:1)

只需修改eclipse.ini文件,在-vmargs选项之前包含vm选项,如下所示:

-vm
C:\Program Files\Java\jdk1.6.0\bin\javaw.exe