From owner-freebsd-java@FreeBSD.ORG Mon Dec 6 14:13:41 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 B032F16A4CE for ; Mon, 6 Dec 2004 14:13:41 +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 A92EE43D2F for ; Mon, 6 Dec 2004 14:13:40 +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])iB6EDdvC064229; Mon, 6 Dec 2004 15:13:39 +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 iB6EDd0e064228; Mon, 6 Dec 2004 15:13:39 +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 15:13:39 +0100 From: Herve Quiroz To: Jiawei Ye Message-ID: <20041206141338.GA64147@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> 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 14:13:41 -0000 On Mon, Dec 06, 2004 at 09:05:15PM +0800, Jiawei Ye wrote: > They are erh....not related at all, which was why it took me about 2 > hrs to figure out why my amavisd-new b0rked. Java is not a dependancy > of amavisd-new nor vice versa. I just happen to use both of them. The > only java-related portion in amavisd is where it needs to figure out > the mime-type of a multipart mail. Other than that, I have no clue why > javavmwrapper clobbers amavisd-new. IMHO, this means that amavisd-new is using a JDK through the 'java' command. It was already doing this BTW, but now javavmwrapper installs a 'java' executable in a directory included in $PATH ($PREFIX/bin/). So I guess we should either disable this use of Java in the amavisd-new port or fix this support. Do you have any JAVA* variable defined? Please try unsetting all of them (JAVA_VERSION, JAVA_HOME, JAVAVM...). The error you reported should only be raised if some criteria is specified regarding the JVM and a suitable JVM cannot be found. When nothing is specified, any JVM would fit and thus javavmwrapper will raise no error. OTOH, maybe you just have javavmwrapper installed and no JDK, and thus there is a 'java' executable with no JDK to run on the other side (thus no suitable JVM, as there's no JVM at all). But I doubt this is the case. Herve