Do I need to download sun.jdbc.odbc.JdbcOdbcDriver ??

Do I need to download sun.jdbc.odbc.JdbcOdbcDriver ??
Thank you in advance.

The JDBC/ODBC bridge comes with the JDK/JRE, at least since 1.2, I don't know about 1.1.
Col

Similar Messages

  • What do I need to use sun.jdbc.odbc.jdbcOdbcDriver

    hi there
    what do I need to use sun.jdbc.odbc.jdbcOdbcDriver to access MS Access database?
    String sourceURL = "jdbc:odbc:mysource";
    String sqlQuery = "select ComsumerAccountNumber from EDS5";
    //getting a connection
    try {
    Class.forName(driverName);
    Connection databaseConnection = DriverManager.getConnection(sourceURL);
    Statement statement = databaseConnection.createStatement();
    ResultSet rs = statement.executeQuery(sqlQuery);
    while(rs.next()){
    ...some code to do with the results
    catch (ClassNotFoundException cnfe) {
    System.err.println(cnfe.getMessage());
    catch (SQLException sqle) {
    System.err.println(sqle.getMessage());}
    I got error and caught it in catch( classnotfoundexception). no driver. is this the correct way to use a driver. I have created a data source.

    make sure the driverName is "sun.jdbc.odbc.JdbcOdbcDriver"
    I noticed you typed in your message "sun.jdbc.odbc.jdbcOdbcDriver" with a lowercase 'j'

  • Where can i download (free) sun.jdbc.odbc.JdbcOdbcDriver?

    where can i download (free) sun.jdbc.odbc.JdbcOdbcDriver?... could u please give me the downlaod path...thanks...thanks million
    mag

    What if that code indicates you don't have it? i
    keep getting a ClassNotFound error for
    sun.jdbc.odbc.JdbcOdbcDriver. i can't d/l the JDK
    from Sun, i'm on OS X; i have downloaded it from
    Apple. i can't find the class anywhere, nor anywhere
    online. ODBC (not java) requires drivers which are OS specific. So it doesn't matter if you have the JDBC driver if you can't find the ODBC driver for the database that you want.
    i thought i was supposed to be able to code
    Java on OS X just fine?JDBC works. That is part of java.
    Drivers are not part of java. They are separate products.
    I suspect that, for example, if you want to connect to Oracle and you get the type 4 drivers from Oracle that they will work just fine on that OS.
    You might find that for the database that you are using that there is no driver (explicitly) for that OS though.

  • The driver: sun.jdbc.odbc.JdbcOdbcDriver could not be loaded with jws

    Hi,
    When I execute my executable jar file, there is no problem but when I open my .jnlp with web start, I obtain my main frame but the queries don't work.
    I have the error message below :
    Java Web Start 1.2 Console, d�marr�e Fri Apr 25 14:55:59 CEST 2003
    Environnement d'ex�cution Java 2 : version 1.3.1 par Sun Microsystems Inc.
    See com.borland.dx.dataset.DataSetException error code: BASE+83
    com.borland.dx.dataset.DataSetException: The driver: sun.jdbc.odbc.JdbcOdbcDriver could not be loaded. This could be a problem with the driver itself, or that the driver is not found on the classpath.
         at com.borland.dx.dataset.DataSetException.a(Unknown Source)
         at com.borland.dx.dataset.DataSetException.driverNotLoadedAtRuntime(Unknown Source)
    Anyone can help me please?

    Almost certainly, you need to include the JAR file that contains the class in question as a resource in your JNLP. My personal preference for this kind of thing is to have an entry that actually points to another JNLP for the driver (database, e-mail, whatever you need).
    In general, the whole application has to be packaged so that JWS is aware of all the pieces (other than the JRE)--one other thing I've done in some cases is put the driver JAR's into the jre/lib/ext directory.
    HTH,
    J M Craig

  • Use of sun.jdbc.odbc.JdbcOdbcDriver

    Hi, I'm starting to work with Java and I'm trying to connect to a SQL Server 2000 database using "sun.jdbc.odbc.JdbcOdbcDriver" driver but when I try to make the connection I get this error:
    "java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    Cannot get connection"
    Here is the my code:
    final static private String _driver = "sun.jdbc.odbc.JdbcOdbcDriver";
    final static private String _url = "jdbc:odbc:<databasename>";
    Class.forName(_driver);                    // Load Driver
    c = DriverManager.getConnection(_url, "<user>", "<passwd>");
    } catch (java.lang.ClassNotFoundException e){
    System.out.println(e.toString());
    System.out.println("Cannot find driver class");
    System.exit(1);
    } catch (java.sql.SQLException e) {
    System.out.println(e.toString());          
    System.out.println("Cannot get connection");
    System.exit(1);
    Someone can help me with this ?? I'm stuck !!
    Thanks !!

    Hi, I'm starting to work with Java and I'm trying to
    connect to a SQL Server 2000 database using
    "sun.jdbc.odbc.JdbcOdbcDriver" driver but when I try
    to make the connection I get this error:
    "java.sql.SQLException: [Microsoft][ODBC Driver
    Manager] Data source name not found and no default
    driver specified
    Cannot get connection"
    Here is the my code:
    final static private String _driver =
    "sun.jdbc.odbc.JdbcOdbcDriver";
    final static private String _url =
    "jdbc:odbc:<databasename>"; the DSN that you set up for connecting to your database. is it called <databasename>? somehow i doubt it.

  • The driver: sun.jdbc.odbc.JdbcOdbcDriver could not be loaded with I use jws

    Hi,
    I use Java web start and the problem is that java web start can't be loaded the driver.
    Here is my error message :
    See com.borland.dx.dataset.DataSetException error code: BASE+83
    com.borland.dx.dataset.DataSetException: The driver: sun.jdbc.odbc.JdbcOdbcDriver could not be loaded. This could be a problem with the driver itself, or that the driver is not found on the classpath.
    at com.borland.dx.dataset.DataSetException.a(Unknown Source)
    at com.borland.dx.dataset.DataSetException.driverNotLoadedAtRuntime(Unknown Source)
    at ...
    In my .jnlp I put :
    <resources>
    <j2se version="1.3+" />
    <jar href="ManipulationLigneAS400.jar" /> it's my application
    <jar href="classes12.zip" />
    </resources>
    I don't know what .jar I have to put?
    Someone could help me please?

    Hi,
    see your thread http://forum.java.sun.com/thread.jsp?forum=31&thread=385994
    Ulrich

  • How can i put a file into blob(using sun.jdbc.odbc.JdbcOdbcDriver)

    Hi
    i tried to put a file into blob , but got a problem.....
    My environment:windows 2000pro,JBuilder 5.0 enterprise,oracle 8.1.6,(not install oracle jdbc driver )
    a part of program(my program is very uglily,if anyone want,later i paste it ba....~_~)
    //Statement stmt2=null;
    //Resultset rs2;
    //opa1 is the blob data
    void saveBlobTableToDisk(Connection con) {
    try {
    stmt2=con.createStatement();
    sqlStr2="SELECT * FROM emp3 where id=1004";
    rs2=stmt2.executeQuery(sqlStr2);
    while (rs2.next()) {
    Blob aBlob=rs2.getBlob("opa1");
    i got the exception :
    " null
    java.lang.UnsupportedOperationException
         at sun.jdbc.odbc.JdbcOdbcResultSet.getBlob(JdbcOdbcResultSet.java:4174)
         at test3.Frame1.saveBlobTableToDisk(Frame1.java:48)
         at test3.Frame1.<init>(Frame1.java:26)
         at test3.Application1.<init>(Application1.java:5)
         at test3.Application1.main(Application1.java:8) "
    and the windows pop up a messagebox said that(about) my memory "0x09af007f" could not read, error in javaw.exe .
    Later i used (ResultSet)getBinaryStream() to solve it. but getBinaryStream() only return a InputStream,so that i can make blob to a file,but i can't make a file to blob using jdbc.....
    I am very stupid that installing sun java, oracle jdbc driver etc....(because i must set a lot of thing such as classpath,java_home etc), Can i only use JBuilder to do that ?
    Or i must install oracle jdbc driver ?
    Thanks.

    My guess here is that Sun's JDBC-ODBC bridge doesn't handle the BLOB datatype. Most ODBC drivers don't support that datatype, so I wouldn't expect the bridge to.
    Is there a reason that you can't use the Oracle driver?
    Justin

  • Installing sun.jdbc.odbc.JdbcOdbcDriver

    Hi, how do you install this driver?

    a DSN is a database source name correct? How do you
    make a System DSN? I think this might solve the
    problem as i found someone else with the same problem
    with me and after someone suggested that there was no
    response.No.
    DSN is a Data Source Name.
    A data source is an ODBC construct that includes the path etc. to the database in question.
    What you are putting in is just the name of the database which is not the same at all.
    If you don't want or don't know how to set up a DSN you can use what is called a dynamic DSN in which you specify the database.
    Look at the first reply in this thread.
    http://forum.java.sun.com/thread.jspa?forumID=48&threadID=440387

  • How do I get the SUN jdbc-odbc bridge to work?

    Hi,
    I'm trying to us the SUN 1.2 jdbc-odbc bridge on Oracle 8.
    I have installed the ODBC driver from www.intersolv.com
    (Merant) and have successfully tested it.
    I have SUN 1.2 installed and verified that
    the sun JdbdOdbcDriver is in my CLASSPATH.
    My driver path is:
    sun.jdbc.odbc.JdbcOdbcDriver
    My url is
    jdbc:odbc:Oracle8
    my odbc.ini is correct, and my ODBCINI is set.
    when I try to connect I get "No suitable driver".
    The SUN documentation indicates this error means
    my shared libraries aren't correct, but I have
    verified my ODBC setup with a odbc demo app.
    Any suggestions on how to form my url?
    Has anyone used the bridge on Solaris?
    null

    The display is just too dim.  I tried the brightness and backlight settings and these do not work.  This has been like this since I bought it.  Never bothered to deal with it before and just made do with reading a very dim menu.

  • Unable to load jdbc.odbc.JdbcOdbcDriver.

    Hi all,
    The following lines of codes produced error message: "Unable to load class jdbc.odbc.JdbcOdbcDriver":
    import java.sql.*;
    try {
       Class.forName("jdbc.odbc.JdbcOdbcDriver");
       Connection connection = DriverManager.getConnection("DatabaseName", "user", "password");
       PreparedStatement getRecord = connection.prepareStatement("select * from TableName where empNo = ?");
       getRecord.setString(1, empNoValue); // empNoValue is just a string value.
       ResultSet result = getRecord.executeQuery();
       while(result.next()) {
    catch(Exception ex) {
       System.out.println(ex.getMessage());
    }**I thought it had to do with the configuration of my ODBC Data Source but not sure.
    Please help!!!
    Thanks in advance,
    Tom

    Yes, you must make a reference to the database in you
    windows DNS odbc panel (settings - controlpanel -
    odbc32bit....). Also, access doesn't require a user
    and password... unless you made your database this
    way. You can just leave those strings as "". Do you
    have the J2EE extensions?(1) I did make a reference to the database
    (2) I set up a user and password for this db though.
    (3) What do you mean "J2EE" extension? (I guess the answer is No)
    ** Is the problem due to User DNS instead of System DNS. I don't have access to the System DNS. However, this is less likely the case because I've done this before (and on the same system.)

  • Need to download Sun Update Connection - Enterprise

    Where would I download the Sun Update Connection - Enterprise 1.x .tgz file?

    You can download it using this https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=SunUCE-OTH-G-F@CDS-CDS_SMI ]
    In case you do not already have a license you will need to contact Sales. See http://www.sun.com/service/sunconnection/get.jsp for more information.

  • Sun JDBC-ODBC Bridge Driver

    I just starting looking into using JDeveloper 3.1. I cannot successfully use a connection to anything other than an Oracle database. I have a small sample that successfully connects to and uses an Oracle instance; however, trying to use JDBC to use a local Sybase Adaptive Server Anywhere database fails. The Test Connection works but I do not see any tables, views, etc. when creating Business Components. Furthermore, I cannot see the structures of the tables in the Database Browser for the JDBC conenctions. Does anyone have any idea what's wrong?
    TIA,
    Mark DeRosa

    Hi Jeff,
    You can try to:
    - start an ODI agent in verbose mode 5 and redirect its output to a log file -> >agent.bat -v=5 > log.txt
    - start your custom reverse-engineering using this agent and the RKM Jython.
    You should get plenty of information in that log file.
    Thanks,
    Julien

  • URGENT: Error:  Failed to Load JDBC/ODBC Driver

    I have created a database in Access and created user interface for it. Whenever I run the program from DOS (i.e java CarRental) the program begins but when I try to add a customer or add a vehicle I get the error java.lang.ClassNotFoundException: com.ms.jdbc.odbc.JdbcOdbcDriver.
    However, if I run it directly from MVisual J++ 6 it connects to the database fine. I have installed J2SDK 1_4 on my computer. Should I make changes to the following code?
    String url = "jdbc:odbc:CarRental";
                   try{
         Class.forName( "com.ms.jdbc.odbc.JdbcOdbcDriver" );
         connection = DriverManager.getConnection(url);
    Since I downloaded J2SDK does it need to be "sun.jdbc.odbc.JdbcOdbcDriver"?
    Please help- time is running thin!
    Thanks
    Angie

    The correct classname for the JDBC:ODBC bridge is
    sun.jdbc.odbc.JdbcOdbcDriver
    Thomas

  • Problems with sun's jdbc:odbc bridge under Tomcat 4.0

    I keep getting this error when I try to access through jdbc:odbc sun's drive:
    java.sql.Exception: [Microsoft][Administrador de controladores ODBC] No se encuentra el nomb
    re del origen de datos y no se especific� ning�n controlador predeterminado
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
    at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2488)
    at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:3
    17)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:160)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    Translating the local spanish message, should be something like: "Can't find data source and no default driver defined."
    I don't get this error if i access through the same driver but not on web server Tomcat 4.0.1. And I don't get this error even under Tomcat with other jdbc drivers (mysql for example).
    Someone knows what is happening here?
    I would apreciate some help.
    Thank you.

    If you're running on Windows, you need to create an ODBC datasource to connect to.
    To accomplish this, you need to go to Start >>> Control Panel >> Administrative Tools >> Data Sources (ODBC),
    2. On the User DSN tab, click add
    3. give it a name, this is the name you will use in the connection string. jdbc:odbc:<name>
    4.Click Select, then find your mdb file, or other database file.
    5. click Ok.

  • Silly jdbc.odbc question

    Hi,
    I am trying to connect to a database with jdbc.odbc.
    What do I put in my classpath? Do I have to download the jdbc.odbc driver?
    I'm missing something stupid I know!
    Thanks,
    VB

    VB -
    you dont need to download the jdbc-odbc driver, as it comes packaged with the sdk. i think its in $JAVA_HOME/jre/rt.jar and is automatically in your classpath. You should be able to do a:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    to load the driver into memory. you can then use the java.sql.DriverManager to obtain your connection:
    DriverManager.getConnection( dbConnString, dbUser, dbPass);
    where your connect string looks something like:
    "jdbc:odbc:<dsn>" (i.e. "jdbc:odbc:fooDB").
    you'll need to create a system dsn on your windows machine, or follow whatever odbc configuration instructions if on a different os platform.
    i hope this helps.. been a long time since ive used the odbc bridge. you should probably try and use a vendor supplied driver pure java driver. this gets rid of the need for client specific configuration steps.
    .

Maybe you are looking for