Bug#337270: tomcat5: Suggest java-gcj-compat-dev
Wolfgang Baer
WBaer at gmx.de
Thu Nov 3 17:23:01 UTC 2005
Hi David,
David N. Welton wrote:
> Wolfgang Baer wrote:
>
>
>>So I assume before installing java-gcj-compat-dev you had only kaffe
>>installed ? Or also a non-free runtime providing java2-runtime ?
>
>
> I had kaffe.
>
>
>>Can you say what did not work correctly before ? What is in the
>>various tomcat logs (/var/log/tomcat5/*) ?
>
>
> The JAVA_HOME environment variable is not defined correctly
> This environment variable is needed to run this program
> NB: JAVA_HOME should point to a JDK not a JRE
OK. This explains it and I think I got it now.
I assume - beside kaffe - you also had java-gcj-compat (not the -dev
package) installed before. The JDK_DIRS variable in tomcat5 init script
has the java-gcj-compat directory before the kaffe directory.
As you had installed kaffe and java-gcj-compat on your system the tomcat5
installation found kaffe and the depends are satisfied. During startup
when tomcat5 init script looks for a usable JDK directory it founds first
/usr/lib/jvm/java-gcj (as this is there throught java-gcj-compat) and takes
it although not the -dev package is installed.
So its a bug which is not solvable by dependencies alone. We will have
to implement some more logic into the init script to test if only
java-gcj-compat or the wanted java-gcj-compat-dev is installed if we
find /usr/lib/jvm/java-gcj directory.
Please check if java-gcj-compat was also installed before so I know
my analysis is correct.
Thanks,
Wolfgang
More information about the pkg-java-maintainers
mailing list