I know there is version conflict. Just want someone to tell me how to resolve it. In previous stackoverflow post no one tells the solution.
Versions: Ubuntu: 12.04.1 LTS
On Ubuntu to change Java version for both compiling and running you need to call:
sudo update-alternatives --config javac
and
sudo update-alternatives --config java