jdbc driver
Monday, 26 December 2011 · 3 messages
FB
Francesco Beretta26 Dec 2011 16:22 #
Hi,
I'm trying to initialize a connection to a postgresql database :
Query:
sql:init("org.postgresql.Driver")
Error: [FOSQ0007] Could not initialize specified driver:
'org.postgresql.Driver'
What is the right syntax to initialize the driver?
Could you provide me with an exemple ?
Where should I put the jdbc driver jar ?
Many thanks
Francesco BerettaCG
Christian Grün26 Dec 2011 23:26 #
Dear Francesco,
did you include the PostgreSQL driver in your Java classpath?
Christian
Quoted text · Francesco Beretta · 25 lines
On Mon, Dec 26, 2011 at 4:22 PM, Francesco Beretta <Francesco.Beretta at ish-lyon.cnrs.fr> wrote: > Hi, > > I'm trying to initialize a connection to a postgresql database : > > > Query: sql:init("org.postgresql.Driver") > Error: [FOSQ0007] Could not initialize specified driver: > 'org.postgresql.Driver' > > > > What is the right syntax to initialize the driver? > Could you provide me with an exemple ? > Where should I put the jdbc driver jar ? > > > Many thanks > > Francesco Beretta > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
RS
Rositsa Shadura26 Dec 2011 23:36 #
Dear Francesco,
just as an addition to Christian's answer: you can put the jar containing your driver class in the lib directory of the BaseX distribution. Then when you start your BaseX using the bat or shell script, the jar will be added to the classpath.
Regards,
Rositsa
Quoted text · Christian Grün · 38 lines
On Tue, 27 Dec 2011 00:26:08 +0200, Christian Grün <christian.gruen at gmail.com> wrote: > Dear Francesco, > > did you include the PostgreSQL driver in your Java classpath? > > Christian > ___________________________ > > On Mon, Dec 26, 2011 at 4:22 PM, Francesco Beretta > <Francesco.Beretta at ish-lyon.cnrs.fr> wrote: >> Hi, >> >> I'm trying to initialize a connection to a postgresql database : >> >> >> Query: sql:init("org.postgresql.Driver") >> Error: [FOSQ0007] Could not initialize specified driver: >> 'org.postgresql.Driver' >> >> >> >> What is the right syntax to initialize the driver? >> Could you provide me with an exemple ? >> Where should I put the jdbc driver jar ? >> >> >> Many thanks >> >> Francesco Beretta >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
Written for BaseX 7.0. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery