Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 30C4A9FB1DD for ; Mon, 27 Nov 2006 00:41:57 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 49568-03 for ; Mon, 27 Nov 2006 00:41:52 -0400 (AST) X-Greylist: delayed 00:06:39.047967 by SQLgrey-1.7.4 Received: from smtp104.sbc.mail.mud.yahoo.com (smtp104.sbc.mail.mud.yahoo.com [68.142.198.203]) by postgresql.org (Postfix) with SMTP id 87C019FA48A for ; Mon, 27 Nov 2006 00:41:52 -0400 (AST) Received: (qmail 44677 invoked from network); 27 Nov 2006 04:35:12 -0000 Received: from unknown (HELO andyxp) (drlaz@sbcglobal.net@70.137.161.109 with login) by smtp104.sbc.mail.mud.yahoo.com with SMTP; 27 Nov 2006 04:35:12 -0000 X-YMail-OSG: dGPLjZ4VM1krNjhHvRGl36C149vZuM1htMtmLz3_E83xpt47heEfza0Y3zblMwPbp1WCcvR.CuWfQ.nStOppNx.4LEJUU4R8sor.Ubih57EWaogkpvi9og-- Date: Sun, 26 Nov 2006 20:35:08 -0800 To: "Greg Peters" , pgsql-jdbc@postgresql.org Subject: Re: Exception Error - Please help I've tried everything! From: "Andrew Lazarus" Content-Type: text/plain; charset=iso-8859-15 MIME-Version: 1.0 References: <9bc001470611252348l5fd9f93fx2c1a0d45b2c082bb@mail.gmail.com> <883e44790611260746h5b75162eue52207ee6505e2a7@mail.gmail.com> <9bc001470611261521m6c8d2f6nec6cb8b6726385d8@mail.gmail.com> Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <9bc001470611261521m6c8d2f6nec6cb8b6726385d8@mail.gmail.com> User-Agent: Opera Mail/9.02 (Win32) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.201 tagged_above=0 required=5 tests=BAYES_50, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200611/128 X-Sequence-Number: 16170 Sorry to jump in mid-thread; I no longer read every message. But I do us= e NB 5.0 and 5.5 with no problem. Are you passing in -Djdbc.driver=3Dorg= .postgresql.Driver to the VM? You don't in the example java -classpath e= tc. line below which is why it doesn't work. You can put it into the NB = project by right-clicking the project in the project pane, going to "Pro= perties", Run, and adding the -D command to the "extra parameters" text = box. I believe that in the alternative, you can do a Class.forName("org.postg= resql.Driver") in your code before you start accessing the DB. The java.= sql code doesn't know WHICH jdbc driver to load when you open the DB unt= il you tell it. On Sun, 26 Nov 2006 15:21:58 -0800, Greg Peters = wrote: > Chuck, > > Thanks for your input. I will see if adding the PG driver to the NB li= brary > helps when I get home from work today. However, as I mentioned, I was = unable > to get it to work from the command prompt either, even when specifical= ly > providing a classpath with the command: > > java -classpath postgresql.jar PostgresqlClient.class (both files ar= e in > the same directory) > > I know what you mean by psql being a good platform. I have been using = it the > last few months and have been impressed. Currently all my user interfa= ces > have been web based using php (i see myself a semi-expert), but I am n= ow > trying to break into the java scene (really just learning the basics).= I am > ultimately going to make an interactive map, with object locations sto= red in > the database and a friendly gui interface - well that's the plan anywa= y..... > > Thanks again, > > Greg. > -- = Andrew Lazarus drlaz@attglobal.net