eclipse for the first time does not work

For starters, the first time such an error occurs frequently, environment variables, no problem jdk are configured, cmd, enter java can also execute commands, but they can not run the code
problem situation:
Create a java project, including all no problem, but when the class is created, and instantly there have been four crosses

Here Insert Picture Description
run after the code is finished, an error occurs so that the two
Here Insert Picture Description
Here Insert Picture Description
problem: jdk version does not correspond with the eclipse version, the two sides are incompatible
version of a high-low, not correspond this can occur because most people for the first time no problem, so this problem is relatively rare, but the first time I encountered such a situation, jdk weight down seven or eight times, eclipse under the weight three did not solve, the information turned ten days to find a likely scenario, the version is not compatible, the fact is the case

Released seven original articles · won praise 0 · Views 81

Guess you like

Origin blog.csdn.net/daimaxiaodao/article/details/104610990