I have had problems writing any Java applet that successfully connects to and executes queries in a MySQL database. Now, I have read multiple descriptions of how it is meant to be done. Regardless, I continue to receive this message:
Unable to connect to any hosts due to exception: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:3306 connect, resolve)
The applet runs perfectly inside my Eclipse development environment. I have attempted to modify the policy files to resolve this problem, to no avail. I still have not been able to find a clear explanation of what is necessary to create an applet that utilizes a SQL database. Will the users be able to run the applet without downloading any libraries or having a particular policy file on their machine? What is wrong with what I am doing, and what is the correct approach to this problem?
I really appreciate any help resolving this general issue.
Regards,
Cosmo