Sometimes the Java Eclipse project will always report an error with @Override when compiled on a different computer. It is fine to remove the @Override, but it cannot fundamentally solve the problem, because sometimes there are too many places for @Override.
This is an issue with the JDK, where @Override is JDK5, but does not support an implementation of the interface. JDK6 fixes this Bug by adding @Override to methods of parent classes and implementations of interfaces.
To fix this, first make sure you have JDK version 1.6 or higher installed on your machine (mine had JDK 1.7 installed),
This is an issue with the JDK, where @Override is JDK5, but does not support an implementation of the interface. JDK6 fixes this Bug by adding @Override to methods of parent classes and implementations of interfaces.
To fix this, first make sure you have JDK version 1.6 or higher installed on your machine (mine had JDK 1.7 installed),
Then, select the Eclipse menu Windows->; Preferences–> java-> Compiler–> Compiler Compliance Level Select 1.7, refresh the project, and recompile.
If the problem is not resolved, right-click on the project that reported the error and select Properties–>; Java Compiler–> Select 1.7 in Compiler Compliance Level to refresh the project and recompile.
Source of the original article: Click to open the article
Read More:
- Solution to error reporting in Java @ override
- The solution of multiple markers at this line @ override
- The solution to the error of “no override found for * *” in the use of VTK
- Override the equals method and override the toString method
- org.hibernate.MappingException: invalid override definition
- Error: no override found for ‘vtkPolyDataMapper’.
- Error: no override found for ‘vtkRayCastImageDisplayHelper’.
- [PCL + QT + vs] no override found for ‘vtkrenderwindow’ error resolution
- “Method does not override method from its superclass”
- Solution to the problem of vs2017 error report unable to open source file
- Unrecognized Windows Sockets error: 10106: solution to create
- Failed to load the JNI shared library solution
- Conversion to dalvik format failed with error 1 solution
- Error: Java: error: release version 5 not supported solution to run error
- Solution to “[dbnetlib] [connectionwrite (send()).] general network error”
- Solution to garbled code problem after importing project in eclipse
- The solution to the problem is different from other solutions
- Solution to the flash of visual studio 2017 running program
- A solution to the refusal of rdesktop connection to windows host
- Solution to the problem that the toolbar menu button cannot be clicked