I have a problem with my compiled Java application on Ubuntu. It throws UnsupportedClassVersionError. I am compiling with a higher JDK version than the one that is
UnsupportedClassVersionError
Run either of the following to locate where the location is of that
javac 1.7.0_147
being used as follows:
whereis javac
or
locate javac
find javac
Then once you found the directory, symbolically and forcefully link the bin contents to /usr/bin:
sudo ln -f -s [put location here]/bin/* /usr/bin