imagej won't start (xenial)

Bug #1579185 reported by Rodrigo G
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
imagej (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in imagej (Ubuntu):
status: New → Confirmed
Revision history for this message
Viniciusferrao (viniciusferrao) wrote :

It still happens on Bionic.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.