LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Java!! (https://www.linuxquestions.org/questions/linux-software-2/java-9411/)

RedHatMN 11-29-2001 06:34 PM

Java!!
 
OK, here's the problem...

I've got RedHat 7.2 installed, I downloaded the Java Binaries from Sun. Which directory do I install them into? I installed them to /usr/local, /usr/java, etc... and none of them work. I'm trying to install LimeWire and it keeps saying that I don't have a Java VM installed, where does it need to go?!?

HELP!

Thanks in Advance,
Aaron

dorward 11-30-2001 01:39 AM

If you are on Red Hat:

Download the RPM

Run the shell script to extract the RPM

Install the RPM (rpm -Uvh filename.rpm)

Add /usr/java/j2sdk1.4.0/ (get the version right) to your path, and set JAVA_HOME I have the following in my ~/.bashrc

Code:

export PATH=/usr/java/j2sdk1.4.0/:$PATH
export JAVA_HOME=/usr/java/j2sdk1.4.0


RedHatMN 11-30-2001 08:40 AM

Didn't work
 
Here's what I did...

I extracted the binary files into the directory /usr/java/jre1.3.1_01
I typed in the following commands...

export PATH=/usr/java/jre1.3.1_01/$PATH
export JAVA_HOME=/usr/java/jre1.3.1_01

When I tried to run the LimeWire install it said this...

No Java Virtual Machine could be found from your PATH enviroment variable. You must install a VM prior to running this program.

Any ideas?

dorward 11-30-2001 08:59 AM

Re: Didn't work
 
Quote:

Originally posted by RedHatMN
Here's what I did...
export PATH=/usr/java/jre1.3.1_01/$PATH

You need to seperate each entry in the PATH with a colon. The above probably gave you a path something like this:

/usr/java/jre1.3.1_01//bin
/usr/bin
/usr/local/bin

Try
export PATH=/usr/java/jre1.3.1_01/:$PATH

RedHatMN 11-30-2001 09:03 AM

my bad
 
I forgot to type the Colon in on the post, but that's how it is on my system... any ideas?

dorward 11-30-2001 01:19 PM

Whoops

For the PATH you need to add the directory containing the executables: /usr/java/jre1.3.1_01/bin

RedHatMN 11-30-2001 02:12 PM

That worked, Thanks!!

y'all that help me through this stuff make my experience learning Linux a lot more positive!


All times are GMT -5. The time now is 12:13 AM.