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><div><span class="gmail_quote">On 28/03/06, <b class="gmail_sendername">Craig White</b> <<a href="mailto:craigwhite@azapple.com">craigwhite@azapple.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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 instructed me<br>> >> to: Set an environment variable named JAVA_HOME to the pathname of<br>> >> the directory into which you installed the JRE...
<br>> >><br>> >> So how does one set an environment variable? Assuming I 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 already lengthy<br>> list of stuff that needs massaging when a new java jre is installed.<br>----<br>it all depends upon what your needs are. I'm giving the larger picture
<br>view here but I can appreciate that some are incapable of seeing the<br>larger picture.<br><br>you only need to implement that which you need - much as I've done there<br>by only exporting the JAVA_HOME and not the other environmental
<br>variables.<br><br>Thus, the path is likely to be important and in his case, he 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: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote></div><br><br clear="all"><br>-- <br>A. Helmy