473,396 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

java.security.AccessControlException

hi..
i'm using msaccess database to retrive the data into an applet...
during runtime i'm getting an error like
java.security.AccessControlException:access denied(java.lang .RuntimePermissionaccessClassInPackage.sun.jdbc.od bc.)

when i'm using the same code using main method it is working properly..
for applet only it is showing this error..
can u please help me in tracing this...
Jan 4 '07 #1
6 2659
viijay
2
hi..
i'm using msaccess database to retrive the data into an applet...
during runtime i'm getting an error like
java.security.AccessControlException:access denied(java.lang .RuntimePermissionaccessClassInPackage.sun.jdbc.od bc.)

when i'm using the same code using main method it is working properly..
for applet only it is showing this error..
can u please help me in tracing this...
Try to put your code in paint method

public void paint(Graphics g) {
<your code>
}
Jan 4 '07 #2
r035198x
13,262 8TB
hi..
i'm using msaccess database to retrive the data into an applet...
during runtime i'm getting an error like
java.security.AccessControlException:access denied(java.lang .RuntimePermissionaccessClassInPackage.sun.jdbc.od bc.)

when i'm using the same code using main method it is working properly..
for applet only it is showing this error..
can u please help me in tracing this...
Hi there. Your applet may to be signed for this to work but this is not usually neccessary when the applet is loaded locally. Are you using appletviewer or the browser for loading the applet?
Jan 4 '07 #3
i'm using appletviewer
Jan 4 '07 #4
cant i have another solution instead of signing an applet?
Even if i write the code in paint method, i'm getting the same exception..
Jan 5 '07 #6
r035198x
13,262 8TB
cant i have another solution instead of signing an applet?
Even if i write the code in paint method, i'm getting the same exception..
Writing the code in the paint method won't help. You have to sign it or play around with policy files.
Applets are loaded onto browsers and so giving them access to the files on computers they are running on can pose a security risk. Have a look at all the links I gave you and try to understand what they are talking about.
Jan 5 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: ParkPD | last post by:
Hi, I have been made a signed-applet that handling xml data from web-server. When I execute this applet with appletviewer, it works well. And it is OK with Internet Explorer. But when I opened...
5
by: Rowland | last post by:
Hi, I know this question has prob. been asked a million times, but I couldn't find it in the FAQ, so here goes : I'm trying to write a Java applet to call a dll that resides on the web server...
1
by: Sergio | last post by:
I want to execute a method of one applet from one page HTML. If I execute the method that it reads from rows from init() all it works. f instead I execute the method through...
0
by: Brendan | last post by:
Unable to connect to any hosts due to exception: java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) CAN ANYONE HELP?? What is causing this...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
0
by: mailkhurana | last post by:
Hii , I am trying to use a type 2 driver to connect to DB2 0n AIX 5 I have a small java test to class to establish a conneciton with the db .. I am NOT using WAS or any appserver When I try to...
2
by: Tim Murray | last post by:
First of all, I don't know much about Java, even its naming and version numbering nomenclature, and second, if there is a better group to ask this in, please let me know. System is Mac with...
15
by: himilecyclist | last post by:
My State government organization has written a PHP/MySQL application which has been in production for about 6 months and has been highly successful. We are now embarking on a similar database...
1
by: Smoothj | last post by:
Hello all, when connecting to an IRC server with my java applet some of my members get this error code. java.security.AccessControlException : access denied (java.net.SocketPermission...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.