Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

acess denied by rdbms

when i run my applet connected to my local database i am getting an error message like ' java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc' .
what could be the problem?
0
viswaselar
Asked:
viswaselar
  • 4
  • 2
  • 2
  • +1
1 Solution
 
kurmanCommented:
Most probably you haven't specified user="" and password="" to access database. I don't know for sure, but if you are using ODBC bridge, specify pwd and username
0
 
viswaselarAuthor Commented:
The very same uid, pwd, driver set works
for an application. And my servlet is able to reach database with the same set.
0
 
sdwr98Commented:
Sounds more like an applet permissions issue. Applets are usually restricted to connections only to the web server that served them.  If your database is running on a separate machine, that could be your problem.  If you're running the applet using AppletRunner, try changing the security settings to allow the applet more access.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
viswaselarAuthor Commented:
How to change the security settings.
Any codes ?
0
 
sdwr98Commented:
If you're using AppletViewer (included with the Java2 SDK), then under Preferences, you can choose either Restricted or Unrestricted class access.  Choose Unrestricted, and see if that helps.
0
 
viswaselarAuthor Commented:
I am using browser.
0
 
kurmanCommented:
JDK 1.1 or JDK1.2 ?
0
 
viswaselarAuthor Commented:
jdk1.2
0
 
terajivCommented:
try using Properties files...

Rajiv
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 4
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now