java-wrappers fails ito find java runtimes installed in /opt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
java-wrappers (Ubuntu) |
In Progress
|
Undecided
|
Unassigned |
Bug Description
[Impact]
java-wrappers failed to find java runtime installed in /opt, which caused all java-based program failed to launch, if the user installed java runtime from Oracle.
apt-cache rdepends java-wrappers
java-wrappers
Reverse Depends:
freemind
worldwind
jajuk
weka
umlet
sweethome3d
statsvn
statcvs
sqlline
pdfsam
opticalraytracer
latexdraw
jxplorer
jsymphonic
jmeter
jftp
jeuclid-
jeuclid-cli
jedit
jardiff
jalview
jabref
hdfview
freeplane
freemind
freecol
elki
electric
checkstyle
bnd
basex
azureus
yui-compressor
libfop-java
libbatik-java
[Test Case]
UBUNTU RELEASE (cat /etc/lsb-release)
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
PACKAGES
ii freemind 0.9.0+dfsg-1 Java Program for creating and viewing Mindmaps
ii java-wrappers 0.1.24 wrappers for java executables
When /etc/alternativ
__jvm_alt=
Reason is that bacause sed expression did not match path in /opt/..., no substitution is made, and such sed statement prints pattern space only if substitution is made.
Therefore in /usr/lib/
if echo "$DIRS" | fgrep "$__jvm_alt" > /dev/null ; then
JAVA_
java_debug "Picking up the JVM designated by the alternatives system: "
java_debug " JAVA_HOME = '$JAVA_HOME'"
else
# And pick up the first one that works reasonably
for dir in $DIRS; do
if [ -x $dir/bin/java ]; then
JAVA_
break;
fi
done
fi
This eventually leads to this abnormal exit:
if [ "$JAVA_HOME" ] ; then
# ... omitted ...
else
java_warning "No java runtime was found"
return 1;
fi
Hence other packages that use java-wrappers, e.g. freemind, experience other failures because java-wrappers failure. In example of freemind, it will not start at all.
description: | updated |
Changed in java-wrappers (Ubuntu): | |
assignee: | nobody → Rex Tsai (chihchun) |
Changed in java-wrappers (Ubuntu): | |
assignee: | Rex Tsai (chihchun) → nobody |
Status changed to 'Confirmed' because the bug affects multiple users.