java in Linux question

Thad Nielsen paroikos at myrealbox.com
Mon May 8 11:10:13 UTC 2006


M E Fieu [sibu168 at yahoo.com] wrote:
> Hi.. I have installed java in the following folder /usr/java/jre1.5.0_06 in linux, may i know
> whether i should create JAVA_HOME variable like windows do ??  If I want to add the following
> entries 
> 
> JAVA_HOME=/usr/java/jre1.5.0_06
> 
> where should I add ??  /etc/profile ?  I added but it doesn't appear in ENV after I relogin 
> 
> 
> Besides, may I know where can i change the entry order of the following ENV parameter?
> 
> PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/java/jre1.5.0_06/bin:/root/bin
> 
Edit ~/.bash_profile and set JAVA_HOME there and export it.  You may
also find your path settings in there.  You should login as a
"regular" user, BTW.

	T.




More information about the fedora-list mailing list