CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: JDBC in swing

  1. #1
    Join Date
    Jun 2000
    Location
    India
    Posts
    12

    JDBC in swing

    i am writing the following code in my class which extends JApplet

    class.forName(oracle.jdbc.driver.OracleDriver);




    exception thrown is driver not found
    but when i run this program in a simple class extending nothing the code works fine
    Please tell if this is some version problem or something else. i am using java1.2
    Thanks




  2. #2
    Join Date
    May 2000
    Location
    NJ,USA
    Posts
    64

    Re: JDBC in swing

    Hi, If u try to get a connection to ur DB from ur Applet, the Applet Security Manager will not allow u to do this and will throw Exception. Thats the reason ur code is working in other case.
    Am not sure how we will get connection to DB from an Applet..

    Sreeni
    #If this post is valid to u, then dont forget to rate it#


  3. #3
    Join Date
    Jun 1999
    Location
    Germany (south)
    Posts
    147

    Re: JDBC in swing

    Hi,

    sorry, that´s not true.

    I coded a sample where an Applet can read from / write into a database (MS Access).
    My code is at my homepage www.lochmann.de
    Click "downloads" password "dl".
    I use the JDBC ODBC bridge (...and I would like to know how to connect database without the bridge....any ideas by the way?).

    I think the problem is that the driver (ORACLE in this case) isn´t installed or not found...

    If I am wrong, please let me know,
    Andi




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