Adam Williams wrote: >I have the RedHat package postgresql-jdbc-7.1.3-2 (this is RedHat 7.2) >which provides: > >/usr/share/pgsql/jdbc7.0-1.1.jar >/usr/share/pgsql/jdbc7.1-1.2.jar > >I run > >java -jar lib/xmlBlaster.jar -cp /usr/share/pgsql/jdbc7.1-1.2.jar > try this:
java -cp lib/xmlBlaster.jar:/usr/share/pgsql/jdbc7.1-1.2.jar org.xmlBlaster.Main and all is fine. When using the -jar option the "-cp" is ignored. Marcel > >with the following in my config file > >JdbcDriver.drivers=sun.jdbc.odbc.JdbcOdbcDriver,ORG.as220.tinySQL.dbfFileDriver,ORG.postgresql.Driver > >but always the driver fails to initialize - > >. . . >[Sep 26, 2002 6:29:17 PM INFO PluginManagerBase] Plugin >'org.xmlBlaster.protocol.jdbc.JdbcDriver' successfully initialized. >[Sep 26, 2002 6:29:20 PM INFO JdbcDriver-/node/http:127.0.0.1:3412] >Jdbc driver 'sun.jdbc.odbc.JdbcOdbcDriver' loaded. >[Sep 26, 2002 6:29:20 PM INFO JdbcDriver-/node/http:127.0.0.1:3412] >Jdbc driver 'ORG.as220.tinySQL.dbfFileDriver' loaded. >[Sep 26, 2002 6:29:20 PM WARN JdbcDriver-/node/http:127.0.0.1:3412] >Couldn't initialize driver <ORG.postgresql.Driver>, please check your >CLASSPATH >[Sep 26, 2002 6:29:20 PM INFO PluginManagerBase] Plugin >'org.xmlBlaster.protocol.rmi.RmiDriver' successfully initialized >. . . > >I have tried org.postgresql.Driver (which works with the Data Vision >Java application), postgresql.Driver, and ORG.postgresql.Driver all with >the same results. > >I'm not a Java developer so I may be missing something obvious, but any >pointers would be appreciated. > >My Java package is IBMJava2-SDK-1.3-9.0 > >I start data vision with - > >classpath="$CLASSPATH":DataVision.jar:MinML.jar:jcalendar.jar:/usr/share/pgsql/jdbc7.1-1.2.jar >java -classpath $classpath jimm.datavision.DataVision $* > >and it can connect to postgresql. > > > > >
