SetupClass 无法解析为类型

SetupClass cannot be resolved to a type

public static void main(String[] args) throws SlickException {
    AppGameContainer app = new AppGameContainer(new SetupClass("Setup Test"));
    app.setDisplayMode(800, 600, false);
    app.start();

 }

我收到此错误:无法将 SetupClass 解析为类型

如何解决这个问题?

我自己是 Slick2D 的新手。我来自使用 C++ 的 SFML 和 Allegro。 我一定一直在看与您相同的教程,因为 new SetupClass("Setup Test")); 部分来自为 Slick2D 新用户准备的 YouTube 视频教程。

您想使用 class 的名称而不是 SetupClass。在该 YouTube 教程中,讲师的 class 游戏名称是 SetupClass。