Rajesh,
where is the class that has the native methods loaded from ? Is it loaded from the
class path by the default class loader or by the Nd class loader ? If it is
loaded
by the Nd class loader then that might be the cause. Try to set the CP option
not
to use Nd class loader.
Regards,
Mrc.
"Lakshmanamurthy, Rajesh" <[EMAIL PROTECTED]> wrote:
>Hi All,
>
>I have a piece of Java code which calls a native api from a dll.
>This code executes fine when run as a stand-alone java app.
>However, when i try inserting this code in the web event of a ND
>button throws the Illegal Access error.
>
> ...
> System.loadLibrary("libraryName");
> int i = new lib1().method1 (); // lib1 -> class conatiaing the
>defnition of method1 which is declared to be native.
> ...
>
>Does ND have a security restriction on calling native methods or
>am i missing something while making this API call?
>
>Any thoughts, suggestions, ideas, hints, remarks or comments will be greatly
>appreciated.
>
>TIA - Raj
>
_________________________________________________________________________
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]