<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Does CenoOS use alternatives?<DIV><BR class="khtml-block-placeholder"></DIV><DIV>In fedora core, you need to do something like this:</DIV><DIV>alternatives --install /usr/bin/java java /usr/java/j2sdk1.4.2_09/bin/java 301</DIV><DIV>alternatives --install /usr/bin/javac javac /usr/java/j2sdk1.4.2_09/bin/javac 301</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-Tom</DIV><DIV><BR><DIV><DIV>On Dec 7, 2005, at 8:31 AM, Jerry Heiselman wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">you need to add /usr/java/j2sdk1.4.2_09 to your path.<BR><BR>In csh or tsch type: setenv PATH $PATH:/usr/java/j2sdk1.4.2_09/bin<BR>In sh, ksh, or bash type: export PATH=$PATH:/usr/java/j2sdk1.4.2_09/bin<BR><BR>You probably want to add those statements to your .profile or .login file too. <BR><BR>The alternative that may work better is to put a link in /usr/bin for java.<BR>To do that type: ln -s /usr/java/j2sdk1.4.2_09/bin/java /usr/bin/java.<BR><BR>If you have a csh-based shell, then you will need to type in: rehash <BR>once you have done that.<BR><BR><DIV><SPAN class="gmail_quote">On 12/7/05, <B class="gmail_sendername">Nathan C. Smith</B> &lt;<A href="mailto:smith@ipmvs.com">smith@ipmvs.com</A>&gt; wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <BR>So I'm trying to install the community edition of Scalix on Centos 4.2.<BR>After I installed Redhat-derived Centos 4.2 (everything) I removed the jcc<BR>or whatever the gcc compatible java stuff is called.  Now if I say: <BR>whereis java<BR>java: /etc/java /usr/lib/java /usr/share/java<BR><BR>But<BR><BR> java -version<BR>-bash: java: command not found<BR><BR>Hmm.  So Java lives at: /usr/java/j2sdk1.4.2_09<BR><BR>Seems to me I need to get it into the path somehow right?  Can anyone throw <BR>me a clue on how to proceed so that when I type java -version from anywhere<BR>I get<BR><BR>java version "1.4.2_09"<BR>Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05)<BR>Java HotSpot(TM) Client VM (build 1.4.2_09-b05, mixed mode)<BR><BR>I'm not sure if a path change or a symlink is what I need...<BR><BR>-Nate<BR>_______________________________________________<BR>Cialug mailing list<BR><A href="mailto:Cialug@cialug.org">Cialug@cialug.org </A><BR><A href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug</A><BR></BLOCKQUOTE></DIV><BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Cialug mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Cialug@cialug.org">Cialug@cialug.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>