• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

signned applet on JVM 1.4.2

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

The applet is running fine on MS VM, JVM 1.3.1 and 1.4.1. However on JVM 1.4.2, an exception is generated.

java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.testX

After some test, i found that it is because of the loadlibrary permission is not granted.

I add in the following in the java policy file and the applet is working file.

grant {
permission java.lang.RuntimePermission "loadLibrary.CeloSign_Java";
permission java.io.FilePermission "${java.home}\\lib\\ext\\x86\\testX.dll", "read";
permission java.util.PropertyPermission "java.ext.dirs", "read";
};

Does someone had any idea, why is JVM 1.4.2 so different ?
What can i do in order avoid this modification of java policy ?

Regards,
don
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic