本文介绍了尝试在 Activator UI 中运行 Pay Java Seed 时,缺少依赖项“编译器镜像中的对象 java.lang.Object"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我是 Play 框架的新手.我正在尝试运行 Play Java Seed,但构建失败并显示错误编译器镜像中缺少依赖对象 java.lang.Object",这是/home/saipreethi/.sbt/boot/scala-2.10.4/lib/scala 所要求的-library.jar(scala/package.class)

I am new to Play framework. I am trying to run Play Java Seed but the build fails with the error "Missing dependency object java.lang.Object in compiler mirror", required by /home/saipreethi/.sbt/boot/scala-2.10.4/lib/scala-library.jar(scala/package.class)

推荐答案

好吧终于想通了.问题是由于 Java 版本.我使用的是 openjdk 9.但事实证明 Play 框架适用于 Oracle 的 Java 8.这导致了构建错误.

Okay finally figured it out. The problem was due to Java version. I was using openjdk 9. But turns out Play framework works with Oracle's Java 8. This was causing the build error.

这篇关于尝试在 Activator UI 中运行 Pay Java Seed 时,缺少依赖项“编译器镜像中的对象 java.lang.Object"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 08:56