edit your `/etc/profile' file and set the PATH for your java home and java binary directory in that<br>
<br>
add something like this:<br>
<br>
export JRE_HOME=/usr/java/jre1.5.0_05<br>
export PATH=$PATH:$JRE_HOME/bin<br>
<br>
edit it for your self<br>
<br><br><div><span class="gmail_quote">On 12/6/05, <b class="gmail_sendername">Alfred Vahau</b> <<a href="mailto:Alf.Vahau@upng.ac.pg">Alf.Vahau@upng.ac.pg</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;">
I have installed the j2sdk1.4.2_10 Java binary on my Ubuntu system
(Warty) and made a symbolic to the java and javac commands in
/usr/bin/java and /usr/bin/javac. /usr/bin is on the PATH environment.
Where I issue the <b>which java</b> command, it returns a blank line.
When I issue <b>whereis java<br>
</b>it returns a positive output: <b>java: /usr/bin/java<br>
<br>
</b>I conclude that the output of the <b>which</b> command is an
acknowledgement of the path being correct. For instance, I can issue <b>which
perl</b> and get the result<br>
/usr/bin/perl so the perl command is on the system path.<br>
<br>
The java symbolic links are soft links and created thus<br>
<br>
ln -s /usr/local/bin/j2sk1/4/2_10/bin/java /usr/bin/java<br>
ln -s /usr/local/bin/j2sk1/4/2_10/bin/java /usr/bin/javac<br>
<br>
The java binary file (with extension bin) was unpacked in the
/usr/local/bin directory.<br>
How can I get the system to recognize that java and javac are on the
environment path? I have tried rebooting (I didn't think this was
necessary but tried anyway and it didn't make a difference.) For noting
the execution of the <b>java</b> command is successful when I am in
the directory containing the command and issuing a command for an
example like so:<br>
<br>
./java -jar SampleTree.jar<br>
<br>
and I get a window with the demonstrated output.<br>
<br>
Thanks in advance for any pointers.<br><span class="sg">
<br>
Alfred,<br>
<br>
</span><br>--<br>ubuntu-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">
http://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>==================================================<br>Yours Sincerely, Mehdi Hassanpour<br>----------------------------------------------------------------------
<br>/* Of one Essence is the human race,<br>Thusly has Creation put the Base;<br>One Limb impacted is sufficient,<br>For all Others to feel the Mace.<br>
~Saadi (persian poet) -1258 */<br>----------------------------------------------------------------------<br><a href="http://ImPersian.com">http://ImPersian.com</a> | <a href="http://Hezardastan.org">http://Hezardastan.org
</a><br>==================================================