Page 1 of 1

XConnection and database drivers

Posted: Sun May 02, 2004 2:37 am
by dberkowicz
I want to be able to initiate a database connection from within a stylesheet using the org.apache.xalan.xslt.XConnection class. Can I do this by including the database driver .jar file in the classpath? This is under os X (Panther).
I know this question sounds obvious but I have not been able to get this to work; and I wondered if the oxygen process is running under an account which does not have the .jar file in its CLASSPATH variable.
Thanks David.

Posted: Mon May 03, 2004 12:09 pm
by Dan
Oxygen loads all the jars that are in the same directory as the file oxygen.jar. So you have to copy the driver into the directory:

oxygen.app/Contents/Resources/Java

Use "Show Package Contents" menu option from the finder in order to open the "Contents" directory.

XConnection

Posted: Wed May 05, 2004 5:23 am
by dberkowicz
Thanks; that is excellent information.
David.