• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting error when applet try to access some jar file

 
anchit pancholi
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

 
Cole Terry
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 ..
 
Paul Clapham
Sheriff
Posts: 20990
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google keywords: "sign applet tutorial".
 
Nijin puthiya purayil
Ranch Hand
Posts: 32
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic