From owner-freebsd-java@FreeBSD.ORG Thu Feb 21 12:52:34 2008 Return-Path: <owner-freebsd-java@FreeBSD.ORG> Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60B0516A406 for <java@FreeBSD.org>; Thu, 21 Feb 2008 12:52:34 +0000 (UTC) (envelope-from tommyhp2@yahoo.com) Received: from web38206.mail.mud.yahoo.com (web38206.mail.mud.yahoo.com [209.191.124.149]) by mx1.freebsd.org (Postfix) with SMTP id DD60E13C4DD for <java@FreeBSD.org>; Thu, 21 Feb 2008 12:52:33 +0000 (UTC) (envelope-from tommyhp2@yahoo.com) Received: (qmail 96778 invoked by uid 60001); 21 Feb 2008 12:25:53 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Y3ebOIVfaqf8mM9vc4IU8/8flIYcQlQBmjH/Y1TRawFpNBRcfvsMBQDgfq+vAtdqI9448Jzgnxz8FAxzNIs9MelKGAQ1tLKTHqn41XvDtr6Fmd2nAZRWVwZPYzZ1Q9m7eU/lPDpl5eBSn2drYn3ZOLdv2fwFxYZgwz9kGs2BCUQ=; X-YMail-OSG: 8UVswWYVM1nxIqnQ1uwx4GMYvElYHkgHHLjLT.vWYiBKAZMPlB3IUUquda1ETuQHknQfcY4QUoR9504uZKEiXUS9YRqqcGPyt5WhncpM7Rwj.DQrj4c- Received: from [24.227.124.250] by web38206.mail.mud.yahoo.com via HTTP; Thu, 21 Feb 2008 04:25:52 PST Date: Thu, 21 Feb 2008 04:25:52 -0800 (PST) From: Tommy Pham <tommyhp2@yahoo.com> To: Ulf Lilleengen <lulf@FreeBSD.org>, glewis@FreeBSD.org In-Reply-To: <20080221120333.GA36004@carrot.studby.ntnu.no> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <953154.96699.qm@web38206.mail.mud.yahoo.com> Cc: java@FreeBSD.org Subject: Re: [PATCH] Javavmwrapper defaulting to bsd.java.mk wrong? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>, <mailto:freebsd-java-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java> List-Post: <mailto:freebsd-java@freebsd.org> List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>, <mailto:freebsd-java-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 21 Feb 2008 12:52:34 -0000 --- Ulf Lilleengen <lulf@FreeBSD.org> wrote: > Hello, > > As I was trying to use jdk16 and diablo-jdk15 on the same machine, it > would > always default to jdk15. I figured the javavmwrapper script tries to > use the > bsd.java.mk PREFERRED_VERSION to determine this. This lead me to > question if > there is any good reason that bsd.java.mk should be checked before > the > versions set in javavms? > > Attached is a patch which adds "support" for Java 1.6 to the wrapper > script, > but also changes the order in how the java version to be used is. I'm > no big > user of java, so I'm not sure if there is a reason for the old > behaviour, so > excuse me if this is wrong. > > -- > Ulf Lilleengen > Hi, I did had this problem too at one point then I comment out the diablo-jdk1.5 in /usr/local/java/javavms like this: /usr/local/jdk1.5.0/bin/java # FREEBSD-JDK1.5.0 # /usr/local/diablo-jdk1.5.0/bin/java # DiabloCaffe1.5.0 There after I install a port requiring java like maven, I see it finds ===> Installing for maven-1.0.2_1 ===> maven-1.0.2_1 depends on executable: java - found ===> maven-1.0.2_1 depends on file: /usr/local/jdk1.5.0/bin/java - found ===> Generating temporary packing list Where as before, it always refer to diablo jdk. I don't know if this is causing any issues for other java apps but glassfish runs good for me to certain extent :) Hope this helps, Tommy