Unrecognized option: -d64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
imagej (Debian) |
Fix Released
|
Unknown
|
|||
imagej (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I installed imagej (version 1.51q-1) on my Mint 19 machine via Ubuntu bionic repositories.
In its default configuration, imagej cannot be started. If run from the command line, the error reported is:
Open other images in this ImageJ panel as follows:
imagej -p 1 <image1> [<image2> ... <imageN>]
Unrecognized option: -d64
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
The issue seems to be caused by the new version of the Java, which does not accept -d64 as the same error happens if I call "java -d64":
Unrecognized option: -d64
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
The problem is resolved if I remove the architecture variable in the startup script of imagej (/usr/bin/imagej) at lines 420 and 422. That originally reads:
echo $JAVA_HOME/bin/java ${arch} -mx${mem}m ${jni} ${modules} ij.ImageJ -ijpath ${ij_user_path} -port${count} ${images} ${macrocmd} ${macroargs}
Modified version:
echo $JAVA_HOME/bin/java -mx${mem}m ${jni} ${modules} ij.ImageJ -ijpath ${ij_user_path} -port${count} ${images} ${macrocmd} ${macroargs}
Thank you
tags: | added: bionic |
Changed in imagej (Debian): | |
status: | Unknown → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.