当前位置:   article > 正文

Flink 测试报错 java.lang.NoClassDefFoundError: org/apache/flink/api/common/functions/FlatMapFunction

java.lang.noclassdeffounderror: org/apache/flink/api/common/functions/flatma
  1. java.lang.NoClassDefFoundError: org/apache/flink/api/common/functions/FlatMapFunction
  2. at java.lang.Class.getDeclaredMethods0(Native Method)
  3. at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
  4. at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
  5. at java.lang.Class.getMethod0(Class.java:3018)
  6. at java.lang.Class.getMethod(Class.java:1784)
  7. at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
  8. at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
  9. Caused by: java.lang.ClassNotFoundException: org.apache.flink.api.common.functions.FlatMapFunction
  10. at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
  11. at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
  12. at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
  13. at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
  14. ... 7 more

吧pom.xml文件中的

<scope>provided</scope>

注释掉

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/278747
推荐阅读
相关标签
  

闽ICP备14008679号