apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric G <g_c...@yahoo.com.cn>
Subject why I cannot load tcnative-1.dll
Date Thu, 19 Oct 2006 07:21:26 GMT

I tried to use Apr win32 library tcnativa-1.dll I got from here http://tomcat.heanet.ie/native/1.1.6/binaries/win32/.
I used a very simple java class to load the library, but I got the following exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError: unsupported JNI version 0xFFFFFFFF
required by G:\tmp\opensrc\p2\apr\1.1.6\tcnative-1.dll
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at Test.main(Test.java:5)

The Test.java has the following code:

public class Test {

    public static void main(String[] args) throws Exception {
        System.out.println("loaded tcnative-1 successfuly");

The compiled Test.class and tcnative-1.dll were put in the same directory, and I executed
"java -cp . Test" there.

Anyone who knows the reason can help?


View raw message