Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

getting error when applet try to access some jar file

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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: 25669
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google keywords: "sign applet tutorial".
 
Ranch Hand
Posts: 32
 
You would be much easier to understand if you took that bucket off of your head. And that goes for the tiny ad too!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic