This is an automated email from the ASF dual-hosted git repository.
martijnvisser pushed a commit to branch release-1.14
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.14 by this push:
new ee205704614 [hotfix][docs] Update Chinese version of datastream.md to
include section about NoClassDef found when "Running in an IDE"
ee205704614 is described below
commit ee20570461411ccdb60af372319d1d0b4ed16d89
Author: sunsky <[email protected]>
AuthorDate: Wed Apr 20 13:07:11 2022 +0800
[hotfix][docs] Update Chinese version of datastream.md to include section
about NoClassDef found when "Running in an IDE"
---
docs/content.zh/docs/try-flink/datastream.md | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/docs/content.zh/docs/try-flink/datastream.md
b/docs/content.zh/docs/try-flink/datastream.md
index dd270fe2806..503b5e24b9d 100644
--- a/docs/content.zh/docs/try-flink/datastream.md
+++ b/docs/content.zh/docs/try-flink/datastream.md
@@ -971,3 +971,9 @@ class FraudDetector extends KeyedProcessFunction[Long,
Transaction, Alert] {
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}
```
+
+### 在IDE中运行
+
+在IDE中运行上面的程序可能抛出 java.lang.NoClassDefFoundError 异常。这可能是由于类加载路径中缺少Flink的依赖包。
+
+对于 IntelliJ IDEA,解决办法是:点击菜单栏中的 Run -> Edit Configurations > Modify options >
然后选择 include dependencies with "Provided" scope。此配置将使IDE运行上面的程序时加载所有需要的类。