0
votes

I'm using Oracle Jdeveloper 12c.

I'm trying to deploy my java application as a jar file, The deployment process goes smoothly without errors but when i try o run the jar file i gt this error "A JNI error has occurred, please check your installation and try again"

please help.

2

2 Answers

0
votes

The main reason is that your Java and javac versions are inconsistent. You can check java -version and javac -version respectively in CMD

0
votes

I am using eclipse, so write my procedure for eclipse. First You should change the build path for for your project

right click >> build path >>select == configure build path >> Libraries >> edit >> Execution Environment >> select == JavaSE-1.8(jre) >> Apply >> Apply and close

also you go on JRE System Library >> right click >> build path >>select == configure build path >> Libraries >> edit >> Execution Environment >> select == JavaSE-1.8(jre) >> Apply >> Apply and close