Results 1 to 4 of 4
  1. #1
    jihad is offline Member
    Join Date
    Oct 2011
    Posts
    24
    Rep Power
    0

    Default how to connect java project to db

    guys my hw is to write an atm machine program profferssor want me to write basic atm machine but I want to develop my program I want to take information from a db I know sql and I created a db in netbeans but I dont know how to connect this db with my project I googled some info. first I should create a connection object in addition there must be a file with .connection extension but I dont know how to add this .

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,005
    Blog Entries
    7
    Rep Power
    20

    Default Re: how to connect java project to db

    Your database vendor has made available an implementation of the JDBC framework. Put that .jar file in your classpath and you're in business; read the API documentation how to create a Connection object given the implementation.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    jihad is offline Member
    Join Date
    Oct 2011
    Posts
    24
    Rep Power
    0

    Default Re: how to connect java project to db

    can you explain more clear and can you give link

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default Re: how to connect java project to db

    Quote Originally Posted by jihad View Post
    can you explain more clear and can you give link
    You appear to be asking Jos to re-write tutorials that have already been written. As for a link -- check out the main Java tutorial site for the data base tutorials, and check out the help files that come with your database.

Similar Threads

  1. connect to oracle from java
    By ahmadian in forum Advanced Java
    Replies: 7
    Last Post: 05-15-2013, 04:15 PM
  2. Connect 4 Programming Project Help!
    By Nouman in forum Java 2D
    Replies: 2
    Last Post: 05-31-2011, 06:41 PM
  3. connect Java applet with asp.net
    By kha in forum Java Applets
    Replies: 16
    Last Post: 05-06-2011, 10:33 PM
  4. Connect Java to SQL
    By ŖΫ ỏ Ңόρę in forum New To Java
    Replies: 6
    Last Post: 12-31-2010, 11:16 AM
  5. how to connect java to mysql?
    By ranvir in forum JDBC
    Replies: 2
    Last Post: 12-11-2010, 08:34 AM

Posting Permissions

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