Re: Why the JDBC driver can't be loaded ?
Posted in 1998
Topics: Installation, Setup & Upgrades, Connectivity: ODBC / JDBC / .NET, Java & JDBC Development
In article <6u0u4g$ies$1@news.xmission.com>, wugangzh@scf-fs.usc.edu wrote: > > > Octav Chiriac wrote: > > > WuGang Zhao wrote: > > >Dear Octav, > > > > > >Thank you for your help. Here is the detail information about my problem. > > > > > >When I try to load informix JDBC driver using > > >Class.forName("com.informix.jdbc.IfxDriver"), a > > >java.lang.ClassNotFoundException was > > >generated. At this time , e.getMessage()="com.informix.jdbc.IfxDriver", > > >e = (java.lang.ClassNotFoundException)0xf40720. In the informix jdbc > > >installation guide, > > >it says I should set CLASSPATH environment variable points to version > > > 1.1.5 or later of the Java Development Kit (JDK). Here is my CLASSPATH > > >environment variable settings. > > > > > >CLASSPATH=".;C:\\VisualCafePDE\\BIN\\COMPONENTS\\SYMBEANS.JAR;C:\\VisualCafePDE\\JAVA \\LIB\\CLASSES.ZIP;C:\\VisualCafePDE\\JAVA\\LIB" > > > > > >Is it right ? > > > > > No, it is not right. > > You should add the path to informix jdbc driver library: > > > > _PATH_WHERE_YOU_HAVE_INSTALLED_INFORMIX_JDBC\\lib\\ifxjdbc.jar > > > > Well, it should work. > > > > Best Regards, > > Octav > > > > -- > > Octav Chiriac Phone: (373) 2 21 20 96 > > NetInfo S.R.L. Fax: (373) 2 21 20 96 > > Chisinau (373) 2 24 00 83 > > Moldova, Republic of mailto:com@netinfo-moldova.com > > I installed the informix jdbc driver in "c:\\informix_jdbc", so i changed the CLASSPATH to "c:\\informix_jdbc\\lib\\ifxjdbc.jar", > but it still doesn't work. What the problem may be ? > Is it because the new jdbc driver is not compatible with the Visual cafe i installed. > The visual cafe version is prefessional development version 2.5a . > > Thanks for your help ! VCafe doesn't use the CLASSPATH setting by default. Read your README notes that came with Cafe. I don't have mine handy as I'm interstate, but IIRC you need to alter the classpath in sc.ini. The details are in the README file, though. I went through this with Oracle's type 4 driver, so it's safe to say that VCafe should work with Informix's once you get the CLASSPATH right. Peter Wiley -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum