Friday, August 13, 2010

/etc/alternatives/-->Debian alternatives system

Where is location of java on ubuntu?
Finding out the answer is not just use "whereis java" or "which java":

The alternatives directory lead to the alternative concept. when you type java, it could refer to a different real java location if a new version has just installed.
Eg. I was using java 5, typing java would start JVM 5; after installing java 6, type java would start JVM6.

Intuitively, I think having this extra level of indirection is useless...

1 comment:

  1. Really? What if you have three versions of Java, Four web browsers, five text editors .. etc. etc. ...

    The alternatives system is there to make things easy ... However it would probably be best to let either synaptic or aptitude handle the heavy lifting as the package managers have probably tested package installation quite well before pushing them to the repos ...

    ReplyDelete