Hi krislee,

I think you can try to add the path of jars in FLINK_HOME to the classpath
of your command, such as

1. mvn exec:java -Dexec.mainClass="xxx" -Dexec.classpathScope="your
classpath"
2. java -jar target/xxx.jar -cp {your classpath}

Or you can run your application in IDE directly after the planner
dependency is added.

Best,
Shammon FY

On Mon, May 15, 2023 at 10:18 PM Lucifer_jl <lucifer...@aliyun.com> wrote:

> hi:
> I think there may be the following reasons:
> 1、the scope of dependency  is 'provided' in your  "pom.xml" 。When you
> package, this dependency will not be included in the jar. and you xxx.jar
> execution enviroment lack this dependency
> 2、i can not see the "pom.xml" completely,can you add the dependency
> <dependency>
> <groupId>org.apache.flink</groupId>
> <artifactId>flink-table-api-scala-bridge_2.11</artifactId>
> <version>1.9.0</version>
> </dependency>
> good luck
>

Reply via email to