Results 1 to 4 of 4
  1. #1
    pinxrick is offline Member
    Join Date
    Feb 2011
    Posts
    3
    Rep Power
    0

    Default JApplet connecting to the database in browser

    Hi,

    I have a JApplet which connects to the database directly with no servlets in between. It runs perfectly in appletviewer but when i run it in the browser i cannot connect to the database. Where exactly should i place the my-sql-connector to run in the browser?Please advise as soon as possible.

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    First Do you have some exertions? Can you show your html page, where you to set applet.
    Second you must create verify certificate for applet.
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default

    Place the driver on the classpath - both on the server where the applet resides and in the applet code in html. You will also need to sign your applet

  4. #4
    pinxrick is offline Member
    Join Date
    Feb 2011
    Posts
    3
    Rep Power
    0

    Default

    Hi im sorry for replying so late... I solved this issue just last week. I had to make some changes to the java policy file and also place the my-sql connector in the correct path i.e jre/lib/ext folder.

Similar Threads

  1. japplet - jtable - browser
    By jasonnuigi in forum Java Applets
    Replies: 1
    Last Post: 12-31-2010, 02:16 PM
  2. connecting to a database
    By mxb7642 in forum JDBC
    Replies: 5
    Last Post: 09-08-2009, 08:39 AM
  3. Connecting to a database
    By peiceonly in forum New To Java
    Replies: 2
    Last Post: 04-06-2008, 02:28 PM
  4. Database to JApplet
    By Preethi in forum New To Java
    Replies: 0
    Last Post: 03-26-2008, 05:18 AM
  5. Connecting to a Website with the default browser
    By Riftwalker in forum Java Applets
    Replies: 4
    Last Post: 12-04-2007, 04:57 PM

Posting Permissions

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