jdbc7.0-1.2.jar
jdbc7.0-1.2.jar
Hi.I have some problems with PostgreSQL 7.0.2 and JBuilder 4 Foundation and JavaServer Pages. My development platform is Red Hat 7.0 and JDK 1.3.
When I try to compile my JavaBean (DatabaseHandler) it freeze's when it reach the no. 2 codeline (have printed "1"):
1.) System.out.println("1");
2.) conn = DriverManager.getConnection("jdbc:postgresql:testdatabase","user","1234");
3.) System.out.println("2");Where "user" = linux database admin and "1234" = linux password.
JBuilder never finishes the compile sequence....and when I use the JavaBean with JavaServer Pages I get a java.lang.NullPointerException.
I start the PostgreSQL database server with this command:
/usr/bin/postmaster -D -i /home/user/databaseserver
I have added the following line to /etc/profile:
CLASSPATH=$CLASSPATH:/usr/lib/pgsql/jdbc7.0-1.2.jar
In JBuilder 4 Foundation the /usr/lib/pgsql/jdbc7.0-1.2.jar have been added to the Class tab in the Configure JDKs dialog box.
Lars Nielsen Lind
E-mail address: larslind@systemudvikling.dk
Re: jdbc7.0-1.2.jar
Lars Nielsen Lind wrote:
>
> Hi.
>
> I have some problems with PostgreSQL 7.0.2 and JBuilder 4 Foundation
> and JavaServer Pages. My development platform is Red Hat 7.0 and JDK
> 1.3.
>
> When I try to compile my JavaBean (DatabaseHandler) it freeze's when
> it reach the no. 2 codeline (have printed "1"):
>
> 1.) System.out.println("1");
> 2.) conn =
> DriverManager.getConnection("jdbc:postgresql:testdatabase","user","1234");
>
> 3.) System.out.println("2");
>
> Where "user" = linux database admin and "1234" = linux password.
>
The user and password aren't the same as the linux user and password.
They are seperate for postgres. See the admin pages for how to add a
new user.
--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio. http://www.targabot.com
RE: jdbc7.0-1.2.jar
This looks like a bug in JBuilder. It's having some unusual problem trying
to compile DriverManager.getConnection() which is part of the JDK not the
driver, hence out of our control (no JDBC driver has anything to do with
compiling apps).
This is the second or third report of this I've seen, so it might be good to
check on Borland/Imprise's site to see if anyone else has seen this
behaviour before.
Peter
--
Peter Mount
Enterprise Support Officer, Maidstone Borough Council
Email: petermount@maidstone.gov.uk
WWW: http://www.maidstone.gov.uk
All views expressed within this email are not the views of Maidstone Borough
Council
-----Original Message-----
From: Lars Nielsen Lind [mailto:larslind@systemudvikling.dk]
Sent: Monday, November 27, 2000 8:41 PM
To: pgsql-interfaces@postgresql.org
Subject: [INTERFACES] jdbc7.0-1.2.jar
Hi.
I have some problems with PostgreSQL 7.0.2 and JBuilder 4 Foundation and
JavaServer Pages. My development platform is Red Hat 7.0 and JDK 1.3.
When I try to compile my JavaBean (DatabaseHandler) it freeze's when it
reach the no. 2 codeline (have printed "1"):
1.) System.out.println("1");
2.) conn =
DriverManager.getConnection("jdbc:postgresql:testdatabase","user","1234");
3.) System.out.println("2");
Where "user" = linux database admin and "1234" = linux password.
JBuilder never finishes the compile sequence....and when I use the JavaBean
with JavaServer Pages I get a java.lang.NullPointerException.
I start the PostgreSQL database server with this command:
/usr/bin/postmaster -D -i /home/user/databaseserver
I have added the following line to /etc/profile:
CLASSPATH=$CLASSPATH:/usr/lib/pgsql/jdbc7.0-1.2.jar
In JBuilder 4 Foundation the /usr/lib/pgsql/jdbc7.0-1.2.jar have been added
to the Class tab in the Configure JDKs dialog box.
Lars Nielsen Lind
E-mail address: larslind@systemudvikling.dk