This is an automated email from the ASF dual-hosted git repository. arvid pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
commit b800fb2767d570f566269aed9869af9d71c6adba Author: Alexander Preuß <[email protected]> AuthorDate: Fri Sep 3 15:18:05 2021 +0200 [hotfix][docs] Move 'Running in an IDE' section to prerequisites When going through the tutorial step-by-step you will encounter the error right at the beginning but might not notice this section at the bottom. As most developers are probably using an IDE this also becomes a prerequisite to actually get the tutorial to run. --- docs/content/docs/try-flink/datastream.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/content/docs/try-flink/datastream.md b/docs/content/docs/try-flink/datastream.md index a1059f8..c145c06 100644 --- a/docs/content/docs/try-flink/datastream.md +++ b/docs/content/docs/try-flink/datastream.md @@ -46,6 +46,12 @@ Using a simple set of rules, you will see how Flink allows us to implement advan This walkthrough assumes that you have some familiarity with Java or Scala, but you should be able to follow along even if you are coming from a different programming language. +### Running in an IDE + +Running the project in an IDE may result in a `java.lang.NoClassDefFoundError` exception. This is probably because you do not have all required Flink dependencies implicitly loaded into the classpath. + +* IntelliJ IDEA: Go to Run > Edit Configurations > Modify options > Select `include dependencies with "Provided" scope`. This run configuration will now include all required classes to run the application from within the IDE. + ## Help, I’m Stuck! If you get stuck, check out the [community support resources](https://flink.apache.org/gettinghelp.html). @@ -896,10 +902,4 @@ You should see the following output in your task manager logs: 2019-08-19 14:22:16,551 INFO org.apache.flink.walkthrough.common.sink.AlertSink - Alert{id=3} 2019-08-19 14:22:21,723 INFO org.apache.flink.walkthrough.common.sink.AlertSink - Alert{id=3} 2019-08-19 14:22:26,896 INFO org.apache.flink.walkthrough.common.sink.AlertSink - Alert{id=3} -``` - -### Running in an IDE - -Running the project in an IDE may result in a `java.lang.NoClassDefFoundError` exception. This is probably because you do not have all required Flink dependencies implicitly loaded into the classpath. - -* IntelliJ IDEA: Go to Run > Edit Configurations > Modify options > Select `include dependencies with "Provided" scope`. This run configuration will now include all required classes to run the application from within the IDE. \ No newline at end of file +``` \ No newline at end of file
