Dear Ulf, Jeanne;
Thanks for your replies and welcome wishes.
Your comments gave me the necessary courage and strength to remove everything that seemed to be old IcedTea
and OpenJDK stuff. Indeed, my installation was a mess, didn't know how things got to that confusing state.
Now, when I check the versions I get:
$ javac -version
javac 1.7.0_51
$ java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
And now everything works as intended.

I'm back to the Java business again and can proceed with the lessons.
Case closed.
Thanks a lot!
Fausto