Updating JVM/Java Runtime Env on Ubuntu Feisty

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s