Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 23CD7632CFF for ; Tue, 2 Mar 2010 19:59:44 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 50746-03 for ; Tue, 2 Mar 2010 23:59:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from web35603.mail.mud.yahoo.com (web35603.mail.mud.yahoo.com [66.163.179.142]) by mail.postgresql.org (Postfix) with SMTP id 5618B632D02 for ; Tue, 2 Mar 2010 19:59:33 -0400 (AST) Received: (qmail 26579 invoked by uid 60001); 2 Mar 2010 23:59:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1267574371; bh=c4OdlEOEi+Ja/h+MzLtyWwoDLSVqU1WrmfOo67BaDeA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=T0WFwlRD0qu7ozT8kezDsfGp5+pcAJxzj+9IEBa72seqLimxeXb63iYrlF9mPdVcR2eEMqH2eS5rqXdwvPuCKisnLPYrQGNJ2Lat2iT+iUjqDX+At5sw0E8yLR4rmjl2/LVhd/+4Ad7jqxrdc96LpOrQeyYpC5Vy/Mulp1J3lMM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=5clL1KSpO9bGKSjgMbEmSrKrgpotdlgY6iQEr+pB3EpOBX2nfj7UiHPufA1NCJTk3rERWruYiM24c1JqYZnvVVpAteEog903F3YjqibhdQinvxXri91BAXFCCFwGc+nFc0xgmCy7ewWJNiUrO+XOs03+kxkPmQbg9XWNZ5wlbV0=; Message-ID: <759461.26544.qm@web35603.mail.mud.yahoo.com> X-YMail-OSG: Jhmf0jwVM1nrPMLrla0sD3dRE_LezLECR3kKmF3aAi_6JUggtOAoYWEyw4hl0YdsVL1ty39mXx1CfhpKDJxrkKfUPQ28COZiNYtzypnr8RiX5rAyBxPBBWTUCnzxPC1Bv1jonqdjKVcVybbKwrfA3nRO2.UtmsSvoiOzMQ1E8r0m2xFK4OwyHbWXhgtt1QQ4OIKm7gUT1ISL7hXSrpqC6W.r18ptgxVsPuvaVMetuzCBLTK.SMmsP_Hmq6fXTDxE9W2..pqsLvWSaU1K_38FZ.MA9bzw4f2IaDTmz_wBrqaMfki5y4gFnD1E3vO5giChG12y8HrowXKecMkRL4WqSQ-- Received: from [93.173.61.50] by web35603.mail.mud.yahoo.com via HTTP; Tue, 02 Mar 2010 15:59:31 PST X-Mailer: YahooMailRC/300.3 YahooMailWebService/0.8.100.260964 Date: Tue, 2 Mar 2010 15:59:31 -0800 (PST) From: Lior K Subject: Can't connect to posgresql through the jdbc driver To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.11 tagged_above=-10 required=5 tests=BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201003/3 X-Sequence-Number: 20343 Hi I'm using postgresql 8.3 and the postgresql-8.4-701.jdbc4.jar ( a jar file which is supposed to include the jdbc driver: org.postgresql.Driver) I set the CLASSPATH environment variable to the correct place and ran my JAVA code which first tried to call the jdbc driver : "Class.forName("org.postgresql.Driver");" But to no avail ("java.lang.ClassNotFoundException: org.postgresql.Driver") . At first I thought I set the CLASSPATH wrong (did it thorugh my .bashrc and exported) but after trying a few variations of CLASSPATH I opened the file postgresql-8.4-701.jdbc4.jar with the ZIP tool that came with UBUNTU. I noticed that the jdbc driver postgresql-8.4-701.jdbc4.jar was not in that bundled jar file... I did notice that there was another driver in there called "java.sql.Driver" I put it in my code (just to check the CLASSPATH) : "Class.forName("java.sql.Driver");" compiled and ran . This time it passed that line correctly (it did get stuck on the actual line that operated the JDBC URL, but at least it showed me that my CLASSPATH was right...could anyone tell me why org.postgresql.Driver could not be found in postgresql-8.4-701.jdbc4.jar...? and also if there is an answer to that , how do I make this one disappear : java.lang.ClassNotFoundException: org.postgresql.Driver When I try to call it.... Thanks : Lior K.