It's not a secret anymore!*
The moose likes JDBC and the fly likes insertion jdbc by applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "insertion jdbc by applet" Watch "insertion jdbc by applet" New topic
Author

insertion jdbc by applet

Mohit pundir
Greenhorn

Joined: Jun 30, 2007
Posts: 5
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
Marshal

Joined: Mar 22, 2005
Posts: 41631
    
  55
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 ]

Ping & DNS - my free Android networking tools app
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30392
    
150

I'm going to move this to our applets forum since it is more about applet security than JDBC.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
Don't get me started about those stupid light bulbs.
 
subject: insertion jdbc by applet