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