Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Security problem (DLL call doesn't work)

6 views
Skip to first unread message

Anton MINKO

unread,
Jul 11, 2001, 9:09:06 AM7/11/01
to
Hello,

I am using Visual Age 3.5.3 and I have a problem with calling LoadLibrary
method in my application (in a class created with JNI).

Earlier, I have developed (with Java SDK 1.1.7) an applet, which is calling
a DLL using JNI (this applet works perfectly). But, when I try to execute my
applet with Java SDK 1.2 first, and then Visual Age 3.5.3, it doesn't work
no more.

I use the following statement:
try {
System.loadLibrary("DLLFS98");
}
catch (UnsatisfiedLinkError e){
System.out.println(e.toString());

The error message (JDK 1.2) is:
C:\jdk122\AppletFS-122>c:\jdk122\bin\appletviewer Autogen_AppletFS.html
java.security.AccessControlException: access denied
(java.lang.RuntimePermission
loadLibrary.DLLFS98 )
at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:195)
at
java.security.AccessController.checkPermission(AccessController.java,
Compiled Code)
at java.lang.SecurityManager.checkPermission(SecurityManager.java,
Compi
led Code)
at java.lang.SecurityManager.checkLink(SecurityManager.java:824)
at java.lang.Runtime.loadLibrary0(Runtime.java:464)
at java.lang.System.loadLibrary(System.java:768)
at JFS6IPC_Client.<init>(JFS6IPC_Client.java:12)
at Applet1.init(Applet1.java:75)
at sun.applet.AppletPanel.run(AppletPanel.java:333)
at java.lang.Thread.run(Thread.java:479)


I guess that there is an incompatibility with Java 2 security settings, when
I
am calling my DLL. But I can not find any help on what settings & how to
change them in order to get my application working.
What should I do to make it work ?

Thank you in advance,
Anton


--
Best regards,
Anton MINKO
----------
Phone: 05.56.13.31.77, Fax: 05.56.13.31.56,
E-mail: anton...@star-ima.com

Institut de Maintenance Aeronautique
rue Marcel Issartier
33700 MERIGNAC


0 new messages