简体   繁体   English

[Eclipse 未启动]:发生错误。 查看日志文件 null

[英][Eclipse not starting]:An error has occured. See the log file null

I'm unable to get my Eclipse Luna running.我无法运行 Eclipse Luna。 It was working fine till now and suddenly crashed.它一直工作到现在,突然崩溃了。 Now when i try to start it, I get the error saying:现在,当我尝试启动它时,我收到错误消息:

An error has occured.出现错误。 See the log file null查看日志文件 null

I tried launching eclipse from terminal and also tried to delete the metadata folder from my workspace but nothing helped me.我尝试从终端启动 eclipse并尝试从我的工作区中删除元数据文件夹,但没有任何帮助。

Here is the crash log:这是崩溃日志:

org.osgi.framework.BundleException: Error initializing container.
at org.eclipse.osgi.container.SystemModule.init(SystemModule.java:93)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.init(EquinoxBundle.java:209)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.init(EquinoxBundle.java:201)
at org.eclipse.osgi.launch.Equinox.init(Equinox.java:168)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:296)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:231)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

Caused by: java.lang.ExceptionInInitializerError
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.initWorker(EquinoxBundle.java:137)
at org.eclipse.osgi.container.SystemModule.init(SystemModule.java:83)
... 12 more

Caused by: java.security.ProviderException: setSeed() failed
at sun.security.provider.NativePRNG$RandomIO.implSetSeed(NativePRNG.java:458)
at sun.security.provider.NativePRNG$RandomIO.access$300(NativePRNG.java:329)
at sun.security.provider.NativePRNG.engineSetSeed(NativePRNG.java:212)
at java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:209)
at java.security.SecureRandom.<init>(SecureRandom.java:190)
at org.eclipse.osgi.internal.framework.UniversalUniqueIdentifier.computeNodeAddress(UniversalUniqueIdentifier.java:127)
at org.eclipse.osgi.internal.framework.UniversalUniqueIdentifier.<clinit>(UniversalUniqueIdentifier.java:35)
... 14 more

Caused by: java.io.IOException: Operation not permitted
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:313)
at sun.security.provider.NativePRNG$RandomIO.implSetSeed(NativePRNG.java:456)
... 20 more

It seems you're using Solaris?你好像在用 Solaris? This OS has an alternative entropy source called EGD, which needs special protocol to write to, which Sun JDK does not implement...这个操作系统有一个叫做 EGD 的替代熵源,它需要特殊的协议来写入,而 Sun JDK 没有实现......

Can you try adding -Djava.security.egd=/dev/random to the vmargs section of your eclipse.ini .您可以尝试将-Djava.security.egd=/dev/randomeclipse.inivmargs部分。

If you still see the same issue.如果您仍然看到相同的问题。 Make sure your user can write to /dev/random .确保您的用户可以写入/dev/random

I fixed it myself.我自己修好了。 Few files in my security folder /jre/lib/security had got messed up.我的安全文件夹/jre/lib/security 中的几个文件都搞砸了。 Downloaded latest Java Cryptography Extension (JCE) and put the jars ( Download US_export_policy.jar and local_policy.jar ) in the security folder.下载最新的 Java Cryptography Extension (JCE) 并将 jars(下载 US_export_policy.jarlocal_policy.jar )放在安全文件夹中。 My eclipse works fine now.我的日食现在工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM