Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No class found when running main function in Intellij #3

Open
fuhuoyeyou opened this issue Feb 27, 2020 · 0 comments
Open

No class found when running main function in Intellij #3

fuhuoyeyou opened this issue Feb 27, 2020 · 0 comments

Comments

@fuhuoyeyou
Copy link

I tried to run the chapter 1 main function in IntelliJ, and got this error. Not sure how to debug it.
But I can find the function in the dependency folder.

image

Jdk: 1.8
The full error log.

"/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home/bin/java" "-javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=54296:/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath /Users/xiangl/flink-learn/examples-java/target/classes:/Users/xiangl/.m2/repository/org/slf4j/slf4j-api/1.7.15/slf4j-api-1.7.15.jar:/Users/xiangl/.m2/repository/org/apache/flink/force-shading/1.7.1/force-shading-1.7.1.jar:/Users/xiangl/.m2/repository/org/apache/flink/flink-shaded-guava/18.0-5.0/flink-shaded-guava-18.0-5.0.jar:/Users/xiangl/.m2/repository/org/apache/flink/flink-shaded-netty/4.1.24.Final-5.0/flink-shaded-netty-4.1.24.Final-5.0.jar:/Users/xiangl/.m2/repository/org/apache/flink/flink-queryable-state-runtime_2.12/1.7.1/flink-queryable-state-runtime_2.12-1.7.1.jar:/Users/xiangl/.m2/repository/org/apache/flink/flink-queryable-state-client-java_2.12/1.7.1/flink-queryable-state-client-java_2.12-1.7.1.jar:/Users/xiangl/.m2/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar:/Users/xiangl/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar io.github.streamingwithflink.chapter1.AverageSensorReadings
Error: Unable to initialize main class io.github.streamingwithflink.chapter1.AverageSensorReadings
Caused by: java.lang.NoClassDefFoundError: org/apache/flink/streaming/api/functions/source/SourceFunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant