Error in java
I was trying to run a java program with terminal then I faced an error. Java compilation was competed but the problem occurred when I executed `java prog` (prog is the name of my file). Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: prog has been compiled by a more recent version of the Java Runtime (class file version 56.0), this version of the Java Runtime only recognizes class file versions up to 52.0 Error was lot more big but due to word limit I am unable to give it full. My java compiler version - 12.0.1 My java version - java version "1.8.0_281" Java(TM) SE Runtime Environment (build 1.8.0_281-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.281-b09, mixed mode) My complete error > https://code.sololearn.com/cS0lM7l2YE91/?ref=app