Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

loadlibrary - Access Denied (java.lang.RunTimePermission)

843829Aug 27 2001 — edited Sep 3 2001
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 1 2001
Added on Aug 27 2001
1 comment
952 views