From Xubuntu 8.10, I want to run certain program from any folder where I'm currently in, AFAIK I can do this by using 'update-alternatives' command for example :
sudo update-alternatives --install /usr/bin/java java Programs/jdk1.6.0_07/jre/bin/java 300
With above command I hope I can invoke 'java -version' from anywhere, but everytime I invoke it, Xubuntu always throws the following message :
The program 'java' can be found in the following packages:
Try: sudo apt-get install <selected package>
bash: java: command not found
It seems that Xubuntu has ignored the link created and keep telling me to install the package.
I've just migrated from Fedora and it worked as expected there.
Any help would be greatly appreciated.