For some reason on my computer, new versions of Java just don't work
correctly - they insist on trying to load the Input Method jars:
So, to make everything work, I have to copy them into the correct place.
sudo cp im/*.jar ext
After this everything works normally.