1

我正在尝试在我的 Mac (MacOS Big Sur 11.5.2) 上设置一个 scala 开发环境。我已经按照官方coursier 文档使用自制软件安装了 Coursier 。

但是,当我运行时 cs setup --jvm adopt:11,出现以下错误

Checking if a JVM is installed
Exception in thread "main" java.lang.Exception: Error while getting https://github.com/shyiko/jabba/raw/master/index.json: download error: Caught javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target (PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) while downloading https://github.com/shyiko/jabba/raw/master/index.json
    at coursier.jvm.JvmIndex$.$anonfun$load$5(JvmIndex.scala:141)
    at coursier.jvm.JvmIndex$.$anonfun$load$5$adapted(JvmIndex.scala:139)
    at coursier.util.Task$.$anonfun$flatMap$extension$1(Task.scala:14)
    at coursier.util.Task$.$anonfun$flatMap$extension$1$adapted(Task.scala:14)
    at coursier.util.Task$.wrap(Task.scala:84)
    at coursier.util.Task$.$anonfun$flatMap$2(Task.scala:14)
    at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:307)
    at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41)
    at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.lang.Thread.run(Thread.java:834)
    at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:517)
    at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:193)

以前我曾尝试手动安装 JVM,但尝试安装 coursier 本身时安装失败。我发现了类似问题的问题,但是该建议对我不起作用。

4

0 回答 0