Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
495
Widok
0
07/01/2023 1:56 am
Topic starter
can't build project, get multiple erros
cannot find symbol var cannot find symbol let
1 Answer
0
07/01/2023 1:59 am
Topic starter
- make sure that you'are using righ java version (File -> project structure -> download right SDK version 1.8 or 1.10+)
- make sure that bytecode is right ( File -> settings -> Build, Execution, Deployment -> Java Compiler, and set Target Bytecode to anything above 10 )
- make sure that maven-compiler-plugin is using right target java version
- Open POM.XML
- find
<properties> <java.version>1.8</java.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties>
-
change into
<properties> <java.version>17</java.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties>