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.

Similar Messages

  • How to install jTDS jdbc driver

    I've heard so much about this jTDS driver, and had it with the current jdbc driver i'm using. I'm using slserver 7. i would like to install the jtds driver. I just downloaded the .jar file. how do i install the driver. which directory do i put it in? pls help asap. thanks a million.

    "Install" it?
    The directory you put it in depends greatly on the application that's using it.
    If it's a desktop app, put in in the CLASSPATH for the app.
    If it's a Web app, put it in the WEB-INF/lib directory for your app.
    It's not a cut & dried answer. I don't think one JAR file will necessarily serve all apps. Expect to have duplicates as needed. I do.
    %

  • Installing Postgresql JDBC Driver WLS 8.1

    Hi,
    Can somebody explain how I install the JDBC Driver for postgresql? I have WLS
    8.1.2 on Win XP. I think the solution would be to set the CLASSPATH to the appropriate
    location. But how do I do this permanently?
    Thanks,
    Oliver

    Oliver wrote:
    Hi,
    Can somebody explain how I install the JDBC Driver for postgresql? I have WLS
    8.1.2 on Win XP. I think the solution would be to set the CLASSPATH to the appropriate
    location. But how do I do this permanently?
    Thanks,
    OliverHi. Read the startWeblogic script to see how it constructs the -classpath argument for
    the weblogic JVM. You can either add the postgres classes to an environment variable
    PRE_CLASSPATH, or edit the startup script etc.
    Joe

  • How to use a jdbc driver in caf

    Hi, all.
         I tried to make a ws to access DB with CAF, but I had no idea how to use a jdbc driver(.jar).
        Can anyone do me a favor? Thx 
        PS: my server is ce7.1
    Edited by: Louis HUANG on Jul 27, 2009 1:09 PM

    hi
    If you want to interact with db tables in caf,try like this.
    it may work..
    Using EJB call database tables using jdbc driver.
    Expose EJB as webservice.
    and using External service option of caf utilise this webservice in caf,do the necessary mappings..
    you can search in sdn,how to call DB tables in EJB..
    Regards
    sowmya.

  • How to install in diffrent drive

    Hi,
    How to install at diffent drive?

    Heir72 which Adobe software or service is your inquiry in relation too?

  • How to install a flash drive?

    How to install a flash drive?

    If you simply mean a USB flash drive, or a USB hard drive. There should be no installation requirements. If the drive doesn't show up in Finder, you should check whether Disk Utility sees it, and whether the drive has a Mac readable filesystem. Disk Utility can be found with spotight if you do not know where it is.

  • How to install HP printer driver *****

    Hi,
    How to install HP printer driver , so that i can see new device type in SPAD.
    Thanks
    Lisa

    Hi Lisa,
    proceed as below.
    1)Log in to HP-UX as root (or an other username that controls the printers, and has all the rights to the directories).
    2)Type sam  on the command line and press enter.
    3)Scroll to Printer and Plotters with the vertical scrollbar.
    4)Click twice on Printers and Plotters.
    5)Double click on LP Spooler.
    6)Click twice on Printers and Plotters.
    7)Select Actions on the menu bar and click on Add Remote Printer/Plotter.
    8)For “Printer Name” type any name, “Remote System Name” use the DNS/Host name, or alternatively use the dotted-IP (200.200.200.11). ”Remote Printer Name” should be one of the destination ports on the Printnet (d1prn, d2prn, etc….). Also select Remote Printer is on a BSD System. Press OK and the server will install the printer.
    9)Click on OK.
    10)For a test print type lp –d Printername /etc/protocols.
    And finally  don’t forget to make this printer as the default printer if u have only this.
    Right click on the printer and and say make default.
    Regards,
    Bapu

  • How do I install the jdbc driver for sql server 2005, in sql developer 4.0 ?

    Hallo together
    I need access to tables in a MS SQL Server 2005 database.
    One possibility is the JDBC driver.
    How do i install this driver ?
    Thank you very much for your postings.

    Hi,
      This is from the documentation -
    Database: Third Party JDBC Drivers
    The Third Party JDBC Drivers pane specifies drivers to be used for connections to third-party (non-Oracle) databases, such as IBM DB2, MySQL, Microsoft SQL Server, or Sybase Adaptive Server. (You do not need to add a driver for connections to Microsoft Access databases.) To add a driver, click Add Entry and select the path for the driver:
    For Microsoft SQL Server or Sybase Adaptive Server: jtds-1.2.jar, which is included in the jtds-1.2-dist.zip download
    To find a specific third-party JDBC driver, see the appropriate website (for example, http://www.mysql.com for the MySQL Connector/J JDBC driver for MySQL, http://jtds.sourceforge.net/ for the jTDS driver for Microsoft SQL Server and Sybase Adaptive Server, or search at http://www.teradata.com/ for the JDBC driver for Teradata). For MySQL, use the MySQL 5.0 driver, not 5.1 or later, with SQL Developer release 1.5.
    You must specify a third-party JDBC driver or install a driver using the Check for Updates feature before you can create a database connection to a third-party database of that associated type. (See the tabs for creating connections to third-party databases in the Create/Edit/Select Database Connection dialog box.)
    Alternative:
    As an alternative to using this preference, you can click Help, then Check for Updates to install the JTDS JDBC Driver for Microsoft SQL Server and the MySQL JDBE Driver as extensions.
    Regards,
    Mike

  • How to register MySQL JDBC Driver in OC4J

    Does anyone know how to register the MySQL JDBC driver in OC4J ?

    When your application must connect to heterogeneous databases, use DataDirect JDBC drivers. DataDirect JDBC drivers are not meant to be used with an Oracle database but for connecting to non-Oracle databases, such as Microsoft, SQLServer, Sybase and DB2. If you want to use DataDirect drivers with OC4J, add corresponding entries for each database in the data-sources.xml file.
    Please see the DataDirect documentation for information on installing the DataDirect JDBC drivers.
    The following is an example of a data source entry for SQLServer. For more detailed information, see the DataDirect Connect JDBC User's Guide and Reference.
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="MerantDS"
    location="jdbc/MerantCoreSSDS"
    xa-location="jdbc/xa/MerantSSXADS"
    ejb-location="jdbc/MerantSSDS"
    connection-driver="com.merant.datadirect.jdbc.sqlserver.SQLServerDriver"
    username="test"
    password="secret"
    url="jdbc:sqlserver//hostname:port;User=test;Password=secret"
    inactivity-timeout="30"
    />
    For a DB2 database, here is a data source configuration sample:
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="MerantDS"
    location="jdbc/MerantDB2DS"
    xa-location="jdbc/xa/MerantDB2XADS"
    ejb-location="jdbc/MerantDB2DS"
    connection-driver="com.merant.datadirect.jdbc.db2.DB2Driver"
    username="test"
    password="secret"
    url="jdbc:sqlserver//hostname:port;LocationName=jdbc;CollectionId=default;
    inactivity-timeout="30"
    />
    For a Sybase database, here is a data source configuration sample:
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="MerantDS"
    location="jdbc/MerantCoreSybaseDS"
    xa-location="jdbc/xa/MerantSybaseXADS"
    ejb-location="jdbc/MerantSybaseDS"
    connection-driver="com.merant.datadirect.jdbc.sybase.SybaseDriver"
    username="test"
    password="secret"
    url="jdbc:sqlserver//hostname:port;User=test;Password=secret"
    inactivity-timeout="30"
    />
    please link: http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/a97690/ds3.htm#100612

  • Help installing new JDBC driver on LINUX

    Hello,
    Today, I downloaded the new SQL Server 2005 JDBC Driver onto
    my Linux Server. The path to the driver's .jar file is
    /root/sqljdbc_1.0/enu/sqljdbc.jar. I placed that path in my CF
    Adminstrator "Java and JVM" page's Class Path field. I restarted
    the app server but each time I try to establish a dsn connection I
    keep getting this error. (note: I have dsn's set up already to this
    instance of SQL Server 2005 so the communicatio is there but I
    would prefer to use this new driver)
    Connection verification failed for data source: dsnTestDB
    java.sql.SQLException: No suitable driver available for
    dsnTestDB, please check the driver setting in resources file,
    error: null
    The root cause was that: java.sql.SQLException: No suitable
    driver available for dsnTestDB please check the driver setting in
    resources file, error: null
    Any help would be greatly appreciated.
    Thanks,
    mdg1
    Houston, TX

    Try placing the jar file in the
    {cfmx-root}/runtime/servers/lib (create if not already there)
    directory if you have the server install or the
    {jrun-root}/servers/lib directory if you have the multiserver or
    j2ee install on JRun. Restart the Coldfusion applicatioin server.
    Ted Zimmerman

  • How to install Oracle ODBC driver...?

    TOM,
    Presently, I have oracle client version. But there no Oracle ODBC driver in my PC. But, I want to install only Oracle ODBC driver in my PC for ODBC Connectivity purpose.
    How to install & where can get the source?

    I found out the real answer!!!
    On another thread there was a link to the client 10g installation. I download that 480Meg monster. Unzipped the package and launced the setup.exe.
    You can then install just the ODBC using the custom option. But, it will not install the tnsnames.ora file. If you have ever done this from a VB app, copy the tsnnames.ora over to the \network\admin folder. It's usually under the oracle\product\client\10.0.2\ folder. Once installed you can launch the ODBC administer either from the link Oracle installs or from the control panel.
    Next, you need to make sure the folders where the .dll file is readable to the iis. Change the folder to add whatever permission group you use for iis (I happen to have setup a local users group {machinename\users}. Add them to the entire folder structure (check the embedded folders to ensure they are readable).
    While setting up the ODBC, the TSN names will now be listed from the tsnnames.ora file (if properly located). To make the connection work, the userid should be 'userid;pwd=password'. Otherwise the connection failed for me.
    Now, if your connection works okay from the odbc test connection, it will probably fail if accessing through iis (like from a .asp page). There are environment path variables that need to be set. Reboot the server for them to get set. Otherwise you will get a ODBC driver can not be loaded do to system error 1114 message.

  • How to update oracle jdbc driver to 11.1.0.7.0 JDBC Drivers

    HI,
    I got a jdbc exception *" java.lang.ArrayIndexOutOfBoundsException "*.
    I have known that it is a Oracle JDBC bug and Oracle BUG number is BUG-6396242.
    The problem is too many rows per database transaction and it is fixed at version 11.1.0.7 Oracle JDBC Drivers.
    Here is the 11.1.0.7 Oracle JDBC Driver Readme.
    http://www.oracle.com/technetwork/database/enterprise-edition/111070-readme-083278.html
    and the download
    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-111060-084321.html
    My question is :
    *1.How to update oracle jdbc drivers with those downloads ?*
    (ps. I have replaced ojdbc5_g.jar, ojdbc5.jar, ojdbc6_g.jar, ojdbc6_g.jar in $ORACLE/jdbc, but it did'nt work. )
    *2.My Oracle version is 11.1.0.6.0, will it be OK if only update the JDBC driver?*
    *3.Do I need to update the jdbc driver where my program runs on the client side ?*
    Thanks for answers~ :)

    Upgrade your database version to 11.1.0.7.
    Installation docs are included with all patches and upgrades.

  • How to Include Oracle JDBC Driver

    Hi Experts,
    We have a requirement to access the database  through Java Code. We are using NWDS. But we are n't able to find a clue, how to add the driver to the project. This option was there in Eclipse, if I remember correctly.
    We are using NWDS for the first time. Could any one please give a clue, if we need to do the same in a different way.
    Regards,
    SS

    Hi Vijay,
    Thanks for the reply. But we need a stand alone program to run at the command prompt(of SAP server), and the sample code is as follows.
    package abc;
    import java.sql.Driver;
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    * @author SahuS
    * To change the template for this generated type comment go to
    * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    public class InsertData {
         public static void main(String[] args) throws SQLException {
              Statement mystat = null;
              Connection conn = null;
              try
                     // Step 1: Load the JDBC driver.
                     Class.forName("oracle.jdbc.driver.OracleDriver");
                     // Step 2: Establish the connection to the database.
                       conn = DriverManager.getConnection(
                                       "jdbc:oracle:thin:@SERVERNAME:1527:SXI",       // URL
                                        "SAPSXIDB",       // username
                                         "PASSWORD"        // password
                         mystat = conn.createStatement();
                        ResultSet rs = mystat.executeQuery("select * from sapsxidb.zemp_1;");
                        while (rs.next()) {
                        System.out.println(
                        rs.getInt(1) +      // first column
                        "\t" +              // the horizontal tab
                        rs.getString(2)     // second column
                        mystat.close();
                        conn.close();                           
                   catch (Exception e)
                     System.err.println("Got an exception! ");
                     System.err.println(e.getMessage());
                   finally{
    As, we could not get the option to import the Oracle JDBC Driver, we are getting exception
    Got an exception!
    oracle.jdbc.driver.OracleDriver
    So, any clue, how we can import the driver in NWDS and use it?
    Regards,
    SS

  • SQLDeveloper 3.1 EA3 -- error installing JTDS JDBC Driver for Microsoft SQL

    After installing sqldeveloper64-3.1.06.82-no-jre.zip I get an error when trying to add the "JTDS JDBC Driver for Microsoft SQL Server" extension.
    The error returned is an invalid URL.
    The URL is http://download-llnw.oracle.com/otn-pub/sqldeveloper/oracle.sqldeveloper.thirdparty.drivers.sqlserver.58.17.zip

    Hi Chris,
    A bug was logged for this a few days ago:
    Bug 13547400 - CHECK UPDATES FAILS DUE TO SERVER RETURNED HTTP RESPONSE CODE: 400
    This is similar to another bug which has already been fixed (not a product bug, just a bad URL in an OTN web page):
    Bug 13530787 - 3.1 EA2: FORUM: CHECK FOR UPDATE HAS BAD URL FOR CVS
    3.1EA2 Sqldeveloper Updates Fail to install
    So I imagine yours will get fixed soon.
    Regards,
    Gary
    SQL Developer Team

  • How to install Vista display driver on my Satellite M55?

    Hello
    I have Windows Vista on my laptop Satellite M55 but I cannot instal my display driver :(
    How can I install display driver on Vista?
    Vista knows Mobile Intel(R) 915GM/GMS/910GML Express Chipset Family (Microsoft Corporation - XDDM)
    I wanna instal my graphic card on Vista OS
    Pleas help me
    Thnx

    Hi!
    Sorry but you will not get drivers for this Intel chipset and Vista.
    I searched on the Toshiba and Intel website and there are no drivers for Vista available. So must use Windows XP, there is no support or drivers for this chipset and Vista.
    Bye

Maybe you are looking for

  • Connection timeout with Apple WiFi devices

    Ok, here's the scenario. The important thing to remember is that all was working well, as happy as 'larry the lamb'. Being that I was running Snow Leopard on my MacBook Pro 8,3 while accessing the internet through my iPhone 4 using it's Personal Hots

  • How remove Special stock indicator for dialog in PO componet overview

    Hi I am creating production order with reference to the sales order (MTO) after creating the production order in component overview special stock indicator is default value is u20181u2019, plz any one suggest How remove Special stock indicator for di

  • Infinity Connection at EH4 1HW

    I am moving into a new property in EH41HW but when I try to order Infinity it says it is not available.i am less than 100 yards fom cabinet 9 which is attached to the DEAN exchange. Can anyone shed any light on this please? Cabinet 9 is fibre enabled

  • Satellite C850 - Why does Flash Player give me choppy videos?

    Hi, I have the Satellite C850-1MD, PSCBWE, Windows 8.1 64-bit. I have two problems. A. When I use Flash Player for streaming videos it gives me choppy playback. It *doesn't matter* if I use lower quality videos because it chops even though I use the

  • My iTunes library wont finish library update. How can I fix this?

    The update begins, gets about an inch of green on the status/update bar (itunes helper) and then itunes freezes. The freeze slows down my whole system dramatically. It is a system wide error. I have reinstalled itunes x 3.