CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 1999
    Posts
    5

    how to run a applet,which uses JDBC to connect to the database in internet explorer4.0



    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

  2. #2
    Join Date
    Feb 1999
    Posts
    2

    Re: how to run a applet,which uses JDBC to connect to the database in internet explorer4.0



    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.




  3. #3
    Join Date
    Feb 1999
    Posts
    1

    Re: how to run a applet,which uses JDBC to connect to the database in internet explorer4.0



    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

  4. #4
    Join Date
    Apr 1999
    Posts
    10

    Re: how to run a applet,which uses JDBC to connect to the database in internet explorer4.0



    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.

  5. #5
    Join Date
    Apr 1999
    Posts
    10

    Re: how to run a applet,which uses JDBC to connect to the database in internet explorer4.0



    Nope.

    Applets actually run in the CLIENT-SIDE virtual machine.

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

    story.

  6. #6
    Join Date
    Mar 1999
    Posts
    1

    Re: how to run a applet,which uses JDBC to connect to the database in internet explorer4.0



    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.



  7. #7
    Join Date
    Apr 1999
    Posts
    6

    Re: how to run a applet,which uses JDBC to connect to the database in internet explorer4.0



    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured