Solved

acess denied by rdbms

Posted on 2000-05-15
9
173 Views
Last Modified: 2010-04-01
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
Comment
Question by:viswaselar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +1
9 Comments
 

Expert Comment

by:kurman
ID: 2809883
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
 

Author Comment

by:viswaselar
ID: 2810752
The very same uid, pwd, driver set works
for an application. And my servlet is able to reach database with the same set.
0
 

Expert Comment

by:sdwr98
ID: 2810962
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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 

Author Comment

by:viswaselar
ID: 2812828
How to change the security settings.
Any codes ?
0
 

Expert Comment

by:sdwr98
ID: 2817322
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
 

Author Comment

by:viswaselar
ID: 2820514
I am using browser.
0
 

Expert Comment

by:kurman
ID: 2821251
JDK 1.1 or JDK1.2 ?
0
 

Author Comment

by:viswaselar
ID: 2828857
jdk1.2
0
 
LVL 3

Accepted Solution

by:
terajiv earned 20 total points
ID: 2924509
try using Properties files...

Rajiv
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question