Although the applet connects to a access database when it is not inside the web page it doesn't get connected to the database while on localhost.I read the answer in webpage and with the link I tried to change the policy tool.Since I don't know much about policy tool I am finding it difficult to follow the instructions.
First of all I have java in `Program Files` and `Program Files(*86)`.
Instead of banging your head against applet security, why don't you just write an ordinary Java application? Then you don't have any security issues at all. Is there some reason you have to have it in a web page? Since it's expecting to connect to an Access database on the client's system I can't imagine you're going to have a lot of different people using it.
posted 4 years ago
I am learning applets and this is what was asked to do.So have to include a applet
Sorry about that -- I haven't ever had to mess about with the java.policy file. For all I know the recent changes that Oracle made to improve applet security might have prevented that file from being used any more; they probably wouldn't bother to mention that because there's almost no practical use for the java.policy file in real life. In fact it's just another way for malware to subvert applet security.
But I don't know that for sure. What I do know is that learning about the java.policy file for applets is pretty much a waste of your time. So I'd suggest you shortcut the process and go to your teacher and ask them to show you how it's done. (Don't mention the waste of time issue, that isn't going to help.)