JAVA_HOME environment variable
Java programs like ImageJ may refuse to start because they cannot find JAVA_HOME environment variable. Be sure Java JRE is installed.
apt install default-jre
suppose it’s at /usr/lib/jvm/default-java, then:
imagej is the Java program of interest.
If the command now works, in ~/.profile set