• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet Jdbc Connection

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Experts,

Here I am getting problem when I am accessing oracle datatbase through applet program .

It is getting compiled by using "javac appjdbc.java"
When I am entering "appletviewer appjdbc.java" the data is not displayed .It shows error like follows.


Can't find Database driver class:
java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc).

Please help me out in solving this problem.

I have used Type 1 driver. and <applet/> and dsn created and tested it is ok when I tested.

Advance Thanks
Bye

TulsiRam
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

To use a JDBC driver that's part of the system Java installation (and not part of the applet), the applet needs to be signed or the local security policy relaxed. You can find details here.
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tulsi!

Create a policy file for ur Applet using PolicyTool in bin(j2sdk) set all the permission to Grant now run ur applet with policy file!!!


With Best Regards,
Sachin Dimble

-India_Will_Bccome_SuperItPower(new Lets_Do_It());
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
TulsiRam,
Welcome to JavaRanch!

With all this talk about applet signing and policies, I think it is more of an applet question than a JDBC one. I'll move it on over to our applet question where those experts hang out.

Jeanne
JDBC Forum Bartender
 
reply
    Bookmark Topic Watch Topic
  • New Topic