Forums Register Login

insertion jdbc by applet

+Pie Number of slices to send: Send
hi! friends

i was just woking with the simple jdbc program, the input will be taken from the textbox entry on the applet....and the values must be inserted into the database(ms access).
now, there is no compile-time error, but when i input the values and press update button an error in the cmd is prompted as:


D:\>appletviewer Insertbook.java
java.security.AccessControlException: access denied (java.lang.RuntimePermission
accessClassInPackage.sun.jdbc.odbc)




please help me out!
+Pie Number of slices to send: Send
Welcome to JavaRanch.

There are a number of things applet can't do for security reasons, and using the JDBC/ODBC database driver is one of those things. The applet either needs to be signed, or the local security policy altered; both are described in HowCanAnAppletReadFilesOnTheLocalFileSystem.
[ August 03, 2007: Message edited by: Ulf Dittmer ]
+Pie Number of slices to send: Send
I'm going to move this to our applets forum since it is more about applet security than JDBC.
I am mighty! And this is a mighty small ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 841 times.
Similar Threads
My Applet runs SLOWLY!
insertion jdbc by applet
using JDBC in applets - security exception
java.sql.SQLException
Applet-Servlet , AttributeValues does not work in browser
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:17:43.