JNI errors produced by the JVM when a program is run indicate that there was a problem running the code associated with the native method. This error means that the architecture of Eclipse does not match the architecture of the Java runtime, i. This error occurred when we import the project from external folders. Failed to load JNI Shared library Error in Eclipse. Following above step will solve the below errors as well eclipse - JVM terminated.