Hi Flink users,

I am working on testing my code in start-scala-shell.sh. The flink version
is: flink-1.12.0-bin-scala_2.11.tgz. I put the jar file (
https://mvnrepository.com/artifact/software.amazon.awssdk/sts/2.15.65) in
the lib folder.

Then run the start-scala-shell.sh REPL:

scala> import software.amazon.awssdk.services.sts.StsAsyncClient
import software.amazon.awssdk.services.sts.StsAsyncClient

scala> StsAsyncClient.builder
<console>:72: error: Static methods in interface require -target:jvm-1.8
       StsAsyncClient.builder

Why do I have this error? Is there any way to solve this problem?


Thanks,
Jing

Reply via email to