I have the error java.lang.UnsupportedClassVersionError: org/dita/dost/invoker/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
and I understand that there is a compatability issue with the class file. I am using
java version "1.8.0_351" Java(TM) SE Runtime Environment (build 1.8.0_351-b10) Java HotSpot(TM) Client VM (build 25.351-b10, mixed mode, sharing)
with the DITA OT which states that I should have java version 17 or above. I understand class file version 52 to be from Java 8.
this tells me that java version 18 should be compatable with class file version 52, but I don't know how to locate the class file or how to change it, or where to get the replacement file 52. I am completely new to java and the dita toolkit.
I have set JAVA_HOME /Java/jre1.8.0_351 and PATH /Java/jre1.8.0_351/bin.