Re: Why the JDBC driver can't be loaded ?
Posted in 1998
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 !