Java vm problem

I am using Redhat 7.2. I am trying to install LimeWireLinux. I downloaded the latest versions of LimeWireLinux and JavaVM. I have been trough Limewire, and Sun's setup documents and have done the workarounds for any known problems. My problem is: I get the following error when tring to install the LimeWireLinux.bin file
" Configuring the installation. No jave virtual machine could be found from your Path environment variable. You must install a VM prior to running this program." Like I said, I have installed Java, but it sounds like it can't find it. I have tried installing it as root, and as a user from the user home directory.I am using the following command to install it: sh LimeWireLinux.bin When I try to run the install in a terminal window, I get the following error: "incorrectly setup Uniux98 ptys". I have searched, but I cannot find any help with this error. How can I get the program to recognize java to start the installation? Thanks, Jeremie

Type "whereis java" to get the path to the java executable. Then, add that path to your $PATH variable. For example, if "whereis java" says it's at /opt/java/bin/java, you'll want to type this:
PATH=$PATH:/opt/java/bin

If you want this available every time you log in, put this line in your .bash_profile (assuming you're using bash - "echo $SHELL" to find out) or possibly better yet, put it in your .bashrc file.

Let us know if this works out.

Thanks for responding. This is a great help. When I type "whereis java", I get: java:
That's it. I don't get a location like /opt/java/bin/java. I don't really understand why it says that, instead of the location of the java executable. What does java: mean?

That means it didn't find it... Don't worry though, it can still be done.
Do you know where java is installed, and what command to use to invoke it? If so, just put the directory where the executable commands resides into your PATH, like above.

Will it work now?