How to install JDBC?

I downloaded the "mysql-connector-java-3.1.10",but I am not very sure how to install it, the documentation and other instructions on the web are not very clear to me.
It says set the class path or something,but I am not very sure what is classpath they talk about.Are there any very simple way to install JDBC?
thanks

JDBC is part of standard Java; it is contained in the java.sql and javax.sql packages that come with the J2SE JDK/JRE.
To use JDBC with an actual database, you have to have a driver for that database, and make it accessible to Java. mysql-connector-java-3.1.10 is a JDBC driver for the MySQL database and won't work with other databases. The database software has to be set up seperately.
Using a JDBC driver is just like using an other external jar; you place it where it needs to go and (optionally) set the class path. How you do that depends in part on what you're doing (whether you're trying to use an IDE such as Eclipse or a J2EE server such as Jboss or write a stand-alone Swing application) and to some extent what OS you're using.

Similar Messages

  • How to install JDBC 8.1.6???

    Could someone tell me how to install the Oracle JDBC drivers
    ver 8.1.6?
    The compiled FAQs at
    http://technet.oracle.com/tech/java/access/info/jdbc_faq.htm
    are great, but offer no insight on how to install JDBC.
    Is there info on the web site about it other than
    the following very old still unsolved problem below:
    Product: JDBC
    Report Number: 654140
    Last Updated: 09-APR-98
    Component: JDBC Version: 7.3.4
    RDBMS Version: 0
    Operating System: MS Windows NT Version 4
    Affects: All supported platforms.
    Please update the kittings of the JDBC drivers found on
    www-aurora and the
    external FTP sites. These kittings of the JDBC Drivers say "Use
    the Oracle
    Installer" causing customers to call in immediately after
    downloading it and
    asking "How do I install it???"
    Also, the internal copies of the drivers' documentations say the
    same things
    and they do not have .PRD files for an Oracle Installer either.
    When an
    internal employee downloads this he goes to the main page on
    Aurora and sees
    to call into Oracle Support for any questions on JDBC, and this
    causes
    even more unnecessary calls from Oracle Employees that could have
    easily
    been advoided.
    Status:
    Open. More information may be available at a later date.
    null

    That is quite impossible to give you an aswer. We have to few information. For example, when did you get the error message? Is there an associate error number with this message? Try to explain what you did.
    Bye, Aron

  • How to install JDBC for Oracle 8.0.5

    Dear Friends,
    I am quite troubled in how to install JDBC Driver for Oracle 8.0.5 in Turbo Linux 7.0.
    I have got the file jdbc8052-sol.zip(class102.zip,class111.zip & liboci805jdbc.so), and extracted them into the /usr/lib.
    Setup the CLASSPATH and execute the ldconfig command, but the ldconfig is not executed well. Errors is :
    following "/usr/lib/liboci805jdbc.so" is not a shared object file.
    What should I do can setup the JDBC? Help!
    If you can, my friends, please answer here or write to me : [email protected]
    Jacky.
    Feb 4. 2002

    Dear Amardeep,
    The OP opened 2 threads, one how to clone and other one how to rename a database 8. The article I send show how to clone the DB (one of the steps in the clone article is how to rename the DB from"PROD" to "Test"). ;)
    This is the other thread:
    easy way to clone database
    Cheers,
    Francisco Munoz Alvarez
    www.oraclenz.com

  • How to install JDBC in Linux

    Dear All,
    I want to install JDBC for JDK1.6. I have installed the JDK; now please let me to know how to install JDBC on Linux for JDK1.6.
    Thanks & Regards,
    Aqeel Nawaz

    Hi Aqeel,
    Download the ojdbc.jar file for your database and add it to your CLASSPATH.

  • Need Help On How to Install JDBC Driver

    I've downloaded the JDBC driver and set the CLASSPATH environmental variable to the .jar file that is the same one I downloaded that is in the oracle folder. (not sure why I have to download it again) But, there are no other instructions on installation. I also tried copying the jdbc folder I downloaded to replace the one within the oracle folder and that didn't work either. If I type "import oracle." etc in netbeans it does not recognize the class / package. I can't be sure what the installation process is.
    I can't find clear instructions on installing JDBC other than the readme which says all you have to do is set the CLASSPATH, but it doesn't even mention what to do with the files you download. I found a developers reference that says all the things to check to make sure it installed correctly, but that is after the fact and I don't know how to get there.
    Thank you

    I already have the CLASSPATH set in the system environmental variables for ojdbc6.jar and orai18n.jar and it does not work.
    '.;C:\Program Files\Java\jre1.6.0_06\lib\ext\QTJava.zip;C:\app\0\product\11.1.0\db_1\jdbc\lib\ojdbc6.jar;C:\app\0\product\11.1.0\db_1\jlib\orai18n.jar"
    Also, I'd rather not have to run a TCP/IP listener so the OCI based JDBC driver would be preferred. Do I need to the OCI and the OCI based JDBC? (I read there is a difference) If so, could somebody give me the URL's because I can't find them.
    I find this very confusing. I found the page for JDBC, but that takes me to the JDBC page with many downloads and then they are all thin versions. So at the bottom it has a small link for "platform specific JDBC-OCI libraries See the instant client" so I click on the "instant client" (whatever that is) but that just has a download link for a zip file that has a readme with nothing other than a timestamp and a useless header with no information. This is just taking me in circles.
    What I want to do is start programming java in netbeans using JDBC. Thanks.

  • How to install jdbc drivers

    hai how to download jdbcdrivers and how to install these drivers.please give solution

    gnomeom wrote:
    Hello friend.
    You need to install MS-SQL in ur pc.
    And then u can find the driver.
    After install u need to do this
    For example
    u need to press windows key and R.
    then u need to type. odbcad32Complete and utter useless drivel and garbage.
    I have no idea what would possess someone, who obviously knows nothing about what is being discussed, to use their very first forum post to post such tripe.
    Just garbage. All of it.
    This is JDBC we are talking about. Not ODBC. There are other serious errors too but that's your biggest one.

  • How to Install JDBC Thin Driver

    Hi all,
    I will connect to a RDBMS the first time and do not know how to do that.
    I need to install JDBC Driver and use but how would i install it? There is a ojdbc14_g.jar file when i search on google i downloaded it but where should i locate it to
    see it from Eclipse(Spring Source Tool indeed).
    I went to preferences -> data management -> driver definitions in Eclipse when i select ORACLE Thin Driver it says the jar file above is not found in the file system.
    Thanks all...
    Edited by: user9371286 on 06-Aug-2010 00:16

    Installing a jdbc driver is as easy as downloading it and putting it in your classpath. The prereqs are getting the correct jar for your version of Oracle and having a database to connect to. This is a good place to start for JDBC related questions:
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html
    And here is a little demo to load and run a Java class in eclipse:
    http://www.oracledepot.com/demos/2010-08-06_JdbcTest.swf

  • How to install JDBC Driver for Oracle 8.0.4 on NT ????

    in the download package I get 2 zip and 2 dll Files but no description where to copy them.

    I found it! :)

  • How can i install jdbc driver

    Hi
    i install websphere 5 and try to connect to my sql server but cannot find jdbc driver class path and can not find any jdbc driver
    pls tell me how can i install jdbc driver in my websphere
    with regards

    You may get a better response posting this question in a WebSphere specific forum. Maybe this will help, the following link shows the command you need to execute to install a JDBC driver in websphere 5.0.
    http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?tab=search&searchWord=mysql+driver&maxHits=50

  • How can i install jdbc drivers

    Hi
    i install websphere 5 and try to connect to my sql server but cannot find jdbc driver class path and can not find any jdbc driver
    pls tell me how can i install jdbc driver in my websphere
    with regards

    Refer to
    http://publib.boulder.ibm.com/tividd/td/TSLA/SC32-0834-02/en_US/HTML/sl12gmst80.htm

  • How To Install and Configure External Drivers for the JDBC & JMS Adapters

    Hello colleagues,
    Please I need a How To Install and Configure External Drivers for the JDBC & JMS Adapters version 7.10.
    VERSION 7.10.
    BBDD ORACLE - ojdbc14.jar
    Regards.

    Hi ,
    Uisng  Java Support Package Manager (JSPM) to deploy com.sap.aii.adapter.lib.sda file,
    refer this two links,the procedure available how to deploy using JSPM.
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/33/e6fb40f17af66fe10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/1f/c45b4211aac353e10000000a1550b0/frameset.htm
    Regards,
    Raj

  • How To Install and Configure External Drivers for JDBC & JMS Adapters"

    hello ,
    where can i download  this Guide "How To Install and Configure External Drivers for JDBC & JMS Adapters"?
    thanks
    best regards
    pietro greco

    Hi Eleonore Rosenthal, 
    Could you please check the below links:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/33/e6fb40f17af66fe10000000a1550b0/content.htm
    http://help.sap.com/saphelp_sm32/helpdata/en/33/e6fb40f17af66fe10000000a1550b0/frameset.htm
    Regards,
    S.Manu.

  • How can I install JDBC drivers for Oracle?!?....

    i have a program that has this line:
    import oracle.jdbc.pool.OracleDataSource;
    that gives this error when I compile it:
    package oracle.jdbc.pool does not exist
    So I think I need to install JDBC drivers for Oracle. (?)
    I went here: [http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_111060.html]
    and downloaded the files for JDBC Thin.
    Then I followed this: [http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/111070_readme.html]
    by entering these commands (I'm using Ubuntu):
    export CLASSPATH=$CLASSPATH:/path/to/files/ojdbc6.jar
    export CLASSPATH=$CLASSPATH:/path/to/files/orai18n.jar
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/files
    When I type echo $CLASSPATH I can see that those commands worked, but it hasn't made any difference when I try to compile.
    I still get the same error. Is it because I didn't do anything about the .so files? The readme page didn't mention them in the installation section.
    Please help! I am so stuck...

    I don't think you need the shared libraries (.so files) and given what I saw when I glanced at those pages, I don't think they'd even work for you, although maybe I just didn't read enough of it.
    What happens when you type
    javap oracle.jdbc.pool.OracleDataSourceon the command line?
    How are you invoking javac? Are you perhaps passing a classpath argument?
    Are you sure that the path to the jar files is correct? Are the paths relative?

  • How to install a JDBC driver?

    Hello, everybody!
    I'm new to Java and I'm trying to install a JDBC driver. So, I downloaded the JayBird,
    a JDBC driver for Firebird, and now I don't know how to install the driver. I keep
    getting this message from the compiler when I try to compile the example that comes
    with the driver:
    DriverExample.java:182: package org.firebirdsql.jdbc does not exist
    d = new org.firebirdsql.jdbc.FBDriver ();
    ^
    1 error
    So, in the directory that has the example file (DriverExample.java) I created the
    following directory structure:
    C:\Example\org\firebirdsql\jdbc
    and inside the jdbc directory I copied the driver files:
    firebirdsql.jar
    mini-concurrent.jar
    jaas.jar
    mini-j2ee.jar
    log4j-core.jar
    and I still keep getting the error from the compiler. I just would like to
    know what I have to do to install this driver correctly for the compiler to
    find its packages.
    Below are the instructions the comes with the help to install JayBird, but I
    think that I did everything and it still didn't work:
    ======================================================================
    The classes from firebirdsql.jar must be in the classpath of the Java
    application being compiled, or otherwise made available to your application.
    The classes from the following packages must also be available:
    mini-concurrent.jar
    jaas.jar (included in jdk 1.4)
    mini-j2ee.jar (now including JDBC classes)
    log4j-core.jar (if you want logging available)
    The firebirdsql-full.jar file has all of the needed files in one
    archive for ease of use.
    These archives are included in the binary package.
    ======================================================================
    Please can someone help me?
    Thank you...
    Marcos

    My file (DriverExample.java) is in the directory 'Example' and the driver files are in the directory 'Example\org\firebirdsql\jdbc'
    That's what I did inside the directory 'Example'
    javac -classpath org/firebirdsql/jdbc/firebirdsql.jar DriverExample.java
    And that compiled ok.
    Now how can I specify where the driver files are for the java.exe? Of course I tried:
    java DriverExample
    and it didn't work.

  • Installing JDBC drivers in PI 7.1

    Hello! Previously I used PI 7.0 and have an instruction Howto install JDBC driver. But now I can't find how to install drivers in PI 7.1
    Could you help me please?

    hi,
    have you seen this new SAP note -
    1138877 - PI 7.1 : How to Deploy External Drivers JDBC/JMS Adapters ?
    is that what you're looking for ?
    Regards,
    Michal Krawczyk

Maybe you are looking for