Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: What is and how do I download the JDBC driver and implement it in Eclipse?

  1. #1
    Member Cronus's Avatar
    Join Date
    Feb 2013
    Location
    Gothenburg, Sweden
    Posts
    41
    My Mood
    Inspired
    Thanks
    6
    Thanked 7 Times in 6 Posts

    Question What is and how do I download the JDBC driver and implement it in Eclipse?

    Hi all, I'm coding a chat room-program and I'm currently developing a registration/sign in form. After a little research, I noticed that in order to have multiple accounts, you need to work with databases. I knew about MySQL before, so I used that as a starting point. I later found that MySQL has different drivers/connectors for different languages (MySQL :: MySQL Downloads - MySQL connectors section). Because I'm using Java, I hit the Connector/J link and then downloaded the tar.gz zipped file choice (I'm using mac). Then, I unzipped the file and put the libs in the home/lib directory of Java, but it didn't work (I was told to do that on a forum). Now, I would really like to know how to install it from people that know what they're talking about, someone like you.

    Also, I have no idea what MySQL is. I know that it's handling databases, but how? How does it work? Do I get a program like Eclipse or something? Please help.

    How do I implement MySQL into Eclipse?

    As I previousy mentioned, I put all the libs in the Java home/lib directory, does that affect my java in any way because I changed it?

    Also, a link containing lots of tutorials for MySQL/JDBC and/or an example code would just be perfectly fine, even without installing instructions.

    Thanks!


  2. #2
    Super Moderator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,100
    Thanks
    169
    Thanked 779 Times in 725 Posts
    Blog Entries
    5

    Default Re: What is and how do I download the JDBC driver and implement it in Eclipse?

    Thread moved from What's wrong with my code.

    hen, I unzipped the file and put the libs in the home/lib directory of Java, but it didn't work (I was told to do that on a forum). Now, I would really like to know how to install it from people that know what they're talking about, someone like you
    Place the jar on your classpath. See PATH and CLASSPATH (The Java™ Tutorials > Essential Classes > The Platform Environment)

    Also, I have no idea what MySQL is. I know that it's handling databases, but how? How does it work? Do I get a program like Eclipse or something? Please help
    I recommend reading about SQL in general - for instance SQL - Wikipedia, the free encyclopedia There are ample tutorials online about SQL, SQL being the language and MySQL being one implementation of a database accessed via SQL. For MySQL to run, you need it installed somehwere, then, and only then, can you use the Connector J driver to access the database.

  3. #3
    Member Cronus's Avatar
    Join Date
    Feb 2013
    Location
    Gothenburg, Sweden
    Posts
    41
    My Mood
    Inspired
    Thanks
    6
    Thanked 7 Times in 6 Posts

    Default Re: What is and how do I download the JDBC driver and implement it in Eclipse?

    Thanks, Ill check it out and see if it works, if it does, I'll let you know!

  4. #4
    Member Cronus's Avatar
    Join Date
    Feb 2013
    Location
    Gothenburg, Sweden
    Posts
    41
    My Mood
    Inspired
    Thanks
    6
    Thanked 7 Times in 6 Posts

    Default Re: What is and how do I download the JDBC driver and implement it in Eclipse?

    It didn't really work out, can you be a little more specific about where I should put the jar? I mean, there are tons of folders within the classpath, I'll try the "jar" folder.

  5. #5
    Junior Member
    Join Date
    May 2013
    Posts
    3
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: What is and how do I download the JDBC driver and implement it in Eclipse?

    You can download mysql-jdbc connector from internet then copy paste inside project folder (lib directory) and then set the path of that file inside manifest.ml file

  6. The Following User Says Thank You to ganeshjoshi2070 For This Useful Post:

    Cronus (June 24th, 2013)

  7. #6
    Member Cronus's Avatar
    Join Date
    Feb 2013
    Location
    Gothenburg, Sweden
    Posts
    41
    My Mood
    Inspired
    Thanks
    6
    Thanked 7 Times in 6 Posts

    Default Re: What is and how do I download the JDBC driver and implement it in Eclipse?

    I'm SLIGHTLY late, thank you, no literally, I "thanks" you!

Similar Threads

  1. type-4 driver with jdbc
    By muzammil786 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 12th, 2013, 11:00 AM
  2. JDBC Problem - com.mysql.jdbc.Driver
    By icu222much in forum Java Servlet
    Replies: 2
    Last Post: November 21st, 2011, 10:54 PM
  3. How to instal JDBC driver package in eclipse
    By sathish in forum JDBC & Databases
    Replies: 2
    Last Post: September 2nd, 2010, 10:09 AM
  4. How to install a JDBC driver in Eclipse? And where to take it from?
    By noFear in forum Java Theory & Questions
    Replies: 2
    Last Post: August 17th, 2010, 10:51 AM