From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1778 invoked by alias); 23 Jan 2003 15:23:43 -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 1771 invoked from network); 23 Jan 2003 15:23:43 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 23 Jan 2003 15:23:43 -0000 Received: from redhat.com (totem.toronto.redhat.com [172.16.14.242]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 5752A800152; Thu, 23 Jan 2003 10:23:43 -0500 (EST) Message-ID: <3E3008FF.1010300@redhat.com> Date: Thu, 23 Jan 2003 15:23:00 -0000 From: Fernando Nasser Organization: Red Hat , Inc. - Toronto User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Wan Cc: rhdb@sources.redhat.com Subject: Re: rhdb-explain can't locate java References: <3E30009A.3000009@hkbn.com.hk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-q1/txt/msg00028.txt.bz2 Daniel Wan wrote: > Dear all, > > When I execute command rhdb-explain & > It promit unable to find a java executable > but I had already install jre-1.3.1_06.i586.rpm > and checked it install to /usr/java/jre1.3.1_06/bin/java > How come rhdb can't locate it?? > You should always have your environment variable JAVA_HOME pointing to your Java directory. You should also set your PATH to make sure the proper Java binaries (the ones from the same kit) are found before any similar named commands. Put the files in your shell rc file, .login or even install it system wide if all are supposed to use Java. Here are the commands for a bash shell: export JAVA_HOME=/usr/java/jre1.3.1_06 export PATH=/usr/java/jre1.3.1_06/bin:$PATH After you do this, test with: echo $JAVA_HOME -> /usr/java/jre1.3.1_06 which java -> /usr/java/jre1.3.1_06/bin/java Thanks for your interest in trying Visual Explain. Regards, Fernando -- Fernando Nasser Red Hat - Toronto E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9