• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

insertion jdbc by applet

 
Mohit pundir
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to move this to our applets forum since it is more about applet security than JDBC.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic