java - Eclipse 崩溃 : "An error has occurred. See the log file"

标签 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。

最佳答案

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

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

关于java - Eclipse 崩溃 : "An error has occurred. See the log file",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10920016/

相关文章:

java - ClassNotFoundException 对于一个类,但不是来自同一包的另一个类?

java - && 显示为意外标记

java - Eclipse 无法识别 org.jdesktop.*

c++ - C++ 新手 : should I use Visual Studio?

java - 如何更改 Swagger-ui URL 前缀?

java - 从 Java 中的另一个类启动 Cucumber runner 类

java - 连接oracle数据库

java - 是否有与 Eclipse "type filters"功能等效的 IntelliJ Idea

android - 由于依赖性冲突,无法完成安装。 ADT 的 Eclipse 错误

eclipse - 我们如何在 Eclipse 中运行自定义命令?