Java in SQL Anywhere 10 problems using DLL's -
10-23-2007
, 01:25 PM
I have an SQL Anywhere 10.0.1.3559 database that is using Java JAR
files I've created in some database functions. These JAR files are
using external DLL's to retrieve specific values from the computer.
When I create a connection to the database, I'm able to successfully
execute a Sybase function that uses a Java JAR file that in turn
retrieves a value from a DLL. However, my problem is that subsequent
calls to this Sybase function produce errors. Using one particular DLL
I get the exception:
java.lang.UnsatisfiedLinkError: Native Library C:\Windows
\System32\xFunction.dll already loaded in another classloader
Using a different DLL I get a similar exception. I think the problem
is that once I run the Sybase function, it does not release the lock
on the DLL file the JAR is using, even after the function has
completed. Anyone have any ideas? Thanks. |