Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Dec 2004 16:19:25 +0100
From:      Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
To:        Jiawei Ye <leafy7382@gmail.com>
Cc:        freebsd-java@freebsd.org
Subject:   Re: javavmwrapper messes up amavisd-new
Message-ID:  <20041206151925.GA46999@arabica.esil.univ-mrs.fr>
In-Reply-To: <c21e92e204120606317692951@mail.gmail.com>
References:  <20041206101840.3587A1CF@chihiro.leafy.idv.tw> <20041206113803.GA49323@arabica.esil.univ-mrs.fr> <c21e92e204120605053fbd175b@mail.gmail.com> <20041206141338.GA64147@arabica.esil.univ-mrs.fr> <c21e92e204120606317692951@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 06, 2004 at 10:31:33PM +0800, Jiawei Ye wrote:
> I have a valid JDK with no JAVA_* set in the environment. Running
> 'java' in a normal shell gives normal results. My guess is that
> amavisd-new runs 'java' with an incorrect search path which is later
> passed to the javavmwrapper executable. Any thoughts on how to verify
> that point?

In /usr/local/bin/javavm:

export PATH=/bin:/sbin:/usr/bin:/usr/sbin

javavmwrapper indeed enforces its own search path so that should not
cause any trouble. Maybe amavisd-new just sets JAVA_HOME prior to
running 'java'. Could you try setting JAVA_HOME to your installed JDK
home before running amavisd-new?

If this doesn't work either, I will try to dig further into amavisd-new.

Hum, in this extend, I just did the following:

$ cd /usr/ports/security/amavisd-new
$ make extract
$ grep -ri java work
work/amavisd-new-2.2.0/amavisd:  [qr/^compiled Java class data\b/    => 'java'],

I don't see where 'java' is invoked... but I'm not quite a perl
programmer myself. Maybe that's just another application (that should be
part of amavisd-new dependencies) that calls 'java'. I guess we should
contact the maintainer of the port to be sure.

Herve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041206151925.GA46999>