[Centos] Any help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,

You mean 

Copy the following in my profile FILE 
"

$ cat /etc/profile.d/java.sh

JAVA_VERSION="j2re1.4.2_04"
 

if [ -d /usr/java/${JAVA_VERSION} ]; then
        export JAVA_HOME="/usr/java/${JAVA_VERSION}"
        export JAVA_PATH="${JAVA_HOME}"
        export PATH="$PATH:${JAVA_HOME}/bin"
fi

"

Anything else, 
I am new to linux.
Thankx for ur help
vaneet
 


-----Original Message-----
From: centos-bounces@xxxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxxx] On
Behalf Of Alexander Dalloz
Sent: Tuesday, March 22, 2005 8:49 PM
To: CentOS discussion and information list
Subject: Re: [Centos] Any help


Am Di, den 22.03.2005 schrieb Vaneet Sharma um 17:48:

> : command not found
> : command not found
> 'bash: /etc/profile: line 6: syntax error near unexpected token `{
> 'bash: /etc/profile: line 6: `pathmunge () {
> 
> 
> I am attaching the profile file.
> 
> Well, I was trying to set JAVA_HOME

> Vaneet

You $PATH variable is already made broken by you?

echo $PATH

I suggest you add the JAVA_HOME with a profile script like this:

$ cat /etc/profile.d/java.sh

JAVA_VERSION="j2re1.4.2_04"
 

if [ -d /usr/java/${JAVA_VERSION} ]; then
        export JAVA_HOME="/usr/java/${JAVA_VERSION}"
        export JAVA_PATH="${JAVA_HOME}"
        export PATH="$PATH:${JAVA_HOME}/bin"
fi

For csh as your shell do it accordingly.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux
on Athlon with kernel 2.6.10-1.770_FC2smp 
Serendipity 20:46:10 up 5 days, 18:42, load average: 0.41, 0.56, 0.52 


Vaneet Sharma
executive manager	
iDeasTank Limited	
an iwg business
dolphins' court po 388
valletta, m-malta/europe
mobile:	 +356 9943 8263
skype:	 CALLVANEET
fax:	 +356 9952 8888
phone:	 +356 9942 8888

vaneet@xxxxxxxx
call me on www.skype.com - my ID is CALLVANEET

Want a signature like this? - www.plaxo.com\signature

iwg is a global e-mobile company creating, building and growing new businesses.  iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US.

www.iWG.info
www.countryprofiler.com/iWG
www.visitmalta.com
www.mfc.com.mt


Privileged/Confidential Information may be contained in this message.  If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email.

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux