hi all i have been trying to connect to a access database through the jdbc. my code works perfectly fine when i run it as a stand alone program. but the same code when run as a applet gives the following exception while establishing the connection: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc) the error probably is due to the security policy of applets. this is the first time i am working with jdbc in applets so i cant exactly pin point the source of error. both the applet and the database or on the local machine. how do i granct access rights to the applet to connect to the database? thanx in advance. AJ
Joined: Oct 03, 2000
You need to review how the POLICYTOOL utility works... I made a post to this form about 6 months ago... Search for POLICYTOOL I have been busy but will check back to see if you have any questions in a few days.. ------------------ Multi-Platform Database Developer ( on E.S.T. )
Multi Platform Database Developer & DBA on E.S.T.
Joined: Jan 02, 2001
Thanx Monty. I was not aware of the PolicyTool. I found your posting in the forum and it was very helpful. thanx again AJ [This message has been edited by Aj Patel (edited June 21, 2001).]