Unsatisfied Link Error ....
Hi,
I am having a problem registering a java class using the CAS-COM Bridge gentypelib tool.
The java class I am trying to register uses native code in the form of dll's.
When I try to register the class I get the following error below.
I have looked up the exception and it says that the JVM cannot find a native-language defination of a method declared as native.
My question is, is there anyway I can put these dll's into the java.lib.path so that I can register this class ?
thanks for any help.
Paul
==========================================
E:\gmsAPI4.2\com\stc\eIndex\jni>gentypelib -javaclass com.stc.eIndex.jni.EiSession
java.lang.UnsatisfiedLinkError: no EiSession in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at com.stc.eIndex.jni.EiSession.<clinit>(EiSession.java:33)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at com.sun.interop.typelib.Packager.loadBean(Packager.java:368)
at com.sun.interop.typelib.Packager.isValidStubInfo(Packager.java:139)
at com.sun.interop.typelib.Packager.<init>(Packager.java:109)
at com.sun.interop.typelib.Packager.main(Packager.java:79)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.interop.beans.PrivilegedMethodInvokeAction.run(PrivilegedMethodInvokeAction.java:51)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.interop.beans.RegularDispatcher.invoke(RegularDispatcher.java:142)
at com.sun.interop.dispatch.StaticsProxy.Invoke(StaticsProxy.java:96)
Cannot introspect on the specified JavaBean component com.stc.eIndex.jni.EiSession
com.stc.eIndex.jni.EiSession cannot be loaded from null

