Error List

Error List for the ‘JAVA-JNI’ Category

JNI_CreateJavaVM always returns -1

Applies to:
JNI

Description:
Occurs while using JNI.

Cause:
Usually, the problem is that you moved or copied the jvm.dll file. The location of jvm.dll is important, it has to be in the directory /bin/classic. This jvm.dll finds the location of other DLLs relative to its current location. So if you move it, or Windows uses some other copy of jvm.dll, the JVM will not be able to find java.dll, for instance.

JAVA-JNI , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Symbol makeJavaString not found

Applies to:
JNI

Description:
You have used a third party library (a JDBC driver, actually) that contained native code. When running Your application with this library, I’ve got an “UnsatisfiedLinkError: symbol makeJavaString not found.”

Cause:
The problem is that the native code in that third party library uses the old NMI.

JAVA-JNI , , , , , , , ,

libthread loaded into green threads

Applies to:
Solaris, JNI

Description:
This error is produced if you
a. are running the green threads VM
b. did a System.loadLibrary(“foo”), and
c. libfoo.so was linked -lthread.

Cause:
Green threads and native threads don’t mix well and hence the check in the VM.

JAVA-JNI , , , , , , , ,

You must install a Solaris patch to run the native threads version of the Java runtime. The green threads version will work without this patch. Please check the native threads release notes for more information. If you are embedding the VM in a native application, please make sure that the native application is linked with libthread.so (-lthread)." Exiting.

Compiler can't find jni_md.h

Required mapping already in use

Applies to:


Description:
An error that occurs while trying to load an executable library.

Cause:
Linker issues

JAVA-JNI , ,

UnsatisfiedLinkError:

Applies to:
Apache 1.13
Sun Solaris 2.6

Description:
Error while trying to call a JNI method from a servlet

Cause:
a. The method name is different from the one specified in the library
b. Library path or version issue

JAVA-JNI , , , , ,