I am trying to run a Java Application in Eclipse. I ran it about a month ago and it worked, and I can't think of what has changed. When I try to run it now, I get this error:
java.lang.UnsupportedClassVersionError: data_validation/Validation 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
I believe that what is happening is that it was compiled using Java 15 (class file version 59) but I'm trying to run it in Java 8 (class file version 52). This website explains it: https://all-learning.com/java-lang-unsupportedclassversionerror/ and here is a more complete list of class file versions: https://javaalmanac.io/bytecode/versions/
The only problem is, I never installed Java 15. Under C:\Program Files\Java, I just have jdk1.8.0_161. So how is it compiling in Java 15 and how to I tell Eclipse to compile and run in Java 8?
Thanks!