From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32414 invoked by alias); 25 Mar 2004 17:24:00 -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 32376 invoked from network); 25 Mar 2004 17:23:54 -0000 Received: from unknown (HELO anchor-post-35.mail.demon.net) (194.217.242.85) by sources.redhat.com with SMTP; 25 Mar 2004 17:23:54 -0000 Received: from ludcastle.demon.co.uk ([80.177.206.176] helo=lccntserver1.lccdomain1) by anchor-post-35.mail.demon.net with esmtp (Exim 3.35 #1) id 1B6Ya9-000DbC-0Z for rhdb@sources.redhat.com; Thu, 25 Mar 2004 17:23:53 +0000 Received: by LCCNTSERVER1 with Internet Mail Service (5.5.2653.19) id ; Thu, 25 Mar 2004 17:25:09 -0000 Message-ID: <02FA758810D1D711943E0003470A8B918F1C@LCCNTSERVER1> From: James Beale To: "'rhdb@sources.redhat.com'" Subject: rhdb-explain, rhdb-admin, rhdb-cc "Unable to find a java executab le" - FOR INFORMATION ONLY, NO NEED FOR REPLIES Date: Thu, 25 Mar 2004 17:24:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2004-q1/txt/msg00047.txt.bz2 With my sincere thanks to Fernando Nasser and Kim Ho, without whom I'd be floundering still, I post here the information I used to get things running when I got errors "Unable to find a java executable" error running rhdb-explain, rhdb-admin, and rhdb-admin. No reply is needed, this is just for information for anyone else looking for this information whilst searching the archives. Note that this solution was deployed on RH9 using Sun Java j2re1.4.2. If you use a different Java this will probably not work. Each Java places things in different places. I hope this is of use to someone else, and, again, thanks Fernando and Kim. Extract: James Beale wrote: > Hi again > > Thanks very much for the pointers. I've added all the info thus: > > 1 - Edit //.bash_profile, and ensure it reads: > JAVA_HOME=/usr/java/j2re1.4.2_04 > PATH=$JAVA_HOME/bin:$PATH:$HOME/bin > BASH_ENV=$HOME/.bashrc > USERNAME="root" > export USERNAME BASH_ENV PATH > CLASSPATH=/usr/share/java/rh-postgresql3.jar > export CLASSPATH > > 2 - Edit the file /usr/share/rhdb-cc/rhdb-cc.sh file, adding the line if > needed. > JAVA_HOME=/usr/java/j2re1.4.2_04 > ============================================== James M Beale MBCS CITP Lud Castle (Computing) Ltd Tel: +44 (0)1382 736031 Fax: +44 (0)8700 518 232 mailto:jamesb@ludcastle.co.uk http://www.ludcastle.demon.co.uk