• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet Jdbc Connection

 
TulsiRam Mohan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • 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.
 
Sachin Dimble
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • 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());
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic