From owner-freebsd-java@FreeBSD.ORG Mon Dec 6 15:19:30 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71BC916A4D8 for ; Mon, 6 Dec 2004 15:19:30 +0000 (GMT) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48B0543D68 for ; Mon, 6 Dec 2004 15:19:27 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1])iB6FJQBE049797; Mon, 6 Dec 2004 16:19:26 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.1/8.13.1/Submit) id iB6FJP9k049791; Mon, 6 Dec 2004 16:19:25 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Mon, 6 Dec 2004 16:19:25 +0100 From: Herve Quiroz To: Jiawei Ye Message-ID: <20041206151925.GA46999@arabica.esil.univ-mrs.fr> Mail-Followup-To: Jiawei Ye , freebsd-java@freebsd.org References: <20041206101840.3587A1CF@chihiro.leafy.idv.tw> <20041206113803.GA49323@arabica.esil.univ-mrs.fr> <20041206141338.GA64147@arabica.esil.univ-mrs.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-java@freebsd.org Subject: Re: javavmwrapper messes up amavisd-new X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2004 15:19:30 -0000 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