Thanks Guys,

Got it sorted a combination of editing the /etc/profile, /etc/.bashrc,
setting the JRE_HOME and replacing the old version with a hard link to the
new one in the /usr/bin/java folder worked.

Cheers

2012/1/14 [email protected] <[email protected]>

> ** Hi Daniel,
>
> see
> http://m.zimbio.com/the+ubuntu+guy/articles/82/How+set+JAVA_HOME+environment+variable+Ubuntu
> --
> Skickat från min Android-telefon med K-9 E-post. Ursäkta min fåordighet.
>
> Daniel Bwente <[email protected]> skrev:
>
>> Hi All,
>>
>> I have tried upgrading the Java on an Open Suse 11.4 and Red Hat
>> Enterprise 5.6,  the rpm installs fine but am failing to permanently set
>> the PATH variable here as well, can't quite figure out what am doing wrong,
>> issuing the commands,
>>
>> #  JRE_HOME=/usr/java/jdk1.7.0_02/bin/java
>> #  export PATH=$JRE_HOME/bin:$PATH
>>
>> Temproarirly sets the environment variable and "which java" and "Java
>> -version" point to the right folder and version respectively but on logging
>> out of the shell, I lose the settings.
>>
>> Would appreciate being set straight.
>>
>> Cheers
>>
>>
>>
>>
>> On Fri, Jan 13, 2012 at 7:25 PM, Daniel Bwente <[email protected]> wrote:
>>
>>> Hi Guys,
>>>
>>> I have downloaded and Installed the latest Java rpm on RHEL 5.6, but am
>>> having trouble setting the JAVA_HOME and PATH variables, I have followed
>>> the instructions off the java website and a couple of other sites with no
>>> results, would appreciate the help ironing this out, steps I have taken:
>>>
>>> -Mkdir /usr/java
>>> -tar -zxvf filename
>>> -export JAVA_HOME=/usr/java/jdk1.7.0/**bin/java
>>> -export $PATH=$JAVA_HOME/bin
>>>
>>> Cheers
>>>
>>>
>>>
>>> Sent from my iPhone
>>>
>>
>>
>>
>> --
>>
>>   /Daniel
>>
>>
>>
>>
> _______________________________________________
> The Uganda Linux User Group: http://linux.or.ug
>
> Send messages to this mailing list by addressing e-mails to:
> [email protected]
> Mailing list archives: http://www.mail-archive.com/[email protected]/
> Mailing list settings: http://kym.net/mailman/listinfo/lug
> To unsubscribe: http://kym.net/mailman/options/lug
>
> The Uganda LUG mailing list is generously hosted by INFOCOM:
> http://www.infocom.co.ug/
>
> The above comments and data are owned by whoever posted them (including
> attachments if any). The mailing list host is not responsible for them in
> any way.
>



-- 

  /Daniel
_______________________________________________
The Uganda Linux User Group: http://linux.or.ug

Send messages to this mailing list by addressing e-mails to: [email protected]
Mailing list archives: http://www.mail-archive.com/[email protected]/
Mailing list settings: http://kym.net/mailman/listinfo/lug
To unsubscribe: http://kym.net/mailman/options/lug

The Uganda LUG mailing list is generously hosted by INFOCOM: 
http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including 
attachments if any). The mailing list host is not responsible for them in any 
way.

Reply via email to