Eclipse崩溃:“发生错误。请参阅日志文件”

时间:2012-06-06 18:30:22

标签: java eclipse ide

当我开始使用eclipse时,它会崩溃并显示以下消息。

An error has occurred.  See the log file
/home/binoy/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/1339005865980.log

这是1339005865980.log

$ cat /home/binoy/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/1339005865980.log
!SESSION Wed Jun 06 23:34:25 IST 2012 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2012-06-06 23:34:25.991
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.InternalError: internal error: SHA-1 not available.
    at sun.security.provider.SecureRandom.init(SecureRandom.java:105)
    at sun.security.provider.SecureRandom.<init>(SecureRandom.java:84)
    at java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:186)
    at java.security.SecureRandom.<init>(SecureRandom.java:150)
    at java.io.File$LazyInitialization.<clinit>(File.java:1681)
    at java.io.File.generateFile(File.java:1694)
    at java.io.File.createTempFile(File.java:1803)
    at org.eclipse.equinox.launcher.Main.canWrite(Main.java:1290)
    at org.eclipse.equinox.launcher.Main.checkConfigurationLocation(Main.java:691)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:568)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

这是什么问题?任何的想法?我正在使用Ubuntu 12.04和OpenJDK 1.7.0。

1 个答案:

答案 0 :(得分:5)

我通过卸载并重新安装OpenJDK修复了它。

sudo apt-get purge openjdk-6-jre
sudo apt-get install openjdk-6-jre