XConnection and database drivers

Having trouble installing Oxygen? Got a bug to report? Post it all here.
dberkowicz
Posts: 3
Joined: Sun May 02, 2004 2:30 am

XConnection and database drivers

Post 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.
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Post 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.
dberkowicz
Posts: 3
Joined: Sun May 02, 2004 2:30 am

XConnection

Post by dberkowicz »

Thanks; that is excellent information.
David.
Post Reply