• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

getting error when applet try to access some jar file

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all

i am running applet in browser and i am getting error :-


Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission getenv.mywork)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.System.getenv(Unknown Source)
at com.fame.timeiq.license.LicenseCheck$LicenseFileLocation.<init>(SourceFile:828)
at com.fame.timeiq.license.LicenseCheck.l(SourceFile:589)
at com.fame.timeiq.license.LicenseCheck.a(SourceFile:522)
at com.fame.timeiq.license.LicenseCheck.a(SourceFile:370)
at com.fame.timeiq.dates.RegularCalendar.<clinit>(SourceFile:108)

here "mywork" is api and have some classes which are using in my program and i put this jar file in system environment variable also (environment variable name is "mywork")

and i modify java.policy file also :-
permission java.lang.RuntimePermission "getenv.*";
permission java.lang.RuntimePermission "getenv.","*";
permission java.lang.RuntimePermission "*", "read,write";
permission java.lang.PropertyPermission "*", "read,write";

thanks in advance

 
Ranch Hand
Posts: 45
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need give permission to your applet by signing it with a security certificate.
 
anchit pancholi
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Cole Terry wrote:You need give permission to your applet by signing it with a security certificate.



thanks for reply cole

how to do that... could you please help me ..
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Google keywords: "sign applet tutorial".
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think this link will help you

http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html#top
 
reply
    Bookmark Topic Watch Topic
  • New Topic