1 , the Eclipse run java error
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
module tp10: java.lang.NoClassDefFoundError
As shown below:
Eclipse Version: 2018-12
Java Version: 12.0.1
Solution:
1, install jre . In jdk run
bin\jlink.exe --module-path jmods --add-modules java.desktop --output jre
2, in the "Preferences-" Java- "eclipse by adding or editing window- Installed JREs installed jre path
Run again, to be all right.