| Author |
getting error when applet try to access some jar file
|
anchit pancholi
Ranch Hand
Joined: Oct 14, 2010
Posts: 44
|
|
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
Joined: Nov 23, 2011
Posts: 45
|
|
|
You need give permission to your applet by signing it with a security certificate.
|
 |
anchit pancholi
Ranch Hand
Joined: Oct 14, 2010
Posts: 44
|
|
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
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
Google keywords: "sign applet tutorial".
|
 |
Nijin puthiya purayil
Ranch Hand
Joined: Nov 09, 2011
Posts: 32
|
|
I think this link will help you
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html#top
|
 |
 |
|
|
subject: getting error when applet try to access some jar file
|
|
|