When I installed the latest Java Runtime Environment in my Ubuntu Feisty box, it did not automatically get itself registered as a default environment. I issued the command ‘java -version’ and it still showed the 1.4 version. Ughh!
Thanks Google search, I was able to discover the trick. On terminal, I just have to issue the following commands (with comment in parentheses):
- update-java-alternatives -l (to list the installed runtime versions)
- sudo update-java-alternatives -s java-6-sun (java-6-sun is the latest one listed in my box)
That did the trick.
Powered by ScribeFire.