No Java Virtual Machine Error

Latest response

Hi Guys,
as always, thanks for your help.

I am trying to run a script to install a foglight agent as user "oracle" . When I run the script, I get this error

"Connection to X Server failed. Switching to console mode.
No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program"

Any help with this will be truly appreciated.

Thanks to all.

Responses

Hi Arrey,

It seems that no JVM is installed on the computer. Please check this:

yum list java-*

Radek

Thanks for the reply. I have java installed. The script works with another user. It doesn't complain at all. But when I run as the user oracle, I get the above mentioned error.

Oh, I see. Then there's another part of the error message that's worth investigating. Does the oracle user happen to have a custom $PATH that does not include the location of the 'java' command?

Thanks again Radek. $PATH for oracle is the same as $PATH for the other user. Their environment is absolutely the same.

I wonder if the installation script overrides $PATH, then. Is there a way to see what exactly it's doing?

Sometimes oracle squashes the JAVA_HOME variable, you may want to check another user that the script does work with and echo out $JAVA_HOME and then set it in the .profile for the oracle user.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.