[SRU] JAVA_HOME auto-detection fails due to whitespace in update-java-alternatives output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
Fix Released
|
Medium
|
Unassigned | ||
imagej (Debian) |
Fix Released
|
Unknown
|
|||
imagej (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned | ||
Zesty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
* running imagej with auto detected JAVA_HOME fails
[Test Case]
* run it
[Regression Potential]
* none, this is a bug because update-
[Other Info]
Running imagej fails with the following message:
Open other images in this ImageJ panel as follows:
imagej -p 3 <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.
even though multiple JVM's are installed here.
The problem is that the /usr/bin/imagej script detects JAVA_HOME using
JAVA_
which is empty as the output of update-
java-1.
java-1.
java-1.
and cut -d' ' -f3 selects space. The solution is to squeeze multiple spaces before running cut, so the line should read:
JAVA_
which then gives the correct output (/usr/lib/
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: imagej 1.50d+dfsg-1
ProcVersionSign
Uname: Linux 3.19.0-
NonfreeKernelMo
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Mar 14 15:56:23 2016
PackageArchitec
SourcePackage: imagej
UpgradeStatus: Upgraded to xenial on 2012-03-12 (1463 days ago)
Changed in imagej (Ubuntu): | |
importance: | Undecided → Medium |
Changed in hundredpapercuts: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in imagej (Debian): | |
status: | Unknown → Fix Released |
Changed in imagej (Ubuntu): | |
status: | Confirmed → Fix Released |
summary: |
- JAVA_HOME auto-detection fails due to whitespace in update-java- + [SRU] JAVA_HOME auto-detection fails due to whitespace in update-java- alternatives output |
Changed in imagej (Ubuntu Yakkety): | |
status: | New → Fix Committed |
Changed in imagej (Ubuntu Xenial): | |
status: | New → Fix Committed |
Changed in imagej (Ubuntu Yakkety): | |
status: | Fix Committed → Fix Released |
Changed in hundredpapercuts: | |
status: | Confirmed → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.