I am trying to run a HashMap program with NetBeans 12.6, and when I click run, it prints this error:
java.lang.UnsupportedClassVersionError: com/java24hours/FontMapper 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 57.0
I'm not sure how to fix this. Do I change the JDK I'm using?