File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Accessibility question" Watch "Accessibility question" New topic

Accessibility question

Chris Wagnor

Joined: May 03, 2004
Posts: 21
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 package which throws exception in checkPackageAccess() function of SecurityManager.
I am using the 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 access denied (java.lang.RuntimePermission
. The problem here is that I am having the following line on my java.policy file "permission java.lang.RuntimePermission """.
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:
subject: Accessibility question
It's not a secret anymore!