Quote:
Originally posted by Unregistered I type
java -version
<output>
bash: java: command not found
I type
which -b java
<output>
type: usage: type [-apt] name [name ...] |
That is why the command:
which java
is so beautiful! It means that java isn't properly configured on your system. Definitely when you type this command:
java -version
and don't get tthe apropriate response.
Let us try to help you out here. Let me use the more recent java package to run you through the install process...
1) I go to java.sun.com and get the latest java package: j2se 1.4.1.
2) I next download it to my home directory.
3) I make the package executable if it isn't like this:
chmod +x j2sdk-1_4_1_01-linux-i586-rpm.bin
4) I next execute the package:
sh j2sdk-1_4_1_01-linux-i586-rpm.bin
5) I agree to the licensing terms.
6) I am left with:
j2sdk-1_4_1_01-fcs-linux-i586.rpm
I install this as root:
rpm -Uvh j2sdk-1_4_1_01-fcs-linux-i586.rpm
7) Make sure it is installed by typing this command:
java -version
This should output:
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
8) Now, that linux has java installed and running. We are left with configuring linux for java development/limewire installation.
9) Find where java is installed on your system with this command:
which java
You should have this exact output:
/usr/java/j2sdk1.4.1_01/bin/java
10) edit your .bash_profile (or .bashrc if your system doesn't come with .bash_profile) and add these lines to this file:
export JAVA_HOME=/usr/java/j2sdk1.4.1_01
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$CLASSPATH:
***SPECIAL NOTE***
Make sure that you don't forget the period (.) at the beginning of your file as this denotes your file as a hidden file, which what .bash_profile and .bashrc are!
Type:
ls .bash*
to verify what you have on your system.
********************
11) Then we activate these changes with the following command:
source .bash_profile
or simply logout and then back in if you prefer the M$ way of doing things.
12) Install LimeWire as instructed to do so as a regular user.
Otherwise, this link might help:
http://www.gnutellaforums.com/showth...9810#post59810
altoine