[Debian-med-packaging] Bug#881853: Error: This Java instance does not support a 64-bit JVM.

Andrey Gursky andrey.gursky at e-mail.ua
Wed Nov 15 19:11:19 UTC 2017


Source: imagej
Version: 1.51q-1

Dear maintainer,

I cannot start imagej anymore. It fails with: "Error: This Java instance 
does not support a 64-bit JVM."

I've investigated this and found that the script /usr/bin/imagej picks 
up the wrong JDK:

$ /usr/sbin/update-java-alternatives -l | grep openjdk | sort | tail -1 
| tr -s ' ' | cut -d' ' -f 3
/usr/lib/jvm/java-1.8.0-openjdk-i386

Additionally to amd64 I have also i386 JDK installed:

$ /usr/sbin/update-java-alternatives -l | grep openjdk | sort
java-1.8.0-openjdk-amd64       1081       
/usr/lib/jvm/java-1.8.0-openjdk-amd64
java-1.8.0-openjdk-i386        1081       
/usr/lib/jvm/java-1.8.0-openjdk-i386

Looking into package git repo, I found many commits trying to fix 
similar issues. If no proper fix is known, I'd propose the next 
workaround: the architecture suffix should be stripped and replaced with 
"dpkg-architecture -q DEB_TARGET_ARCH".

Regards,
Andrey



More information about the Debian-med-packaging mailing list