logo       

Problem in connecting to database: msg#00311

Subject: Problem in connecting to database
I am completely new user to jdbc.
I am working on Informix Dynamic Server Version 7.31.UC2A database server. I am just trying to connect to the database using the following url.
 
jdbc:informix-direct:// testDB:INFORMIXSERVER=iin_online
 
When I run the program the following error is returned.
 
ERROR : Failed to connect to database Can't load driver java.lang.ClassNotFoundE
xception: com.informix.jdbc.IfxDirectConnection
java.sql.SQLException: Can't load driver java.lang.ClassNotFoundException: com.i
nformix.jdbc.IfxDirectConnection
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Compiled Code)
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Exception.<init>(Exception.java:42)
        at java.sql.SQLException.<init>(SQLException.java:43)
        at com.informix.util.IfxErrMsg.getLocSQLException(IfxErrMsg.java:447)
        at com.informix.jdbc.IfxDriver.connect(Compiled Code)
        at java.sql.DriverManager.getConnection(Compiled Code)
        at java.sql.DriverManager.getConnection(DriverManager.java:137)
        at jdbcTest.main(jdbcTest.java:24)
 
 
And the class file IfxDirectConnection is not in the library path. I am not able to understand why is it asking for that class.
Is this the proper way to get connected to the database when I run my application on the same machine where the database server is running. I would appreciate if sombody can help me in this.
 
Regards
sachi
 
 
 
Sachidananda Karkala
Huandian R&D Building 6B06,
BanTian HUAWEI,
ShenZhen, Guangdong,
China - 518129
Office : +86-755-28787035
Home : +86-755-28767692
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe