When assigning a long string of text to a string, the idea compilation fails and an error is reported:
error: (24, 35) Java: constant string is too long font>
Solution:
File -> Settings -> Build,Execution,Deployment -> Compiler -> Java compiler, use compiler, select eclipse, and click apply
Similar Posts:
- [Solved] IDEA Compile Error: java: Compilation failed: internal java compiler error
- Error:java: javacTask: source release 8 requires target release 1.8
- Error:java: Compilation failed: internal java compiler error
- [Solved] Error:java: Compilation failed: internal java compiler error
- [Solved] IDEA Maven Package Error: [ERROR] javac options source files
- [Solved] Maven Compile Error: “java.lang.OutOfMemoryError: Java heap space”
- IDEA Error: java: Invalid source release: 11 error [How to Solve]
- Eclipse C/C++ Error: launch failed,binary not found
- The solution of the import javax.servlet cannot be resolved in Java
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1