JDK Vs JRE Version
Got stuck while running an executable jar due to different version of JRE.
Unsupported major.minor version 51.0
Hence, I have to figure out what version of the JRE that I am currently using in my box.
nurrak@nbtplan002:/tmp$ java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.4)
OpenJDK Server VM (build 20.0-b12, mixed mode)
then, I have to modify my current java version by using following command :
sudo update-alternatives --config java