Applet RuntimePermission help...

Let me start with, I'm new to applets and security in general.

I have an applet that access a DLL on my web server. When I browse to the page that includes the applet everything works great (reads data from a Java Card). The problem is when someone else goes to the same page they get:

An error has occured: Native Dll access error Exception=java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.ACBSIJ)=Native Dll access error, errorCode=-20000

java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkExit(Unknown Source)

at java.lang.Runtime.exit(Unknown Source)

at java.lang.System.exit(Unknown Source)

I've searched for answers and have struck out for the past 2 days. So, I'm turning here for help.

Why will it work for me and not someone else?

Does signing the applet, or the lack thereof, have anything to do with this?

I wrote the applet on my PC, thats the only difference I know of between the PCs.

Thanks in advance for any help!

[1339 byte] By [rmcgougha] at [2007-9-29 22:41:36]
# 1
You probably have allowed applets security on your computer. Others will have to apply the same security permissions as you.You could send all users a policy file. or Sign The Applet
wew64a at 2007-7-16 3:04:17 > top of Java-index,Security,Signed Applets...
# 2

Well, I signed the applet yesterday and now the users get a security warning popup asking if they want to accept it. They click yes and I thought this would fix it.

They are still getting:

access denied (java.lang.RuntimePermission loadLibrary.ACBSIJ)=Native Dll access error, errorCode=-20000

It looks like (to me) that before signing the applet it was blowing up when I tried to load the DLL, now its blowing up when I try to access something in the DLL.

Any more ideas?

rmcgougha at 2007-7-16 3:04:17 > top of Java-index,Security,Signed Applets...
# 3
What version of Java are on Clients?I will try and do a test this weekend.It should work.
wew64a at 2007-7-16 3:04:17 > top of Java-index,Security,Signed Applets...
# 4
Just thought of something else,, How are you loading the library?Is the .dll included as a param? orYou using URL url = new URL(" http://myserver.com/folder"); System.loadLibrary(url + "*.dlll");? orURL url = getCodeBase(); ?
wew64a at 2007-7-16 3:04:17 > top of Java-index,Security,Signed Applets...