Forum

IntelliJ IDEA: cann...
 
Notifications
Clear all

IntelliJ IDEA: cannot find symbol var let

1 Posty
1 Users
0 Reactions
495 Widok
0
Topic starter

can't build project, get multiple erros

cannot find symbol var
cannot find symbol let
1 Answer
0
Topic starter
  1. make sure that you'are using righ java version (File -> project structure -> download right SDK version 1.8 or 1.10+)
  2. make sure that bytecode is right ( File -> settings -> Build, Execution, Deployment -> Java Compiler, and set Target Bytecode to anything above 10 )
  3. make sure that maven-compiler-plugin is using right target java version
    1. Open POM.XML
    2. find
          <properties>
              <java.version>1.8</java.version>
              <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
          </properties>

       

    3. change into

          <properties>
              <java.version>17</java.version>
              <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
          </properties>

       

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: