Execution of java and javac commands
Dick Davies
rasputnik at gmail.com
Tue Dec 6 14:57:14 UTC 2005
> On 12/5/05, Alfred Vahau <Alf.Vahau at upng.ac.pg> wrote:
> > 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 java command is successful when I am in the directory containing the
> > command and issuing a command for an example like so:
> >
> > ./java -jar SampleTree.jar
Add the directory you are in to the path.
I should point out that /usr/bin/java is supposed to be a symlink into
/etc/alternatives.
If you install a jdk 'The Debian (Ubuntu) Way[1], you'd use :
update-alternatives --set java /path/to/java command
to point the /usr/bin/java symlink where you want it to be.
Do the same thing for javac, rmid, etc.
(some of these are taken care of automatically for you if you install with
java-package) .
[1]: http://www.debian-administration.org/articles/142
--
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/
More information about the ubuntu-users
mailing list