Re: Environment Vars?

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

 



. /etc/profile.d/java.sh

 ^ note space

Craig

On Tue, 2006-03-28 at 22:08 +0200, Ali Helmy wrote:
> So i su-ed to root and created /etc/profile.d/java.sh
> I copied+pasted the items you sent me into /etc/profile.d/java.sh
> then i ./java.sh
> but when i echo $JAVA_HOME
> i get a blank line for the output!
> 
> so what am i doing wrong? 
> 
> On 28/03/06, Craig White <craigwhite@xxxxxxxxxxx> wrote:
>         On Tue, 2006-03-28 at 13:30 -0500, Gene Heskett wrote:
>         > On Monday 27 March 2006 13:46, Craig White wrote:
>         > >On Mon, 2006-03-27 at 20:08 +0200, Ali Helmy wrote:
>         > >> Hey mates,
>         > >> 
>         > >> In an installation of one program (Apache Tomcat) it
>         instructed me
>         > >> to: Set an environment variable named JAVA_HOME to the
>         pathname of
>         > >> the directory into which you installed the JRE... 
>         > >>
>         > >> So how does one set an environment variable? Assuming I
>         got java
>         > >> installed at /usr/java/
>         > >
>         > >----
>         > >this ***may*** be useful to you
>         > > 
>         > ># cat /etc/profile.d/java.sh
>         > >JREHOME="/usr/java/jre1.5.0_06/lib/i386"
>         > >JAVA_HOME="/usr/java/jre1.5.0_06"
>         > >JAVAWSHOME="/usr/java/jre1.5.0_06/javaws" 
>         > >LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$JREHOME:$JAVAWSHOME"
>         > >PATH="$PATH:/usr/java/jre1.5.0_06/bin"
>         > >export JAVA_HOME
>         > >
>         > >Adjust as needed
>         > > 
>         > >Craig
>         >
>         > Thanks Craig, although I expect this will enlarge the
>         already lengthy
>         > list of stuff that needs massaging when a new java jre is
>         installed.
>         ----
>         it all depends upon what your needs are. I'm giving the larger
>         picture 
>         view here but I can appreciate that some are incapable of
>         seeing the
>         larger picture.
>         
>         you only need to implement that which you need - much as I've
>         done there
>         by only exporting the JAVA_HOME and not the other
>         environmental 
>         variables.
>         
>         Thus, the path is likely to be important and in his case, he
>         needed the
>         environmental variable JAVA_HOME so it is exported
>         
>         Craig
>         
>         --
>         fedora-list mailing list
>         fedora-list@xxxxxxxxxx
>         To unsubscribe:
>         https://www.redhat.com/mailman/listinfo/fedora-list
> 
> 
> 
> -- 
> A. Helmy 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux