Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-24-2008, 10:18 AM   #1
LQ Newbie
Registered: Oct 2007
Posts: 10

Rep: Reputation: 0
Unhappy 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.
Old 03-24-2008, 01:50 PM   #2
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Are you writing to the file as the root user ? or are you running on an *ubuntu system


days, help, searching

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
JAVA_HOME seems to be getting set somewhere other than /etc/profile Neztec Linux - Newbie 8 10-22-2009 07:42 AM
JAVA_HOME in /etc/profile doesn't work in GNOME terminal JoseVilla Linux - Newbie 7 04-09-2006 01:52 AM
JAVA_HOME path not set for all users tantric Linux - Software 5 03-29-2004 02:25 PM
PATH and JAVA_HOME peteABK Linux - Newbie 4 10-19-2003 05:30 PM
$JAVA_HOME and $PATH magnum818 Linux - Software 2 09-30-2003 11:05 PM

All times are GMT -5. The time now is 04:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration