Security/Permission Problems with Applet
843807Aug 8 2008 — edited Aug 18 2008Hi, I am writing an applet for a school project, which runs from a webpage, and connects to a an access database stored in the same folder as the webpage. However, when I attempt to connect to the access database I am having security/permission problems. I have hit a brick wall and need to sort this out to continue. I have read various pages on this error and have come to no real suitable result.
The error is as follows:
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)
I have read that the applet can be signed and then used freely in applet viewer and a web browser, eg. firefox, Internet explorer etc. I have also read that the Java policy files can be edited, however I have not come across a full solution. For example, I am programming in JCreator, and i cannot sign the applet every single time I am testing the applet while I am programming it. Can I edit a policy file so that I can allow the applet permissions while I am developing it, and then sign it once I am finished.