Click to See Complete Forum and Search --> : Java2 Runtime Environment


redhatter
07-28-2001, 07:19 PM
I am trying to install the Java 2 Runtime Environment. I downloaded the .rpm file and followed these instructions, from http://java.sun.com/j2se/1.3/jre/install-linux.html#install-pkg

1. Check the download file size.
Check the large file that you downloaded to ensure that it is the correct size:

j2re-1_3_1-linux-i386-rpm.bin 14842795 bytes

If the file size doesn't match, it probably means the file was corrupted during download. In that case, try downloading again.

2. Run the installation script and agree to the license it displays.
Launch the installation script by using the following commands from the directory in which it is located:

chmod a+x j2re-1_3_1-linux-i386-rpm.bin

./j2re-1_3_1-linux-i386-rpm.bin

The script will display a binary license agreement, which you will be asked to agree to before installation can proceed. Once you have agreed to the license, the install script will create the file jre-1.3.1.i386.rpm in the current directory.

3. Become root by running the su command and entering the super-user password.

4. Run the rpm command to install the packages:

rpm -iv jre-1.3.1.i386.rpm

This will install the packages comprising the Java 2 Runtime Environment.

5. Exit the root shell.

_________

Everything went smoothly, except it doesn't seem like it worked. I was told that I needed to download this file in order to properly run Limewire, which is a filesharing program (I've been having many problems, see the /tgz thread).

I'm at the point in my LimeWire install where I need to enter:

sh runlime.sh

When I do, I get:

runlime.sh: java: command not found

I'm assuming that this means that the Java2 was not properly installed/downloaded. Am I interpreting this correctly? Is there another reason this is bombing out on me?


BTW: I'm running RedHat 7.1, ximian gnome desktop, using Mozilla.

Thanks!

scanez
07-28-2001, 09:30 PM
I'm pretty sure the JRE installs into it's own directory, I forget what's its called but check for a directory named jre1.3.1 or something of that sort. Then you need to make a link to the executables files in your /usr/bin directory. Meaning, type

ln -s /path-to-jre-directory/bin/java /usr/bin/java

You may need some more symlinks for other commands. Try this first and then run the LimeWire installer and see if that works. If not, come back.

I know there are other problems with the java development kit and RH 7.1 but I'm not sure about the jre. Let us know what happens.

SC

redhatter
07-28-2001, 10:09 PM
Thanks SC.

I don't think I did it right. This is what I did:

ln -s/user/java/jre1.3.1/bin/java/user/bin/java

Where '/user/java/jre1.3.1' is the path to the directory. I get this message:

ln: invalid option --/

Did I do something wrong here?

Thanks,
redhatter

scanez
07-28-2001, 10:53 PM
Sorry, I guess the spacing wasn't very apparent in my last post. Try,

ln (SPACE) -s (SPACE) /usr/java/jre1.3.1/bin/java (SPACE) /usr/bin/java

where (SPACE) just means that there should be a space there.

Hope this works
SC

Malakin
07-29-2001, 04:41 AM
what scanez said was bang on, just installed the latest version myself and was surprised you still had to create the link yourself.

One suggestion though, after you install something if you're not sure where it put it just run "rpm -qpl file.rpm" or "rpm -qpl file.rpm | less" to get it page by page and it will tell you where it put all the files.