【发布时间】:2016-12-23 15:03:36
【问题描述】:
我在 sbt 安装后尝试命令 sbt package,它会引发以下错误。
Getting org.scala-sbt sbt 0.13.12 ...
java.lang.InternalError
at sun.security.ec.SunEC.initialize(Native Method)
at sun.security.ec.SunEC.access$000(SunEC.java:49)
at sun.security.ec.SunEC$1.run(SunEC.java:61)
at sun.security.ec.SunEC$1.run(SunEC.java:58)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.ec.SunEC.<clinit>(SunEC.java:58)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:383)
at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:221)
at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
at xsbt.boot.Locks$.apply0(Locks.scala:31)
at xsbt.boot.Locks$.apply(Locks.scala:28)
at xsbt.boot.Launch.locked(Launch.scala:238)
at xsbt.boot.Launch.app(Launch.scala:147)
at xsbt.boot.Launch.app(Launch.scala:145)
at xsbt.boot.Launch$.run(Launch.scala:102)
at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
at xsbt.boot.Launch$.launch(Launch.scala:117)
at xsbt.boot.Launch$.apply(Launch.scala:18)
at xsbt.boot.Boot$.runImpl(Boot.scala:41)
at xsbt.boot.Boot$.main(Boot.scala:17)
at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.lang.InternalError
我使用的是 RHEL 6.5,我的 Java 版本是 java version "1.7.0_111"。帮我解决这个错误。
【问题讨论】:
-
你的JVM安装有问题;看起来 SSL 密码库链接不正确。
-
感谢 chrylis,我重新安装了 jvm,现在我得到未解决的依赖错误。
-
您从哪里安装 Java?你能显示新的错误信息吗?
-
服务器访问错误:java.security.ProviderException:java.security.KeyException url=repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.12/…服务器访问错误:java.security.ProviderException:java.security.KeyException url=repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.12/…服务器访问错误:java.security.ProviderException: java.security.KeyException url=repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/… 这是我遇到的错误,安装了 JDK 1.8