Java compile error when running semanticturkey.sh

18 views
Skip to first unread message

Ian Piper

unread,
Jun 9, 2025, 6:29:01 AMJun 9
to vocbench-user
I'm trying to do a fresh installation of VocBench 3-14.0.0. When running the shell script I get this error:

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.

--


stel...@uniroma2.it

unread,
Jun 9, 2025, 10:29:09 AMJun 9
to Ian Piper, vocbench-user

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.

Ian Piper

unread,
Jun 9, 2025, 1:06:24 PMJun 9
to vocbench-user
Thank you Armando. That was the case; My .bashrc file was loading the wrong JVM into the environment and that was overriding the Java version that I had installed today. It seems to be working now, so I can explore.

Thanks for the swift response.

Ian.
--

stel...@uniroma2.it

unread,
Jun 9, 2025, 1:12:22 PMJun 9
to Ian Piper, vocbench-user
Reply all
Reply to author
Forward
0 new messages