Click to See Complete Forum and Search --> : how to run a applet,which uses JDBC to connect to the database in internet explorer4.0


R.Karunanithi
February 12th, 1999, 02:37 AM
hai everybody,

i have written a simple database application as applet. the applet uses JDBC:ODBC. the application is perfectly working when i view the applet in appletviewer.the applet connects to the database and retrieves the value or updates or insert according to the operation i performed.but when i try to run it in internet explorer 4.0 it is giving security exception. the applet is developed using JDK1.1.2. is there any possible way to run it in IE. if there explain me how to do it.

awaiting your replies,

R.Karuna

Vinod Krishnan
February 12th, 1999, 08:27 AM
hai,

if you want to view thw applet through a web browser you need the web server to get installed.if you are using windows NT you can install the IIS which is freely availbale with NT.you have to store your files in a folder in the "wwwroot" folder of the Internet Information Server(IIS)and try to run it by giving the machine name,folder name and the filename in the URL.

Marduc
February 18th, 1999, 08:14 AM
I've made an applet that uses a Microsoft Access' data source through JDBC:ODBC. It works very well in Netscape Communicator, without a web server installed in the machine, but doesn't run in the Internet Explorer, trowing a NullPointerException. I've installed the latest version of Microsoft's Virtual Machine and the problem remains... what can I make?


Thanks!

Marduc

Paolo Milani
March 1st, 1999, 06:09 AM
It seems to me that the problem arises from the Explorer's VM.

I suggest that you install JRE for win32, from Sun.

With that installed (and configured), applets will run in the JRE,

instead of using Explorer's VM.

From Explorer's point of view, JRE acts as a plugin.

Paolo Milani
March 2nd, 1999, 10:11 AM
Nope.

Applets actually run in the CLIENT-SIDE virtual machine.

The server-side counterpart to applets are servlets, but that's another

story.

Howard Bash
March 18th, 1999, 02:02 PM
Unless I missed something here, there is nothing in the statement of the problem which states that the database must reside on the server. The real problem is that you want to connect to a database through an applet and Java security must be setup to allow the applet access to the db. How to set the security up is problematic because apparently neither netscape nor ie support this functionality and you must use some java plug-in. As to the plug-in, I have no experience with it, but am not sure if I want to chance kill my IE installation by installing it.

Ravi Raina
March 18th, 1999, 04:33 PM
Hi Bash,

Yes in the IE it gives problems rather it does not work ,but it works fine

with the netscape gold above 3.0.

I have tried the three tier application(applet,appletserver,oracle)with

Netscape.

Ravi