Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: it/uniroma2/art/semanticturkey/app/Application 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
My Java version is OpenJDK 17. I tried upgrading this to OpenJDK 21 but the error message is the same.
Can anyone suggest how to get past this problem?
Thanks,
Ian.
--
Dear Ian,
I was wondering whether we compiled by mistake v 14.0 with an higher java version. However, the version mention for the class file (52.0) is associated with Java 8 if I’m not wrong, so I guess you are running VB on a different VM from the one you think you are using.
Furthermore, the one mentioned for the build (61.0) is associated with Java 17 (so the one we declare), which seems to confirm my hypothesis.
You might check your JAVA_HOME environment variable. If set, check where it points to. VB would use that to locate the JVM instead of the Path for simply resolving the Java executable.
Kind Regards,
Armando
--
You received this message because you are subscribed to the Google Groups "vocbench-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vocbench-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vocbench-user/765371b3-9444-404b-9146-518f9cde4740n%40googlegroups.com.
Glad it helped! :-)
To view this discussion visit https://groups.google.com/d/msgid/vocbench-user/96d08292-6c5c-41bf-a349-90dbbaaeb4d4n%40googlegroups.com.