解决办法有两个步骤,如果第一步不行,再试一下第二步。 

       第一步

  修改Window-〉Preferences->Java ->Compiler->JDK Compliance中的compiler compliance level,把它设为5.0或者以上。 

       第二步

  修改Window-〉Preferences->Java ->Installed JREs,如果是1.4或者以下的,你最好就自己添加一个1.5或者以上的JRE。

方法:点击Installed JREs里面的浏览(Browse....)然后找到自己安装的JRE环境,参考如下:C:\Program Files\Java\jre6。

最后要在前面点击一下,有个勾显示就行了。

  泛型问题-The type Map is not generic; it cannot be parameterized with arguments

相关文章:

  • 2021-09-23
  • 2022-12-23
  • 2021-07-04
  • 2021-04-18
  • 2022-01-13
  • 2022-12-23
  • 2021-05-25
  • 2022-02-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2021-04-04
  • 2021-06-02
  • 2021-07-04
相关资源
相似解决方案