dbTalk Databases Forums  

Java in SQL Anywhere 10 problems using DLL's

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Java in SQL Anywhere 10 problems using DLL's in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
converge
 
Posts: n/a

Default 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.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.