Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to access an Access data base from an applet?

Status
Not open for further replies.

ferlona

Programmer
Apr 18, 2001
2
ES
I am trying to develop an applet that needs to access an Access data base. If I run my code not within a HTML page but from the MSDos window (with java Myapplet) it works succesfully but when I try to run the applet from the browser a message like "applet notinited" appears in the status bar.

I have tried to solve it using the library provided by netscape to enable certain permissions that applets usually do not have (like file reading/writing) but it did not work. Furthermore, aparently there is no target (class Target) related to data base access.

I would like to access my data base running my applets from Netscape and also from Internet Explorer. I have been looking for an Internet Explorer library that allows controlling security (like the one I found for Netscape) but I did find nothing.

Thanks a lot four your kind help in advance.
 
It sounds like you are getting an exception error in your Applet init method. When you run it as an application, the init method does not run.

I would suggest you run it through a IDE debugger or just put a bunch of System.out.println statments after every line in your init method. Then run it using the Sun AppletViewer and look at your messages on the Dos Console.

It may be a variable is being referenced which is null?

Good luck,
Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top