i'm connecting to the database from Applets. it gives an RuntimeException stating that accessClassPackage.sun.jdbc.odbc access denied.so i've created a policy file by giving RuntimePermission & in the target for accessClassPackage i've given sun.jdbc.odbc but still it's giving the same Exception. Can anybody reply me ?
Hi, you dont need to use a policy file at all. applet can access a database without being signed. My applet can access an oracle database from a remote machine. I have just added the "oracle" package in the same folder that contains the applet classes. Regards, MAC.
... "I have just added the "oracle" package in the same folder that contains the applet classes." Are you running the applet in a browse or just the applet viewer? You can get away with murder in the applet viewer.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.