loadlibrary - Access Denied (java.lang.RunTimePermission)
843829Aug 27 2001 — edited Sep 3 2001Hi guys,
I was wondering if you could help me.
I am working in a Windows NT environment where I have developed a EJB to call some C methods via a DLL.
In my java source code, I call the loadlibrary() function to load the DLL in order to call the C method.
Unfortunately, I am getting "Access Denied - (java.lang.RunTimePermission" error messages during execution).
I have applied permission in the java.policy file for this DLL but I still continue to get this message.
I have read from Sun documentation that the EJB architecture does not allow for loading of native methods. Does this hold true ?
If not, any ideas where I am going wrong ?
I would be most grateful for any advice.
Thanks in advance.
Tony