I installed Java 1.8 from Oracle on Ubuntu, because although it would be better, the new version is compatible with the previous ones. But this is not so.
javac1.8 displays bytecode that runs only on java-8 oracle, scala does not run.
Before the upgrade, I used java-7-openjdk, everything was in order. While I can select my old virtual machine with sudo update-alternatives --config java, but I also need to be able to choose an older compiler. How can i do this?
source
share