简体   繁体   中英

Play framework: 2.8.0 - getting Class Not Found Exception when trying to run SBT command

I am trying to execute the SBT command on Play Framework project, but I am getting the following error:

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

The current Java version that I am using is:

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)

The SBT version that I have configured in the build.properties file is sbt.version=1.3.10

I am not able to find any sufficient information regarding the above SBT error online, and I am not sure what I need to configure to remove that error.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM