Tag Archives: Java error summary

[Modified] ANTLR4 line 1:14 token recognition error at ‘(‘

Explore the errors reported by antlr4 by yourself:
line 1:14 token recognition error at '('
means that: (the column number needs to be + 1) the symbol recognition error ‘(‘) in 1 row and 14 columns; it means that the symbol ‘(‘) not recognized by G4 rules does not affect the operation
line 1:0 token recognition error at: '7'
in 1 row and 1 column: ‘7’ symbols have no matching rules

[project SDK is not defined] error resolution

Error analysis:

First of all, read the reason for the error. The error message shows that the project SDK is not defined. It prompts me to install the SDK. Some novice friends are a little confused at this time. They only know that JDK is a java development kit. So what is the SDK? I have never used it before. How can I prompt me to install it at this time. At this time, don’t worry, guys. In fact, SDK refers to the software development kit (abbreviation: SDK, full name of foreign language: software development kit). It is generally a collection of development tools used by some software engineers to build application software for specific software packages, software frameworks, hardware platforms, operating systems, etc. here, SDK refers to our JDK, that is to say, this The project could not find the dependent JDK. At this time, we go to check the project environment configuration and find the following situation:

Sure enough, there is a problem with the JDK environment configuration, and then the problem is solved by choosing our JDK environment path.