eclipse中编译时enum出现cannot be resolved to a type错误

通常是因为eclise使用的jdk版本的问题。。。默认是使用的是jdk1.5

应该去选择成jdk1.6或者更高的版本。

项目右键->properties->Java Compiler->Compiler Compliance level 选择更高的版本

参考:

http://stackoverflow.com/questions/3811012/can-not-compile-enums-in-eclipse

相关文章:

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