When I run the file through command shell I get this error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: packageCalculator/Calculator has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 52.0
When I run: java - version
I get: java version "1.8.0_281" Java(TM) SE Runtime Environment (build 1.8.0_281-b09) Java HotSpot(TM) Client VM (build 25.281-b09, mixed mode, sharing)
Does Eclipse use a java version greater than current VM? Please help to solve the problem