This is the mail archive of the rhdb@sources.redhat.com mailing list for the RHDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: rhdb-explain can't locate java


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]