Cristiano,
The "UnsatisfiedLinkError" generally happens when the DLL (or shared
library) is not found. On NT, this means that
d:/NetDynamics/NetDynamics40/Projects/proveJNI is not in the PATH of the
NetDynamics user (more than likely administrator, but perhaps your id).
One thing we do when using JNI is to write standalone Java test programs so
that we can be sure our JNI code is solid and configured correctly before we
throw it at ND.
[EMAIL PROTECTED]
Team NetDynamics
> -----Original Message-----
> From: Cristiano De Mei [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, July 27, 1999 4:03 AM
> To: [EMAIL PROTECTED]
> Subject: [ND] JNI and ND: UnsatisfiedLinkError exception
>
>
> I need to call some C functions from my ND pages.
> Using JNI I can call the native methods, using JNI in ND4.1.2 I can't.
> The exception ND arises is "UnsatisfiedLinkError".
> I'm using Windows NT, jdk1.1.7, ND4.1.2.
>
> These are pieces of my code...
>
> custom java class (ND user module):
>
> package proveJNI;
>
> class API1
> {
> public native int returnYesNo(String s);
>
> static
> {
>
> System.loadLibrary("d:\\Netdynamics\\Netdynamics40\\Projects\\proveJNI\\my
> Lib");
> }
> }
>
> portion of a page:
>
> ...
> String sField = getDisplayFieldValue("tbRSField").toString();
> iOK = new API1().ritornaSiNo(sCampo);
> if (iOK == 0) CSpider.putUserSessionObject("YES_NO", new
> CSpString("YES"));
> else CSpider.putUserSessionObject("YES_NO", new CSpString("NO"));
> ...
>
> Anyone can help me?
> I have seen a lot of similar questions in this forum ... but there aren't
> answers!
>
> Thanks,
> Cristiano
> _________________________________________________________________________
>
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>
> For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]