• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

odbc question

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Something must be done about this. Let's start by reading this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic