Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Unable to Load DLL(I get an AccessControlException)
Unable to Load DLL [message #925373] Thu, 27 September 2012 17:03
Andy Ed is currently offline Andy EdFriend
Messages: 64
Registered: December 2009
Hi all,

I'm trying to load a DLL and get an exception:

... in thread "main" java.lang.UnsatisfiedLinkError: src.Loader.Java_src_Loader_doSomething()I

I added checkLink, and also verified that the dll is on the library path.

public class Loader {

public native int Java_src_Loader_doSomething();

String l = System.getProperty("java.library.path");
SecurityManager s = new SecurityManager();

I then get the following from checkLink():

Exception in thread "main" java.lang.ExceptionInInitializerError
at src.Worker.main(
Caused by: access denied (java.lang.RuntimePermission loadLibrary.test)
at Source)
at Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkLink(Unknown Source)
at src.Loader.<clinit>(
... 1 more

Any ideas why access would be denied? Presumably the DLL loaded.

I'm using windows 7, 32-bit, with Eclipse Indigo.

Previous Topic:Suspiciously high number of pre-processor statements in the IASTTranslationUnit
Next Topic:CDT Plugin build
Goto Forum:

Current Time: Thu Oct 27 01:24:46 GMT 2016

Powered by FUDForum. Page generated in 0.01686 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software