gpt4 book ai didi

java - intellij 不编译源文件夹中的某些类

转载 作者:行者123 更新时间:2023-11-30 05:43:32 25 4
gpt4 key购买 nike

我尝试在类中使用一些方法。当我尝试使用它们时,它在源文件夹中找不到该类。 the source folder and the code

example of the files

该类就在源文件夹中,并且可以很好地使用线类和点类。为什么 GUI 和 DrawSurface 不起作用?

我也尝试过这样的:the classes in a folder and I import them就像你可以看到那里有很多类,但是当我想导入其中一个类时它不起作用。

最佳答案

我认为,你应该选择JDK

File -> Project Structure -> Project -> Project SDK

关于java - intellij 不编译源文件夹中的某些类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55241248/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com