Kafka + Flink 出现异常 Caused by: java.lang.ClassNotFoundException: org.apache.flink.runtime.state.StateBackend

在新电脑本地启动Flink项目时,出现如下异常,无法启动项目

该配置maven的,也配置了,该加的jar也加了。启动还是报错,直接就不能启;

找了很久原因,最终找到了原因:

在 Run/ Edit Configurations 中勾选 Include dependencies with “Provided” scope,保存之后再运行就好了。

 

原文地址:https://www.cnblogs.com/suhaha/p/14125044.html