Ubuntu supplies the "OpenJDK" flavour of Java by default. This may be fine for most purposes but you will find several development tools demand that you use Sun/Oracle's own Java. Now finding it and installing it is not a great problem. There are several FAQs for that. But every so often the system gets confused about which Java it is supposed to be using.
Oct 27 2010