aspose file tools*
The moose likes Applets and the fly likes Accessibility question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Accessibility question" Watch "Accessibility question" New topic
Author

Accessibility question

Chris Wagnor
Greenhorn

Joined: May 03, 2004
Posts: 21
Hi
Actually this is not an applet question but the root cause is the use of applets thats why I thought to put it here.
As applets cannot access anything beyond JVM in the Browser window, a special java.policy file needs to be made to grant access to certain things.
PROBLEM: I am using a class from sun.security.krb5 package which throws exception in checkPackageAccess() function of SecurityManager.
I am using the sun.security.krb5 class in an applet in order to get some information from the client's computer when he is running the applet. Since its internal, we expect that the client's computer has a java.policy file for the same.
Now when I run the applet on the client's computer then the error on the console is
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.security.krb5)
. The problem here is that I am having the following line on my java.policy file "permission java.lang.RuntimePermission "accessClassInPackage.sun.security.krb5"".
So if you could please enlighten me how to go about things then I would be very helpful.
Murali Kurukunda
Ranch Hand

Joined: Oct 20, 2003
Posts: 36
Are you calling the applet's method(that does the security related check) from javascript code?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessibility question
 
Similar Threads
getting error when applet try to access some jar file
about applet signature
How to get a File object from a InputStream or BufferedReader?
access control exception
two sockets communication in multi-thread