Results 1 to 5 of 5
  1. #1
    buston01 is offline Member
    Join Date
    Jan 2010
    Posts
    9
    Rep Power
    0

    Default connection to database

    please, i am writing a program that will connect to a database and it can not locate the driver please what can i do and i can i go about it if i want to use netbeans

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    835
    Rep Power
    6

    Default

    check the jars are in classpath.
    Last edited by RamyaSivakanth; 02-25-2010 at 01:18 PM.
    Ramya:cool:

  3. #3
    buston01 is offline Member
    Join Date
    Jan 2010
    Posts
    9
    Rep Power
    0

    Default yeah

    when i checked environment variables i cant find that Classpath

  4. #4
    Dumisan's Avatar
    Dumisan is offline Member
    Join Date
    Feb 2010
    Location
    Romania
    Posts
    30
    Rep Power
    0

    Default

    have you tryed adding the path where your datebase is to the environment variables

    P.S. i'm not sure how to do it i'm now on java but on my programes i use the acces date base and is quite easy and i'm useing Windows operation sistem
    so if you are useing something else read the instructions for your operation sistem
    silence i'm trying to meditate:p

  5. #5
    Aseem is offline Senior Member
    Join Date
    Mar 2009
    Location
    USA
    Posts
    127
    Rep Power
    0

    Default

    right click on ur project node-->go to properties-->click on add/jar button--> browse to the driver you have downloaded for database--> click ok.

Similar Threads

  1. getting database connection
    By ravidasineni in forum AWT / Swing
    Replies: 0
    Last Post: 11-27-2009, 04:33 AM
  2. database connection in jsf
    By Srikala in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 10-06-2008, 06:53 AM
  3. Database Connection
    By CompleteBeginner in forum New To Java
    Replies: 2
    Last Post: 05-24-2008, 02:30 PM
  4. Database Connection
    By vipinkumarsolanki in forum Advanced Java
    Replies: 2
    Last Post: 11-26-2007, 06:36 AM
  5. Database connection
    By oaklander in forum New To Java
    Replies: 2
    Last Post: 11-12-2007, 11:11 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
  •