SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Unexpected "Exec format error" on RPi 4 with OMV


trying an installation on a Raspberry Pi4 with OMV 5 I downloaded the headless tarball, decompressed it in the homedirectory and get an unexpected error staring the shell command:

pi@omv:~/songkong $ ./
./ line 1: linuxjre/bin/java: cannot execute binary file: Exec format error
pi@omv:~/songkong $ java -version
openjdk version “11.0.7” 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Raspbian-3deb10u1)
OpenJDK Server VM (build 11.0.7+10-post-Raspbian-3deb10u1, mixed mode)
pi@omv:~/songkong $

Java is installad (needed for minimserver).

Hi, headless tarball still contains a version of Java, and that is what is trying to use, try the Linux (headless install No JVM )) instead -

Thanks - I wanted to do this, but I have chosen the wrong version. What a shame … :thinking:

So … next attempt.


HI, I am also keen to try SongKong on RPI.

I had previously installed openjdk-11-jre

I DL songkong-linux-headless-novm.tgz and upacked into /opt/.

When I run ./ I get following error:

Error: LinkageError occurred while loading main class com.jthink.songkong.cmdline.SongKong
java.lang.UnsupportedClassVersionError: com/jthink/songkong/cmdline/SongKong has been compiled by a more recent version of the Java Runtime (class file version 58.0), this version of the Java Runtime only recognizes class file versions up to 55.0

Any suggestions ?


Hi, you need to install later version of Java, try openjdk-17

E: Unable to locate package openjdk-17-jre

Seems openjdk-11-jre is latest available on:

RaspiOS: 10.6 | 5.4.77-v7l+ #1371 | armv7l (32-bit)

Ah okay, we still use Java 11 on Melco Audio servers, since the latest version of java we have for them is Java 11, and that also uses a version of arm. But we don’t have a linux version for Java 11, and hoping to move Melco version to Java 17 as well.

Could you install docker, we do still use Java 11 for the arm32 Docker version

I could try… Is there an older build of SongKong that will run on java 11 ?

Ideally I would like to install SongKong on my NAS, but I don’t think you support my old qnap ts119 ?

Does your Qnap support Container Station ?

I think last Linux version to support Java 11 is 6.10.1, you could try this

No, I don’t believe I can run container station…

Yes, the 6.10.1 build seems to work … what port does it use by default ? I already have a web server running on the rpi on port 80

Great, it uses port 4567

Is there a flag to run it in daemon mode…

You can use the -r option, then just connect via WebBrowser on port 4567

Yes, I think there is already a -r option in, however, the program doesn’t keep running (as a background process) and return me to the shell … (hope that makes sense)

Okay to run it in background background you just need to add an & to the end of the command I think.

The & sort of works… I tried adding after call to shell script and it started in background but then continued logging to console.

$ /opt/songkong/ &
[1] 1407
$ debuglogfile is:/home/pi/.songkong/Logs/songkong_debug%u-%g.log
userlogfile is:/home/pi/.songkong/Logs/songkong_user%u-%g.log
songkong:remote dbinit
songkong:remote started

Also tried adding & to the end of the java command line within the .sh script, but similar result.

Closing the terminal window terminates the java process …

Okay try

nohup /opt/songkong/ &

Output should be written to nohup.out and should continue even if close terminal