第一组:

Eclise

版本:Indigo,Service Release 1 Build id:20110916-0149

Window-->Preferences

-->Compiler,Compiler compiance level:1.7

-->Installed JREs,jdk1.8.0_201

报错:

import之前的一行,即第一行始终有错,不论那里是否有代码

强制运行会报unresolved compilation problem,就是没有解决的编译问题,说白了就是编译不通过。

这是因为早期的eclipse不认识jdk1.8,造成的误报。既然用了低版本的eclipse,就得把java的版本也降下来。

 

第二组

 

-->Compiler,Compiler compiance level:1.5

-->Installed JREs,jdk1.5.0_22

报错:

Bad version number in .class file

 

第三组

-->Compiler,Compiler compiance level:1.5

-->Installed JREs,jdk1.6.0_45

这组可以。

 

相关文章:

  • 2021-12-24
  • 2021-09-27
  • 2021-12-21
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2021-11-15
  • 2021-07-23
猜你喜欢
  • 2021-04-10
  • 2021-08-09
  • 2021-09-09
  • 2021-09-11
  • 2022-01-21
  • 2021-10-18
相关资源
相似解决方案