X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 19E3DD1B23E for ; Wed, 21 Jul 2004 01:15:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 89739-08 for ; Wed, 21 Jul 2004 04:15:29 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 8BACFD1B1D5 for ; Wed, 21 Jul 2004 01:15:28 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i6L4FRqf076751 for ; Wed, 21 Jul 2004 04:15:28 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i6L3xmhf074066 for pgsql-jdbc@postgresql.org; Wed, 21 Jul 2004 03:59:48 GMT From: foredl@yahoo.com (datalines) X-Newsgroups: comp.databases.postgresql.interfaces.jdbc Subject: Re: JDBC connection issue Date: 19 Jul 2004 01:27:23 -0700 Organization: http://groups.google.com Lines: 57 Message-ID: <1ac22fd7.0407190027.53d75925@posting.google.com> References: <581C48EBC132FF459E62A6809D0D72AE22C749@mail.sharedmarketing.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-jdbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.5 tagged_above=0.0 required=5.0 tests=FORGED_YAHOO_RCVD X-Spam-Level: X-Archive-Number: 200407/256 X-Sequence-Number: 10640 JDBC with anything...can be a real pain in the ass!!!! why don't you learn to connect to the DB using PHP...there's no drivers involved! Also, the latest thing, is using DBCP with Jakara Struts...why don't you read about that? good luck Ynam@sharedmarketing.com ("Young Nam") wrote in message news:<581C48EBC132FF459E62A6809D0D72AE22C749@mail.sharedmarketing.com>... > Hi, > > I am having some difficulties connecting to a local postgresql database via > jdbc driver. > > my setup is: > mandrake 10.0 > j2sdk1.4.2 > postgresql 7.4.3 > > I've configured postgresql from its source with --with-java option, make, a > nd make install. > > The default directory for the postgresql.jar is /usr/local/pgsql/share/java > /postgresql.jar > I've run >jar -tf /usr/local/pgsql/share/java/postgresql.jar and the class > files seem to be in the right order. > > I've added the following line to the pg hba.conf to test local connections > via jdbc driver. > local all all 127.0.0.1 trust > > Also, changed the postgresql.conf > tcpip socket = true > > Added CLASSPATH to bashrc file > export CLASSPATH=/usr/local/pgsql/share/java/postgresql.jar:${CLASSPATH} > > and I am trying to run the following code > import java.sql.*; > import java.util.*; > > public class Xlang { > public static void main(String[] args) { > try { > Class.forName("org.postgresql.Driver"); > ... > } > } > > and I am getting the following exception.. > > java.lang.ClassNotFoundException: org.postgresql.Driver > > Any ideas would be very much appreciated. > > YJ > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match