myeclipse the IDE jdk compilation error, etc., has been introduced, but the correct code jdk given or determined

Such problems are most irritating, a negligence will waste a lot of time to the investigation, the following are examples of problems I encountered:

1. The code error (wrong version)

But after constantly confirmed, jdk version is not really a problem.

2. Check one project load jdk version in the ide

Version no problem, but found the wrong place, jdk package should be loaded first, then business needs to load jar package, otherwise there will be a code in this package should refer to the jdk, but they cited the business class jar package, so we want to jdk above mentioned jar package service, as follows:

Such errors in the code will disappear

 

 

Published 118 original articles · won praise 59 · views 490 000 +

Guess you like

Origin blog.csdn.net/u012255097/article/details/103010879