Check java version in linux

broken image
broken image

The easiest way to resolve this issue is to simply move up the higher Java version expected. The good news is that this is a relatively simple issue to address. class file was compiled as a Java 1.8 class file on a Jenkins continuous integration node, but the JRE on the desktop where you want to run it only has Java 1.7, then you will get this message when you attempt to run it.

broken image

If a Java class file is compiled with a higher supported version than is currently being run, you will get the ‘bad class file’, ‘class file has the wrong version XX.0, should be XX.0’ error message.įor example, if the.