Bug#619844: JAVA_HOME is not correctly set in startGroovy script

Miguel Landaeta miguel at miguel.cc
Sun Mar 27 18:51:57 UTC 2011

Package: groovy
Version: 1.7.9-1
Severity: important

To set JAVA_HOME before trying to detect which JRE is installed
is probably wrong.

export JAVA_HOME="${JAVA_HOME:-/usr/lib/jvm/default-java}"

If a user has installed sun-java6-jre, groovy will fail to

miguel at alice:~$ groovy -v
groovy: JAVA_HOME is not defined correctly, can not execute: /usr/lib/jvm/default-java/bin/java

I'll fix this soon.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages groovy depends on:
ii  antlr                         2.7.7-16   language tool for constructing rec
ii  ivy                           2.2.0-1    The agile dependency manager
ii  junit4                        4.8.2-2    JUnit regression test framework fo
ii  libasm3-java                  3.2-3      Java bytecode manipulation framewo
ii  libbsf-java                   1:2.4.0-4  Bean Scripting Framework to suppor
ii  libcommons-cli-java           1.2-3      API for working with the command l
ii  libcommons-logging-java       1.1.1-8    commmon wrapper interface for seve
ii  libjansi-java                 1.4-2      Java library for generating and in
ii  libjline-java                 0.9.94-5   Java library for handling console 
ii  libmockobjects-java           0.09-4     Framework for developing and using
ii  libregexp-java                1.5-2      Regular expression library for Jav
ii  libservlet2.5-java            6.0.32-1   Servlet 2.5 and JSP 2.1 Java API c
ii  libxstream-java               1.3.1-6    Java library to serialize objects 
ii  sun-java6-jre [java5-runtime- 6.24-1     Sun Java(TM) Runtime Environment (

groovy recommends no packages.

Versions of packages groovy suggests:
pn  ant                           <none>     (no description available)
pn  groovy-doc                    <none>     (no description available)

-- no debconf information

Miguel Landaeta, miguel at miguel.cc
secure email with PGP 0x7D8967E9 available at http://keyserver.pgp.com/
"Faith means not wanting to know what is true." -- Nietzsche

More information about the pkg-java-maintainers mailing list