From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19579 invoked by alias); 9 Feb 2004 21:28:57 -0000 Mailing-List: contact rhdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: rhdb-owner@sources.redhat.com Received: (qmail 19565 invoked from network); 9 Feb 2004 21:28:50 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 9 Feb 2004 21:28:50 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id i19LSob14396 for ; Mon, 9 Feb 2004 16:28:50 -0500 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i19LSki24136; Mon, 9 Feb 2004 16:28:46 -0500 Received: from to-dhcp4.toronto.redhat.com (to-dhcp4.toronto.redhat.com [172.16.14.104]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id i19LShXd003509; Mon, 9 Feb 2004 16:28:43 -0500 Subject: Re: Revisiting java problems From: David Jee To: Derrick Snowden Cc: rhdb@sources.redhat.com In-Reply-To: <1075939733.2320.10.camel@doris.aoml.noaa.gov> References: <1075939733.2320.10.camel@doris.aoml.noaa.gov> Content-Type: text/plain Organization: Message-Id: <1076362123.17029.27.camel@tomboy.toronto.redhat.com> Mime-Version: 1.0 Date: Mon, 09 Feb 2004 21:28:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2004-q1/txt/msg00035.txt.bz2 On Wed, 2004-02-04 at 19:08, Derrick Snowden wrote: > Hi > > I have read the thread from Jan 19 re java problems and I'm still > stumbling. I'm using FC1 and I have followed all the instructions in > that thread yet I still get the same error about rhdb-admin and the > classpath. It is unable to find org.postgresql.jdbc3.* > > I've installed postgresql-jdbc-7.3.4-11.i386.rpm and have verified that > postgresql.jar is in /usr/share/java yet if I try > > % grepjar jdbc postgresql.jar > > There is no mention to anything with the string jdbc3. There are > however, jdbc1 matches. I then downloaded the source tar.gz files for > postgres-base-7.3.4-11 and in the src/interfaces directory there are > *.java files to build classes with jdbc3 in the title. > > Is there anything else I have to do? I should mention that rhdb-cc > fails with an error > "Unable to find the java executable" which is in my PATH env variable. > And, rhdb-visual explain fails to connect to a database with > > "Reason: JDBC Driver (org.postgresql.Driver) could not be found" > grepjar for Driver reveals > > $ grepjar Driver postgresql.jar > org/postgresql/largeobject/LargeObjectManager.class:org/postgresql/Driver > org/postgresql/fastpath/Fastpath.class:org/postgresql/Driver > Z_BUF_ERROR > > Any ideas? Do you have any older versions of the JDBC driver in your CLASSPATH? Make sure that you only have one JDBC driver in your CLASSPATH. If you are using bash, you should do the following: export CLASSPATH=/usr/share/java/postgresql.jar And just for reference, which vendor/version of JDK or JRE are you using? In the past, we noticed funny things happening when mixing and matching different versions of JDK and JRE in your environment, even if they're from the same vendor. We developed and tested our software on Sun's SDK version 1.4.2. I hope that helps. If you have further questions, please ask. -David Jee