public inbox for rhdb@sourceware.org
 help / color / mirror / Atom feed
* rhdb-explain can't locate java
@ 2003-01-23 14:48 Daniel Wan
  2003-01-23 15:18 ` Permaine Cheung
  2003-01-23 15:23 ` Fernando Nasser
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Wan @ 2003-01-23 14:48 UTC (permalink / raw)
  To: rhdb

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??

Please help
Thankyou very much

Regards,
Daniel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rhdb-explain can't locate java
  2003-01-23 14:48 rhdb-explain can't locate java Daniel Wan
@ 2003-01-23 15:18 ` Permaine Cheung
  2003-01-23 15:23 ` Fernando Nasser
  1 sibling, 0 replies; 3+ messages in thread
From: Permaine Cheung @ 2003-01-23 15:18 UTC (permalink / raw)
  To: Daniel Wan; +Cc: rhdb

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??
>
> Please help
> Thankyou very much
>
> Regards,
> Daniel

Hi Daniel,

Is the java executable in your path or the JAVA_HOME environment
variable set? You will need to have the java executable in your path in
order to start rhdb-explain. Since different user can have different JRE

installed on their machine, their java executable may be at different
location, the user need to specify where the java executable is.

You'll also need to make sure that your PostgreSQL JDBC driver
is in the proper location, for more information, pleaser refer to:

http://www.redhat.com/docs/manuals/database/RHDB-2.1-Manual/guitools/x100.html#AEN179

Hope this helps.

Cheers,
Permaine

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rhdb-explain can't locate java
  2003-01-23 14:48 rhdb-explain can't locate java Daniel Wan
  2003-01-23 15:18 ` Permaine Cheung
@ 2003-01-23 15:23 ` Fernando Nasser
  1 sibling, 0 replies; 3+ messages in thread
From: Fernando Nasser @ 2003-01-23 15:23 UTC (permalink / raw)
  To: Daniel Wan; +Cc: rhdb

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-23 15:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-23 14:48 rhdb-explain can't locate java Daniel Wan
2003-01-23 15:18 ` Permaine Cheung
2003-01-23 15:23 ` Fernando Nasser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).