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: 492
  • Last Modified:

Access denied - applet not initialized. why?

hi
 I have used Japplet in swing for my program. I have used Class.forName(...)fro connecting database. While compiling , there is no error. But when iam running , i having error in the line where i have used class.forName(..). The error is access denied, applet not initialized.
0
sdevikala_2002
Asked:
sdevikala_2002
1 Solution
 
Tommy BraasCommented:
Applets live in a "sandbox", so to speak. There are things an applet can do, and some things it can't.

The SecurityManager decides what is allowed. Read more at this location http://java.sun.com/j2se/1.3/docs/api/java/lang/SecurityManager.html

Things that Applets are not allowed to do unless they are signed;

-> Dynamically load classes by name (your case)

-> Open network connections to servers other than the server from which the applet was downloaded

-> Access the file system

Good luck!
0
 
CEHJCommented:
Important - you can't infer from the above (tempting to do so if they can't dynamically load classes) that applets are not allowed to use JDBC. They can. See http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20064067.html
0
 
CleanupPingCommented:
sdevikala_2002:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
TimYatesCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept orangehead911's comment as answer.

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TimYates
EE Cleanup Volunteer
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now