• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

odbc question

 
tom murf
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am working on windows.
i have set up a microsoft access driver using my control panel's ODBC Data source Administrator.
it did this successfully.
My program compiles but gives me the followin run time error:

code:
--------------------------------------------------------------------------------

access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)

--------------------------------------------------------------------------------


It seems to have a problem with the line:

code:
--------------------------------------------------------------------------------

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

--------------------------------------------------------------------------------


as i cannot get a print statement to output after this line but before it no problem.
how can i get around this access problem?
i had this working before using applets but it seems to depend on the machine.
the applet is not online but instead run locally.
maybe i need a policy file that grants all permission.
if so what is the procedure for this.
maybe i need to make it an application.
if so is it difficult to make an applet an application.
as this may not be an applet issue i have posted a similar post on the jdbc section.

response urgently required,
thanks in advance,
tom
 
Joe Ess
Bartender
Posts: 9340
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please do not post the same question in multiple forums. First, most people who come to the ranch frequently look at many, if not all the forums. Second, should your question be answered in one forum, as it is now, someone glancing at this forum would not know about that answer and waste valuable time duplicating the previous effort.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic