... not suitable driver: what's????

I installed the Postgresql(version 6.5) under Redhat Linux 6.1;
In the System Jdk1.2.2 are also installed. When I run a java program with a connection to a database, I receive the error msg:"Java.sqlException: not suitable driver"; I think it means that jdbc driver is not correctly installed; I would like to know how to install the jdbc6.5-1.2.
Thanks

Hi,
I use postgress all the time with no hassels.
Few questions have you added the jar file to your classpath?
What class name are you using int the Class.forName call.
What url are you trying to access.
Have you run the createdb from the command line to add a database to Postgresql.
Travis

Similar Messages

  • SQL Exception : Not Suitable driver

    - Server name n/a
    - Filename n/a
    - Date/Time
    - Browser + Version : IE5
    - O/S + Version : win98
    Error Msg : "SQLException Not suitable driver
    at DriverManger.getConnection(DriverManger.java:532"
    at DriverManger.getConnection(DriverManger.java:171"
    I try to access oracle database from Java. There is a runtime error coming.
    I do have a ODBC Driver in the control panel - odbc - drivers.
    I try to replace class.forName by registerManager then it gives
    UnsatisfiedLinkerror
    OCIDBAAccess.make_c_state :NAtive method
    Oracledriver.getConnectionInstance(Oracledriver.java)
    Such & such error..
    I could not find any answers from any forums.
    So plz help me what i have to do to clear this error.
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    class great
    public static void main(String a[]) throws SQLException,IOException
         //String driver = System.getProperties"db.driver");
    //Class.forName("sun.jdbc.odbc.JdbcOdbcDrivers");
         //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Class.forName("oracle.jdbc.driver.OracleDriver");
         Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@newemployee","scott","tiger");
         Statement stmt = conn.createStatement();
         ResultSet rset = stmt.executeQuery("select eno,ename,zip,hdate from newemployee");
         while (rset.next ())
              System.out.println (rset.getString (1));
         stmt.close();
         conn.close();
    Thanks in Advance
    Sakthy.

    - Server name n/a
    - Filename n/a
    - Date/Time
    - Browser + Version : IE5
    - O/S + Version : win98
    Error Msg : "SQLException Not suitable driver
    at DriverManger.getConnection(DriverManger.java:532"
    at DriverManger.getConnection(DriverManger.java:171"
    I try to access oracle database from Java. There is a runtime error coming.
    I do have a ODBC Driver in the control panel - odbc - drivers.
    I try to replace class.forName by registerManager then it gives
    UnsatisfiedLinkerror
    OCIDBAAccess.make_c_state :NAtive method
    Oracledriver.getConnectionInstance(Oracledriver.java)
    Such & such error..
    I could not find any answers from any forums.
    So plz help me what i have to do to clear this error.
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    class great
    public static void main(String a[]) throws SQLException,IOException
         //String driver = System.getProperties"db.driver");
    //Class.forName("sun.jdbc.odbc.JdbcOdbcDrivers");
         //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Class.forName("oracle.jdbc.driver.OracleDriver");
         Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@newemployee","scott","tiger");
         Statement stmt = conn.createStatement();
         ResultSet rset = stmt.executeQuery("select eno,ename,zip,hdate from newemployee");
         while (rset.next ())
              System.out.println (rset.getString (1));
         stmt.close();
         conn.close();
    Thanks in Advance
    Sakthy.

  • Not Suitable Driver

    Hi everybody!
    I'm trying to connect to an Oracle 8.1.7...
    but I'm getting the error:
    "Not Suitable Driver"
    I'm registering the driver with:
    Class.forName("com.oracle.jdbc.OracleDriver");And making the connection with:
    DriverManager.getConnection("jdbc:oracle:thin:@myhost.com:1521:mysid","user","passwd");Already downloaded the classes12.zip from oracle and place it in my classpath...
    Any suggestions about this error?
    regards,
    -eduardo s.m.

    I got my problem solved...
    just avoid the "com" string when registering the jdbc driver..
    Class.forName("oracle.jdbc.OracleDriver");anyone knows the difference?
    regards,
    -eduardo s.m.

  • SQLException caught: No suitable driver

    hi there,
    i'm having trouble to access my SQL database. whenever i run it using my tomcat 4.1 it states: SQLException caught: No suitable driver
    what does it mean? i have check my driver it should be fine. is there any drivers available for SQL using the bridge JDBC ODBC? here: prt of my code my code:
    try {
    // Load (and therefore register) the Oracle Driver
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    // Get a Connection to the database
    con = DriverManager.getConnection(
    "jdbc.odbc.testing");
    // Create a Statement object
    stmt = con.createStatement();
    // Execute an SQL query, get a ResultSet
    rs = stmt.executeQuery("SELECT * FROM dba");
    // Display the result set as a list
    out.println("<HTML><HEAD><TITLE>TEXT</TITLE></HEAD>");
    out.println("<BODY>");
    out.println("<UL>");
    while(rs.next()) {
    out.println("<LI>" + rs.getString("text") + " " + rs.getString("numbers"));
    out.println("</UL>");
    out.println("</BODY></HTML>");
    catch(ClassNotFoundException e) {
    out.println("Couldn't load database driver: " + e.getMessage());
    catch(SQLException e) {
    out.println("SQLException caught: " + e.getMessage());
    pls asist.... thnx

    This has nothing to do with j2me... So wrong subforum...
    Probably you did not include the odbc driver jarfile

  • New connection not suitable for needs

    I had total bb installed a few weeks back for my sons online gaming and ever since being installed he has had constant packet loss and dc's meaning that the line is not suitable for what he needs it for. I went ahead and called technical support and they went through the mumble jumble that I expected them to such as check master socket etc...etc.. at the end I was told the problem would be elevated and someone would be in touch, nobody got intouch and I called the cancellation department today only to be told that I'd be charged £400 if I tried to cancel and that the line speed was fine. I tried to explain that the line speed was not the problem but the quality of the line and the constant packet loss and dc's from any form of gaming.
    Anyone any ideas on how I can get my problems through to someone that will actually help me, I refuse to pay £400 to cancel a service that is not working correctly.

    wired or wireless. Plz post your router stats and try a ping test@ pingtest.net posting the results here
    I am no expert. Correct me when I am wrong. Learning is good!

  • When printing photos at my hp 1514n the colors are odd + not suitable. using win7 64bit +lat. driver

    Hi, I' using a hp 1514n for printing photos. It's attached to my Win7 64bit computer. But the colors are not suitable. Printing is in high quality but the coloras are wrong (i.e. instead of a bule sky I get it  turquois).
    all patches installaed and also the lastest drivers. What else can I do?
    The files are ok, because I get the right colors when printign the files at another hp color laser jet with win7 (32 bit)
    Where can I get a suitable icc file?

    I'd use the GutenPrint drivers. They're usually better than the drivers that HP ships, anyway, and the latest version of GutenPrint will work with Leopard while the HP drivers for a printer that old will not. The drivers at <http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/hpijs> also explicitly support the DJ960C. Those drivers are usually written by HP employees, are often superior to the drivers HP uses, and, like the GutenPrint drivers, are free.

  • Final cut is not reading events or projects from my external hard drive, what can I do?

    Final Cut X is not reading events of projects from my external hard drive, what can i do?

    Like this
    Cmd-Shift-4. Drag a box around the area to capture. Screen shot appears on the desktop. Click the camera button in the message reply window.

  • I upgraded my hard drive and my ipod no longer recognizes my computer.  It will not sync. What should I do?

    I upgraded my hard drive and my ipod no longer recognizes my computer.  It will not sync. What should I do?

    - First get iTunes to see the iPod:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows
    - The transfer iTunes purchases to the computer:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - For non-iTunes purchased music you need a third-party program like one of those discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities
    - Connect the iPOd to the computer and make a backup by right clicking on the iPod under Devices in iTunes and select Back Up
    - Restore the iPod from that backup.

  • What's means no suitable driver

    i use beans to connect the ms access 2000,but when i execute the jsp file,it always said no suitable driver.i set odbc driver in system dns.
    i use tomcat 5 and jsdk1.4,i put the jsp files in tomcat-home\webapps\examples\ and the bean file in tomcat-home\webapps\examples\WEB-INF\classes\
    i use different versions of tomcat,but the error always display.
    what;s wrong with my jsp?do i need some configuration of jdbc-odbc?
    pls help me,thanks a lot

    What connection URL are you using?
    I hope it's a DSN-less connection, like this:
    String url = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\path\\to\\your\\AccessDatabase.mdb";Do you have the connection string hard-wired inside the JSPs? Maybe that's your problem. It's a bad idea to do database access in a JSP. Better to have a server-side object that does database interactions and simply sends the results down to the JSP. You've probably got a problem with where the database lives. The database should be on the server, but the JSPs are rendered on the client machine in a browser. - MOD

  • I am not able to delete or write my files to my external hard disk drive what shall i do?

    i am teja i brought a new mac book air here i am not able to write or delete the files that are present in a external hard disk drive what shall i do now to enable required permisions................plz reply me i am new to mac

    I guess your external drive is Windows (NTFS) formattet.
    By default you were only able to read from that drive, as Mac doesent support NTFS write.
    If you want to have read/write access to a NTFS volume you have to use add-in tools like MacFuse or Paragon on your Mac.
    Not having write or delete permissions on the external drive may also preventyou from changing existing files on that drive.
    Right click on the drive in Finder and choose "Information" from the menu will give you more information about the reasons of your problem.
    Lupunus

  • HT3275 2 problems: All files are locked - how to globally unlock on the backup drive? I am backing up large video files 500GB on a 2 TB machine. Time Machine repeatedly copies everything using up all of disk space. I only need 1 copy not, twenty. What to

    2 problems: All files are locked - how to globally unlock on the backup drive? I am backing up large video files 500GB on a 2 TB machine. Time Machine repeatedly copies everything using up all of disk space. I only need 1 copy not, twenty. What to do?

    2 problems: All files are locked - how to globally unlock on the backup drive? I am backing up large video files 500GB on a 2 TB machine. Time Machine repeatedly copies everything using up all of disk space. I only need 1 copy not, twenty. What to do?

  • I can not find a suitable driver for my hp deskjet 1280 for OS X 10.7 Lion (macbook) Please help.

    I can not find a suitable driver for my hp deskjet 1280 for os x 10.7.  Since updating my software the printer will only use basic functions and prints only black and white, how do I enable the printers full capabilities? Thanks!

    Hi,Officially the printer no longer supported on OS X 10.6 or above, therefore the reduced quality due the Generic driver usage:
    http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&task Id=120&prodSeriesId=439162&prodTypeId=18972&prodSeriesId=439162&objectID=c018563 59
    However, you may try the 3rd party HPIJS print drivers which list your printer as supported and will more likely provide you a better qualiity then a Generic driver.
    Be sure to install any of the 3 required downloads and follow the steps to Set Up the printer:
    http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx/hpijs
    Shlomi

  • What a pity...."java.sql.SQLException: No suitable driver"

    I am using win XP, mysql connector J 3.0.15 -ga bin, tomcat 5.0.28 for JSP.
    I am developping a webpage and tries to connect to mysql from JSP.
    I HAVE PUT THE mysql connector J under the ${TOMCAT_DIR}\common\bin and ${TOMCAT_DIR}\webapps\ROOT\WEB-INF\lib.......
    and here is my errors....
    exception
    javax.servlet.ServletException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.test_jsp._jspService(test_jsp.java:84)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
         org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)
         org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159)
         org.apache.jsp.test_jsp._jspx_meth_sql_query_0(test_jsp.java:103)
         org.apache.jsp.test_jsp._jspService(test_jsp.java:58)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    here is my setting of server.sml
    <Resource name="jdbc/mysql"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/mysql">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>100</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>30</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>10000</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>user</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>pwpw</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>com.mysql.jdbc.Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost:3306/info?autoReconnect=true</value>
    </parameter>
    </ResourceParams>
    and a test page:
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <sql:query var="rs" dataSource="jdbc/mysql">
    select * from testdat;
    </sql:query>
    i follow exactly the same as http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html told me how to do ...but i just get that cant find JDBC error...
    I have read many similar cases....but they just type something wrong....
    help!!!thanx

    Hi Sherbir,
    Qs...
    1)where to find those commons-dbcp-1.1.jar, commons-pool-1.1.jar, commons-collections.jar?!
    Where should I put them under the tomcat again?! ${TOMCAT_DIR}\common\bin ?!
    2) I'm not doing conneciton poolings....I jsut wonder why I cant even CONNECT....>_<!
    (it should be just a small problem....and I used to use tomcat 4...i really dont know why)
    3) Why do I still have to import those java.io.*?! um.....
    ps. OK, everyone calls me xonxon...heh.
    THANKS X 1000
    Hi Xonxon,
    U have a funny username !! I'm sure it's not ur real
    name !!
    Anyway, jokes apart, I went thru ur problem. I think u
    r trying to implement Database Connection Pooling. And
    here's the solution to it.
    First make sure u have the Following JARs :
    1) commons-dbcp-1.1.jar
    2) commons-pool-1.1.jar
    3) commons-collections.jar
    Next, U have to add these JARs NOT UNDER
    ${TOMCAT_DIR}\common\bin ... rather under
    $(TOMCAT_HOME)\common\lib. U don't need to put it in
    ${TOMCAT_DIR}\webapps\ROOT\WEB-INF\lib.
    Ur server.xml is configured correctly, but in ur JSP,
    u have to import the following classes...
    <%@ page import="java.io.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="javax.naming.Context" %>
    <%@ page import="javax.naming.InitialContext" %>
    <%@ page import="javax.sql.DataSource" %>
    And u're done.
    Hope this detail is enough to have u jumping
    around...!!
    Do keep me posted.
    Regards
    Sherbir

  • Per Adobe website, a download for Acrobat 9 for Mac is "not available." What alternative does Adobe offer to those who have bought and paid for Acrobat and now have computers without optical drive to install that previously purchased software? Buy a PC? B

    Per Adobe website, a download for Acrobat 9 for Mac is "not available." What alternative does Adobe offer to those who have bought and paid for Acrobat and now have computers without optical drive to install that previously purchased software? Buy a PC? Buy an external CD drive? Is the answer really "too bad"?

    Acrobat 9 for Mac can be downloaded from
    Download Adobe CS5 Free Trials – All Direct Links without Akamai | ProDesignTools
    Follow the Very Important Instructions on that page first BEFORE you click the download link.

  • What is mean: No suitable driver? Thanks!

    Hi, everybody:
    I have a simple java code at below,
    import java.sql.*;
    import oracle.jdbc.*;
    class ... {
         public static void main (...) throws SQLException {
              DriverManager.registerDriver (new oracle.jdbc.OracleDriver ());
              oracle.jdbc.OracleConnection conn = (oracle.jdbc.OracleConnection) DriverManager.getConnection ("jdbc.oracle.thin.@...)
    there is no error when compiled it, but launch the code will prompte one error:
    Exception in thread "main" java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:532)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    if modify the 6th line:
    oracle.jdbc.OracleConnection conn = DriverManager.getConnection (...);
    there is one error message prompts as compile it:
    incompatible types
    found: java.sql.Connection
    required: oracle.jdbc.OracleConnection
    How correct the code, Thanks very much!
    The version of jdk is j2se1.4.2 and the oracle is 9.2.0.

    Hi,
    Your lines of code look quite OK to obtain the connection. I was not able to reproduce your error unless I comment the line for registering the driver.
    i.e if the line is //DriverManager.registerDriver (new oracle.jdbc.OracleDriver ()); then I get the error. Else, the connection is obtained.
    Not sure if it solves your problem.
    As far as the second error is concerned, the error is valid because, you are trying to get an oracle.jdbc.OracleConnection object using java.sql.Connection object. You need to cast the later for them to be compatible.
    Hope that helps.
    Savitha.

Maybe you are looking for

  • Problem with Safari (and other browser) fonts rendering

    Hi, I have a problem since yesterday with the rendering of fonts in all of the browser in my computer: Gmail, Google search and fonts in many other size are rendered BOLD. I don't remember how and when this happened, but it's very annoying specially

  • Can't get Java to to compile programs.

    Ok, here are the things I have done: 1) Downloaded Jsdk 1.3 and installed the package. 2) Set the classpath and path: @ECHO OFF PROMPT $P$G SET PATH=%PATH%;%JAVAHOME%\BIN PATH=c:\windows;c:\windows\COMMAND;C:\JDK1.3\BIN SET CLASSPATH=.;C:\jdk1.3\lib\

  • DIfference b/w expression builder logical column and derived logical column

    Hi Experts, Can anyone tellme the difference between expression builder (when we double click the logical column) of derived logical column and expression builder of logical column( we see this in column mapping of LTS) ?? Thanks in advance.

  • Keywords no longer visible after loading iPhoto 11

    I used to use keywords quite heavily in IP9 but since loading IP11 I can no longer see the keywords displayed alongside my event photos. I have check that keywords option is set, and it is. Anyone got any ideas here or is it a bug in IP11?

  • How to send OAM 11g session/cookie in authorization response?

    Hi All, Is it possible to send OAM 11g session token/cookie in Authorization policy Response as actions? If so, what cookie (name) has to be used for that? Thanks Mahendra.