I. This kind of mistake occurs:
Multiple annotations found at this line: – Syntax error, insert “Finally” to complete TryStatement – Syntax error, insert “}” to complete ArrayInitializer – Syntax error on token(s), misplaced construct(s) – Syntax error on tokens, delete these tokens
Solution One:
It turns out there’s a “} “missing, so you can check out the JavaScript code you inserted into the JSP! There must be a brace missing somewhere!
Solution Two
JDK mismatch. If the other party’s JDK version is different from yours, or even between 1.6 and 1.7, this error is bound to occur. Just change it to your own JDK. Right-click on the item properties-& GT; The Java Build Path can be found later.
Solution 3:
If this isn’t the case, try Project-Clean. If it doesn’t, it’s probably code or something.
How to modify the JDK version used in the MyEclipse project
1. After opening, find our Java project
2. Then right click — “Build Path– > Confirgure Build Path”
3. From the interface that appears, select the “Libraries” TAB, select the “JRE System Libraries (VERSION of the JDK)”, and then click on the right “Edit… “Button
4. In the pop-up dialog, as shown below, select the version of the JDK that you want to modify, and click the “Finish” button
5. Return to the interface for modifying the JDK version, then select “Java Compiler” in the left menu, and select the version that matches the JDK version
6. The last step is critical; be sure to check (search Java Compiler)
Read More:
- Error message: Syntax error, insert “Finally” to complete TryStatement
- Syntax error, insert “;” to complete Statement, insert “}” to complete Block
- Syntax error, insert “}” to complete ClassBody
- Syntax error, insert “VariableDeclarators” to complete LocalVariableDeclaration
- Nanny level solutions use the enterprise version of MyEclipse to show the MyEclipse trial expired solution and activation
- Insert keyframe giving keying set failed to insert any key frames (solved)
- Insert keyframe giving keying set failed to insert any key frames
- Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the
- Use Python to insert the specified content in the specified line of the specified file
- Failed insert module ‘autofs4’ error in deploying xenserver7.2
- Solution to syntaxerror: invalid syntax in PIP install XXX
- Error in idea compilation: java.lang.OutOfMemoryError Java heap space and java.lang.StackOverflowError
- The solution to “polling news feeds” appeared in Eclipse in Java
- Error in PIP command execution – syntax error: invalid syntax
- Error syntax error: invalid syntax in PIP install XXX
- Solution to error reporting in Java @ override
- Solve the problem of syntax error: invalid syntax in PIP install XXX
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- Myeclipse10: one step error report solution for cracking replacejar
- Solutions to error c2143: syntax error: missing ‘;’ before ‘type’ in C + + program compilation