Lists: | pgsql-interfaces |
---|
From: | Lars Nielsen Lind <larslind(at)systemudvikling(dot)dk> |
---|---|
To: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | jdbc7.0-1.2.jar |
Date: | 2000-11-27 20:41:16 |
Message-ID: | 3A22C6EC.CF1DA2FA@systemudvikling.dk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-interfaces |
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(at)systemudvikling(dot)dk
From: | Joseph Shraibman <jks(at)selectacast(dot)net> |
---|---|
To: | Lars Nielsen Lind <larslind(at)systemudvikling(dot)dk> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: jdbc7.0-1.2.jar |
Date: | 2000-12-04 21:36:04 |
Message-ID: | 3A2C0E44.A1536494@selectacast.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg와이즈 토토SQL : |
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(at)selectacast(dot)net
Increase signal to noise ratio. http://www.targabot.com