<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
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>
<br>
Alfred,<br>
<br>
</body>
</html>