I'm writing a library that uses an external dll (ThinkGear.dll). In the eclipse library it is used as:
static { System.loadLibrary("thinkgear"); }
No problems so far. When I now run it, I'll get the following error:
Makes sense, I haven't put the dll anywhere. I would suspect it needs to be in the \B4J\Objects\shell\bin\classes\b4j\example folder. I made it read only, but then I can't compile the project anymore.
Is there a special folder I can use?
Cheers,
Alain
static { System.loadLibrary("thinkgear"); }
No problems so far. When I now run it, I'll get the following error:
B4X:
java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: no thinkgear in java.library.path
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:113)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:82)
at b4j.example.main.<clinit>(main.java:16)
Caused by: java.lang.UnsatisfiedLinkError: no thinkgear in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at com.AB.ABThinkGear.ABThinkGear.<clinit>(ABThinkGear.java:12)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at anywheresoftware.b4a.shell.Shell.getCorrectClassName(Shell.java:451)
at anywheresoftware.b4a.shell.Shell.createObject(Shell.java:438)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:239)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
... 2 more
Exception in thread "main"
Makes sense, I haven't put the dll anywhere. I would suspect it needs to be in the \B4J\Objects\shell\bin\classes\b4j\example folder. I made it read only, but then I can't compile the project anymore.
Is there a special folder I can use?
Cheers,
Alain