problem in writting the java_home path to /etc/profile.
I installed jre, and it resides in /usr/java/jre1.6.0_05.
now trying to install lime wire still gives me a dependancy problem saying that jre is not installed, and I read something about correcting the home path of the jre.
what i read was this (
echo JAVA_HOME=/path/to/jre >> /etc/profile (substitute with JRE_home as required)
echo export JAVA_HOME >> /etc/profile (substitute as required)
source /etc/profile
)
so I was trying "sudo echo JAVA_HOME=/usr/java/jre1.6.0_05>> /etc/profile"
and the terminal says permission denied.
I also tried to open the file /etc/profile and write them inside but that didn't work, still saying you don't have permission to write to this file.
do you notice any thing wrong in what I've done so far please help.
|