【问题标题】:Play framework: 2.8.0 - getting Class Not Found Exception when trying to run SBT command播放框架:2.8.0 - 尝试运行 SBT 命令时出现 Class Not Found Exception
【发布时间】:2020-11-18 19:06:02
【问题描述】:

我正在尝试在 Play Framework 项目上执行 SBT 命令,但出现以下错误:

Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
Error: Could not find or load main class xsbt.boot.Boot
Caused by: java.lang.ClassNotFoundException: xsbt.boot.Boot

我当前使用的 Java 版本是:

java version "11.0.9" 2020-10-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.9+7-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.9+7-LTS, mixed mode)

我在build.properties文件中配置的SBT版本是sbt.version=1.3.10

我无法在线找到有关上述 SBT 错误的任何足够信息,并且我不确定需要配置什么来消除该错误。

【问题讨论】:

  • 你能分享一下你正在运行的命令是什么吗?
  • 我很想运行“sbt”和“sbt run”。

标签: java scala playframework sbt


【解决方案1】:

我认为问题是因为java 11和sbt 1.3可能不完全兼容,考虑使用java 8。

【讨论】:

    猜你喜欢
    • 2021-12-14
    • 1970-01-01
    • 2016-02-02
    • 2021-02-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-19
    • 2018-05-31
    相关资源
    最近更新 更多