Quote:
Edit /etc/profile (as root) with your favourite text editor. There should be a line that specifies directories that
contain executables and should be added to
the PATH environment variable.
|
May I suggest a modification?
If you update the system via CD, you're quite likely
to have a new /etc/profile and need to make
the changes again or merge the two files...
Also, making changes to a central file like
profile isn't necessarily a good idea for n00bs.
I'd suggest making a file
/etc/profile.d/java.sh
and make it look like this :)
(modify to match your paths ;})
Code:
#!/bin/sh
# Add JDK specific settings
export JAVA_HOME=/usr/java
export PATH=$PATH:/usr/java/bin:/usr/java/jre/bin
Cheers,
Tink