Before writing the previous post, I had noticed that the version number of the current stable release of Java is 1.8 update 51.
- Google “ubuntu 14.04 java 8”.
- Click on the first search result.
Follow the instructions there.
Note that the command in the section “Configuring Java Environment” should be run before the one in “Verify Installed Java Version”.1
The encoding of files can be converted using