在eclipse中导入项目的时候出现了这个问题,废了我半天劲,才搞明白,把问题记录下来,方便大家以后遇到这问题好处理。提供参考。

出现的问题截图:

The import javax.websocket cannot be resolved的解决问题

 

因为我用的是tomcat8,

大体步骤:项目上点右键选中

Properties->Java Build Path->Libraries->Add External JARs->选择tomcat安装目录lib下的websocket-api jar包.就可以了。已经测试过。

相关文章:

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