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

Similar Messages

  • 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

  • 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.

  • 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

  • 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'

  • 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

  • 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.)

  • 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

  • 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.

  • Sun.jdbc.JdbcOdbcDriver ClassNotFound

    This is a double post sorry, but I must have miss-clicked the wrong forum when posting originally.
    sun.jdbc.JdbcOdbcDriver ClassNotFoundException
    I'm getting class not found exception and I cannot work out why, code is below.
    import java.sql.*; public class Main {     public static void main(String[] args)     {                 try         {             Connection c = Connect.openDatabase             ("jdbc:mysql://localhost/booksdb:3306", "root", "dbsd202");             Statement statement = c.createStatement();             ResultSet rs = statement.executeQuery("Select * from titles");                         while (rs.next())             {                 System.out.printf("%s\t%s\t%s\n",                 rs.getObject("title"), rs.getObject(1));             }         }         catch (SQLException e)         {             e.printStackTrace();         }      } } class Connect {     static Connection conn;     static Connection openDatabase(String url,String user,String pw)     {         try         {             Class.forName("sun.jdbc.JdbcOdbcDriver");             conn = DriverManager.getConnection(url,user,pw);         }         catch(Exception e)         {             System.out.printf("%s\n", e);             conn = null;         }         return conn;     } }

    Darryl Burke wrote:
    G-Unit wrote:
    Never mind solved.And you will share the solution with the community, won't you?
    dbOf course :)
    The class name cannot be found because "sun.jdbc.JdbcOdbcDriver" does not exist.
    The correct class name is "sun.jdbc.odbc.JdbcOdbcDriver".
    The way I found that out was actually searching through the java source code for the class, and I'm assuming that is correct as when I changed it I started getting another error: "java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/booksdb:3306
    Exception in thread "main" java.lang.NullPointerException
         at sql.Main.main(Main.java:26)"

  • JDBC to ODBC - JdbcOdbcDriver

    Hi;
    What am I doing wrong and how should I correct it?
    I understand that class "Class" is in package java.lang and J2SDK comes with the JDBC-to-ODBC-bridge database driver to allow any Java program to access any ODBC data source. When I code the following
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")
    I get SQLException runtime error:
    [Microsoft][ODBC Driver Manager]Data source name not found and no default driver specified.

    check your datasource name... i think you probably
    defined it yet....
    Yes,
    In other words, go to control panel, ODBC data sources (or Administrative Tools), and make sure you have an ODBC connection pointed at your database. Make sure you've spelled the ODBC name correctly in your code.
    The code you provide is not where the problem is.

  • Problem in building JDBC ODBC connection with my stand alone Project.

    Hello Everyone!
    I gave the following command in order to create JAR file:
    C:\app>jar cvfm MyJar.jar Manifest.txt .
    and the Manifest file contains the code: Main - Class: Login
    My Manifest File and the .class codes and the JAR file which is created successfully by the above command are in the same folder "app" and then I run the project both at command prompt by the command : C:\app>java -jar MyJar.jar
    and by double clicking the JAR file. My project is running successfully but, I am using JDBC - ODBC Driver in my project and I want to let this project run in any other computer system. So, any other user who is unknown to the Driver used and Database used in my project can't be able to run my project if the specified driver is not installed in his machine and also there is a bridge of ODBC Data Source (from control panel-- Administrative Tools-- Data Sources(ODBC) )from which Driver is selected and the Database is specified.
    In order to test my application, I had removed the data source name from the Control Panel's Data Sources (ODBC) properties' window. Then I run my project then the following error msg is shown in command prompt:
    C:\app>java -jar MyJar.jar
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
    at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3028)
    at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:3
    23)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:193)
    at Login.<init>(Login.java:37)
    at Login.main(Login.java:364)
    Error Trace in getConnection() : [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    So, I have a doubt at this point that how a user is able to configure this bridge in order to run my application who is unknown to my project's back-hand? As JRE is essential to run my project so, I have decided to give setup of JRE with my project's CD, may the JDBC - ODBC Driver providing to the user with my application setup solve this problem ?
    Please help me to solve my problem.

    M.V.Asolkar wrote:
    Please please help me.Lets presume hypothetically that the jTDS driver won't work with 2000. It might or might not.
    However the fact remains that your ODBC driver is not working.
    So the first step is to stop trying to run your full application. Instead you create a very simple console application that does nothing but connect to the database.
    Problems that usually occur from that would be.
    1. The connection string is not correct for MS SQL Server.
    2. The connection information for the database is not correct
    3. The database (nothing to do with java) is not configured to accept connections.

Maybe you are looking for