【发布时间】:2017-11-18 22:48:35
【问题描述】:
我想用 LibGDX 创建一个新的 SBT 项目并使用 IntelliJ 作为我的 IDE。我已经尝试关注这些instructions,即使我成功完成了 g8 设置过程,我也无法通过 SBT shell 运行该项目。
[IJ]> desktop/run
[error] Expected ID character
[error] Not a valid command: desktop
[error] Expected project ID
[error] Expected configuration
[error] Expected ':' (if selecting a configuration)
[error] Expected key
[error] Not a valid key: desktop (similar: test, skip, description)
[error] desktop/run
[error] ^
[IJ]> run
java.lang.RuntimeException: No main class detected.
at scala.sys.package$.error(package.scala:27)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) No main class detected.
[error] Total time: 0 s, completed Nov 18, 2017 5:45:03 PM
[IJ]> baseDirectory
[info] C:\Users\<MyName>\IdeaProjects\MyProject
[IJ]>
【问题讨论】:
标签: scala intellij-idea libgdx sbt