Doesn't use java picked trough debian alternatives.
Bug #673836 reported by
Roman A. Taycher
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat6 (Ubuntu) |
Opinion
|
Low
|
Unassigned |
Bug Description
Binary package hint: tomcat6
I may be wrong and maybe this is done to keep tomcat configuration as cross
distro as possible but from /ect/init.d/tomcat6 it looks to my untrained eyes as
though instead of picking java from debian alternatives system, it just picks the
first of openjdk,sun java 6,sun java 5,ibm java that is installed.
Changed in tomcat6 (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
To post a comment you must log in.
From /ect/init.d/tomcat6
# The first existing directory is used for JAVA_HOME (if JAVA_HOME is not "/usr/lib/ jvm/java- 6-openjdk /usr/lib/ jvm/java- 6-sun /usr/lib/ jvm/java- 1.5.0-sun /usr/lib/ j2sdk1. 5-sun /usr/lib/ j2sdk1. 5-ibm"
# defined in $DEFAULT)
JDK_DIRS=
# Look for the right JVM to use
JAVA_HOME= "$jdir"
for jdir in $JDK_DIRS; do
if [ -r "$jdir/bin/java" -a -z "${JAVA_HOME}" ]; then
fi
done
export JAVA_HOME