简体   繁体   中英

intellij doesnt compile some classes that are in the source folder

I tried to use some methods in a class. When I tried to use them it can't find the class in the source folder. the source folder and the code

文件示例

The class is right there in the source folder, and the line and point classes can be used just fine. Why won't GUI and DrawSurface work?

I also tried it like this: the classes in a folder and I import them like you can see there are a lot of classes in there, but when I want to import one of them it doesn't work.

I think, you should choose JDK

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

Why do you keep compiled classes in sources folder? Move them to separate folder and add it as dependency in "Project Structure | Modules | Dependencies"

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