PDA

View Full Version : see my error java.security.AccessControlException: access denied how change


mfa
01-11-2007, 10:22 AM
hi master
sir wrote connection class that run and give me right result
but when i call data from applet then
java give me error

java.security.AccessControlException: access denied (java.util.PropertyPermission oracle.jserver.version read)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)


=======
sir i serch in net i got some idea

i. change java.policy
and put this code

grant codeBase "http://ib-s01/-" {
permission java.security.AllPermission;
};


sir please give me idea i serch java.policy in my system that show many java.policy file

sir which file i use and where i put
this code

grant codeBase "http://ib-s01/-" {
permission java.security.AllPermission;
};

second idea got from net change the java.security


2. change java.security
and put this code

policy.url.1=file:${java.home}/lib/security/java.policy


sir please give me idea i serch java.policy in my system that show many java.security file

sir which file i use and where i put
this code

policy.url.1=file:${java.home}/lib/security/java.policy


please give me idea how i chang my java.policy and java.security file

thank you

aamir

Philip M
01-11-2007, 11:10 AM
Oh sir, you are in the wrong forum.
Javascript (which is what this forum covers) is not at all the same language as Java, in spite of the confusingly similar names.