Please follow me on my personal blog for more information. I stumbled upon an outrageous mistake while studying FlinkSource today
ERROR: A JNI ERROR HAS OCCURRED, PLEASE CHECK YOUR INSTALLATION AND TRY AGAIN At first the code runs without this error but when I import the Kafka connector dependency into Maven AND run AGAIN I get this error
So I checked online and said that the version of Java-Verion and Javac-version are not consistent, so I need to delete the old Java version on my computer
Carefully think I this is idea ah is not on the system but I still according to the above to delete sure enough useless!
So I took a closer look at the error logCaused by: java.lang.ClassNotFoundException: org.apache.flink.streaming.api.functions.source.SourceFunctionIsn’t this the connector I just imported for use? CTRL + Alt + Shift + S find this package is not compiled change
And then there you go
There is another way to add the Flink-dist JAR package blog.csdn.net/weixin_4329… I didn’t try it. If that doesn’t work, try this
ERROR: A JNI ERROR HAS OCCURRED, PLEASE CHECK YOUR INSTALLATION AND TRY AGAIN Comply with CC 4.0 by-SA copyright agreement
Welcome to exchange and study
Personal blog
CSDN home page