Public bug reported:

After installation, attempting to run imagej gives the following error:

$ imagej
Open other images in this ImageJ panel as follows:
  imagej -p 1 <image1> [<image2> ... <imageN>]

No JVM found to run ImageJ
Please apt-get install a JVM to run ImageJ or 
set JAVA_HOME if it's not a JVM from a Debian Package.

Apparently there is an error in the /usr/bin/imagej start script, and
can be fixed by changing line 32:

JAVA_HOME=$(/usr/sbin/update-java-alternatives -l | grep openjdk | sort | tail 
-1 | cut -d' ' -f 3)
to
JAVA_HOME=$(/usr/sbin/update-java-alternatives -l | grep openjdk | sort | tail 
-1 | tr -s ' ' | cut -d' ' -f 3)

** Affects: imagej (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579185

Title:
  imagej won't start (xenial)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/imagej/+bug/1579185/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to