1、 错误
### Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/flink/api/java/ExecutionEnvironment
1.1、错误详情:
```
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/flink/api/java/ExecutionEnvironment
at org.example.Main.main(Main.java:16)
Caused by: java.lang.ClassNotFoundException: org.apache.flink.api.java.ExecutionEnvironment
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more
```
1.2、解决:
* 打开配置界面
![](https://img-blog.csdnimg.cn/direct/b603a395997649da9a8f12e43653d210.png)
或者: 运行菜单
* 添加provided后,点应用,点确定后重新运行