pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedJDBC on HP-UX
5+ messages / 3 participants
[nested] [flat]
* JDBC on HP-UX
@ 2000-05-30 09:10 Sondaar, Roelof <roelof.sondaar@scania.com>
0 siblings, 0 replies; 5+ messages in thread
From: Sondaar, Roelof @ 2000-05-30 09:10 UTC (permalink / raw)
To: pgsql-interfaces
Hello Everybody,
If I am in the wrong list, please let me know.
I have a problem to get JDBC running.
I get the following messages:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:103)
at java.sql.DriverManager.getConnection(DriverManager.java:126)
at DBqueryWindow.openDB(DBqueryWindow.java:554)
at DBqueryWindow.actionPerformed(DBqueryWindow.java:260)
at java.awt.Button.processActionEvent(Button.java:256)
at java.awt.Button.processEvent(Button.java:229)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:79)
I downloaded the JDBC drivers from retep.. jdbc6_5-1_1.jar.
I am running PostgreSQL 6.5.3 on hpux10.20.
The CLASSPATH seems OK
(CLASSPATH=.:/opt/java:/home/snlsor/java:/home/snlsor/bin:/opt/java/jdbc/pos
tgresql/jdbc6_5-1_1.jar).
Perhaps someone can shed some light on this.
Best regards,
Roelof
^ permalink raw reply [nested|flat] 5+ messages in thread
* RE: JDBC on HP-UX
@ 2000-05-30 09:33 Peter Mount <petermount@it.maidstone.gov.uk>
2000-05-30 09:39 ` Re: JDBC on HP-UX Gunnar R|nning <gunnar@candleweb.no>
0 siblings, 1 reply; 5+ messages in thread
From: Peter Mount @ 2000-05-30 09:33 UTC (permalink / raw)
To: 'Sondaar, Roelof' <roelof.sondaar@scania.com>; pgsql-interfaces
There's two things that could go wrong here. The first one is the CLASSPATH,
but you have the jar file in there correctly, but did you export CLASSPATH?
If not, the shell won't pass it on to any child processes including java.
The other is the jdbc url. It should begin: jdbc:postgresql: If the url
doesn't match, then thr driver won't recognise it, and you'll get the same
error.
Peter
--
Peter Mount
Enterprise Support
Maidstone Borough Council
Any views stated are my own, and not those of Maidstone Borough Council.
-----Original Message-----
From: Sondaar, Roelof [mailto:roelof.sondaar@scania.com]
Sent: Tuesday, May 30, 2000 10:10 AM
To: 'pgsql-interfaces@postgresql.org'
Subject: [INTERFACES] JDBC on HP-UX
Hello Everybody,
If I am in the wrong list, please let me know.
I have a problem to get JDBC running.
I get the following messages:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:103)
at java.sql.DriverManager.getConnection(DriverManager.java:126)
at DBqueryWindow.openDB(DBqueryWindow.java:554)
at DBqueryWindow.actionPerformed(DBqueryWindow.java:260)
at java.awt.Button.processActionEvent(Button.java:256)
at java.awt.Button.processEvent(Button.java:229)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:79)
I downloaded the JDBC drivers from retep.. jdbc6_5-1_1.jar.
I am running PostgreSQL 6.5.3 on hpux10.20.
The CLASSPATH seems OK
(CLASSPATH=.:/opt/java:/home/snlsor/java:/home/snlsor/bin:/opt/java/jdbc/pos
tgresql/jdbc6_5-1_1.jar).
Perhaps someone can shed some light on this.
Best regards,
Roelof
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: JDBC on HP-UX
2000-05-30 09:33 RE: JDBC on HP-UX Peter Mount <petermount@it.maidstone.gov.uk>
@ 2000-05-30 09:39 ` Gunnar R|nning <gunnar@candleweb.no>
0 siblings, 0 replies; 5+ messages in thread
From: Gunnar R|nning @ 2000-05-30 09:39 UTC (permalink / raw)
To: Peter Mount <petermount@it.maidstone.gov.uk>; +Cc: 'Sondaar, Roelof' <roelof.sondaar@scania.com>; pgsql-interfaces
Peter Mount <petermount@it.maidstone.gov.uk> writes:
> There's two things that could go wrong here. The first one is the CLASSPATH,
> but you have the jar file in there correctly, but did you export CLASSPATH?
> If not, the shell won't pass it on to any child processes including java.
>
> The other is the jdbc url. It should begin: jdbc:postgresql: If the url
> doesn't match, then thr driver won't recognise it, and you'll get the same
> error.
>
Couldn't it also be that he hasn't told the system about the jdbc driver ?
You have to supply the driver as a -Djdbc.drivers argument or load it from
your Java code.
regards,
Gunnar
^ permalink raw reply [nested|flat] 5+ messages in thread
* RE: JDBC on HP-UX
@ 2000-05-30 09:42 Sondaar, Roelof <roelof.sondaar@scania.com>
0 siblings, 0 replies; 5+ messages in thread
From: Sondaar, Roelof @ 2000-05-30 09:42 UTC (permalink / raw)
To: 'Peter Mount' <petermount@it.maidstone.gov.uk>; +Cc: pgsql-interfaces
Hello Peter,
Thank you for your quick response.
You are absolutely right, I had the url wrong.
Thanks again,
Roelof
> -----Original Message-----
> From: Peter Mount [SMTP:petermount@it.maidstone.gov.uk]
> Sent: Tuesday, 30 May, 2000 11:34
> To: 'Sondaar, Roelof'; 'pgsql-interfaces@postgresql.org'
> Subject: RE: [INTERFACES] JDBC on HP-UX
>
> There's two things that could go wrong here. The first one is the
> CLASSPATH,
> but you have the jar file in there correctly, but did you export
> CLASSPATH?
> If not, the shell won't pass it on to any child processes including java.
>
> The other is the jdbc url. It should begin: jdbc:postgresql: If the url
> doesn't match, then thr driver won't recognise it, and you'll get the same
> error.
>
> Peter
>
> --
> Peter Mount
> Enterprise Support
> Maidstone Borough Council
> Any views stated are my own, and not those of Maidstone Borough Council.
>
>
> -----Original Message-----
> From: Sondaar, Roelof [mailto:roelof.sondaar@scania.com]
> Sent: Tuesday, May 30, 2000 10:10 AM
> To: 'pgsql-interfaces@postgresql.org'
> Subject: [INTERFACES] JDBC on HP-UX
>
>
> Hello Everybody,
>
> If I am in the wrong list, please let me know.
>
> I have a problem to get JDBC running.
>
> I get the following messages:
> java.sql.SQLException: No suitable driver
> at java.sql.DriverManager.getConnection(DriverManager.java:103)
> at java.sql.DriverManager.getConnection(DriverManager.java:126)
> at DBqueryWindow.openDB(DBqueryWindow.java:554)
> at DBqueryWindow.actionPerformed(DBqueryWindow.java:260)
> at java.awt.Button.processActionEvent(Button.java:256)
> at java.awt.Button.processEvent(Button.java:229)
> at java.awt.Component.dispatchEventImpl(Compiled Code)
> at java.awt.Component.dispatchEvent(Compiled Code)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:79)
>
> I downloaded the JDBC drivers from retep.. jdbc6_5-1_1.jar.
> I am running PostgreSQL 6.5.3 on hpux10.20.
> The CLASSPATH seems OK
> (CLASSPATH=.:/opt/java:/home/snlsor/java:/home/snlsor/bin:/opt/java/jdbc/p
> os
> tgresql/jdbc6_5-1_1.jar).
>
> Perhaps someone can shed some light on this.
>
> Best regards,
> Roelof
^ permalink raw reply [nested|flat] 5+ messages in thread
* RE: JDBC on HP-UX
@ 2000-05-30 11:15 Peter Mount <petermount@it.maidstone.gov.uk>
0 siblings, 0 replies; 5+ messages in thread
From: Peter Mount @ 2000-05-30 11:15 UTC (permalink / raw)
To: 'Gunnar R|nning' <gunnar@candleweb.no>; Peter Mount <petermount@it.maidstone.gov.uk>; +Cc: 'Sondaar, Roelof' <roelof.sondaar@scania.com>; pgsql-interfaces
That's true, I forgot that one ;-)
Peter
--
Peter Mount
Enterprise Support
Maidstone Borough Council
Any views stated are my own, and not those of Maidstone Borough Council.
-----Original Message-----
From: Gunnar R|nning [mailto:gunnar@candleweb.no]
Sent: Tuesday, May 30, 2000 10:40 AM
To: Peter Mount
Cc: 'Sondaar, Roelof'; 'pgsql-interfaces@postgresql.org'
Subject: Re: [INTERFACES] JDBC on HP-UX
Peter Mount <petermount@it.maidstone.gov.uk> writes:
> There's two things that could go wrong here. The first one is the
CLASSPATH,
> but you have the jar file in there correctly, but did you export
CLASSPATH?
> If not, the shell won't pass it on to any child processes including java.
>
> The other is the jdbc url. It should begin: jdbc:postgresql: If the url
> doesn't match, then thr driver won't recognise it, and you'll get the same
> error.
>
Couldn't it also be that he hasn't told the system about the jdbc driver ?
You have to supply the driver as a -Djdbc.drivers argument or load it from
your Java code.
regards,
Gunnar
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2000-05-30 11:15 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-05-30 09:10 JDBC on HP-UX Sondaar, Roelof <roelof.sondaar@scania.com>
2000-05-30 09:33 RE: JDBC on HP-UX Peter Mount <petermount@it.maidstone.gov.uk>
2000-05-30 09:39 ` Gunnar R|nning <gunnar@candleweb.no>
2000-05-30 09:42 RE: JDBC on HP-UX Sondaar, Roelof <roelof.sondaar@scania.com>
2000-05-30 11:15 RE: JDBC on HP-UX Peter Mount <petermount@it.maidstone.gov.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox