Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #11619

Applet security override

From simplicity <stella_pigeon@live.ca>
Newsgroups comp.lang.java.programmer
Subject Applet security override
Date 2012-01-27 08:53 -0800
Organization http://groups.google.com
Message-ID <b259627f-046c-4052-82a8-080e873028ab@ih8g2000pbc.googlegroups.com> (permalink)

Show all headers | View raw


Hi

I am getting the exception caused by
java.security.AccessControlException: access denied
(java.lang.RuntimePermission loadLibrary.<dll-name>).

I know that this is to be expected as applets generally have no access
to resources outside of the browser. After digging for the possible
solutions I found (http://java.sun.com/developer/onlineTraining/
Programming/JDCBook/appA.html) that this may actually be possible by
granting such access in the policy file.

I edited java.policy.applet file - the one which is generated and sits
in the same location as CLASS files. The modified policy file looks as
follows:

grant {
  permission java.security.AllPermission;    // this was generated
  permission java.lang.RuntimePermission "loadLibrary.*";   // this is
added by me
}

Unfortunately, I still have the same exception. Any idea what I am
missing? Wrong policy file perhaps?

Is there another way of granting applet with access to local DLLs? I
think signed applet was another hint but could someone guide me how to
do this?

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Applet security override simplicity <stella_pigeon@live.ca> - 2012-01-27 08:53 -0800
  Re: Applet security override Roedy Green <see_website@mindprod.com.invalid> - 2012-01-29 19:55 -0800
  Re: Applet security override Arne Vajhøj <arne@vajhoej.dk> - 2012-01-30 19:42 -0500

csiph-web