i have written a mailet that accesses a postgresql database.

i modified the james bin/run.bat file to include the jdbc jar file and
the jdbc.drivers setting:

  "%PHOENIX_JAVACMD%" -cp C:/Java/JDBC/postgresql-8.3-603.jdbc4.jar
-Djdbc.drivers=org.postgresql.Driver ...

but i get the exception:

  java.sql.SQLException: No suitable driver found for
jdbc:postgresql://databasehost:5432/testdatabase

when i try to access the database.

how do i add additional classes, jars, etc. to the classpath so that i
can access the jdbc jar?

Rob

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to