aspose file tools*
The moose likes JDBC and the fly likes Runtime permission in JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Runtime permission in JDBC" Watch "Runtime permission in JDBC" New topic
Author

Runtime permission in JDBC

Rakesh Sharma
Ranch Hand

Joined: Dec 29, 2000
Posts: 37
I have made a class and a method to fetch the data from Excel thru JDBC:ODBC and it is working fine. When I want to get data from another class I am getting an Exception like
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)
Please tell me how to grant the runtime permission in the programme.
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Runtime permission in JDBC