From owner-freebsd-questions@FreeBSD.ORG Wed Apr 5 21:35:41 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44D4416A400 for ; Wed, 5 Apr 2006 21:35:41 +0000 (UTC) (envelope-from jeff.cross@averageadmins.com) Received: from av4.valornet.net (av4.valornet.net [66.55.224.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 953B943D72 for ; Wed, 5 Apr 2006 21:35:40 +0000 (GMT) (envelope-from jeff.cross@averageadmins.com) Received: (qmail 29980 invoked by uid 89); 5 Apr 2006 21:35:39 -0000 Received: from unknown (HELO mail4.valornet.net) (69.30.128.23) by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP; 5 Apr 2006 21:35:39 -0000 Received: (qmail 20260 invoked by uid 89); 5 Apr 2006 21:35:38 -0000 Received: by simscan 1.1.0 ppid: 20249, pid: 20254, t: 0.1548s scanners: attach: 1.1.0 clamav: 0.85.1/m:31/d:910 spam: 3.0.2 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on mail4.valornet.net X-Spam-Level: X-Spam-Status: No, score=0.1 required=15.0 tests=AWL autolearn=disabled version=3.1.0 Received: from unknown (HELO ?192.168.1.100?) (66.55.255.50) by 0 with SMTP; 5 Apr 2006 21:35:38 -0000 Message-ID: <4434382A.6090905@averageadmins.com> Date: Wed, 05 Apr 2006 16:35:38 -0500 From: Jeff Cross User-Agent: Thunderbird 1.5 (X11/20060402) MIME-Version: 1.0 To: "[LoN]Kamikaze" References: <4434286A.1010209@averageadmins.com> <44342E44.5050108@gmx.de> In-Reply-To: <44342E44.5050108@gmx.de> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, questions@freebsd.org Subject: Re: Using javavmwrapper X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 21:35:41 -0000 [LoN]Kamikaze wrote: > Jeff Cross wrote: >> Can anyone give me some guidance in using javavmwrapper? I have >> searched high and low (I know someone will post the link I have >> overlooked) but can't seem to find any detailed information on how to >> use it. I understand that there are some environment variables I can use >> to choose between different VMs (linux-sun-jdk-1.4.2, jdk-1.4.2, and >> jdk-1.5.0) but I can't seem to locate anything. >> > > I do not know where this is documented, but the best way to deal with it > is setting the variable JAVA_PREFERRED_PORTS in your '/etc/make.conf'. I.e. > > JAVA_PREFERRED_PORTS?= JAVA_PORT_NATIVE_BSDJAVA_JDK_1_5 > > for jdk15. The complete list is > > > JAVA_PORT_NATIVE_BSDJAVA_JDK_1_5 > JAVA_PORT_NATIVE_BSDJAVA_JDK_1_4 > JAVA_PORT_NATIVE_BSDJAVA_JDK_1_3 > JAVA_PORT_NATIVE_FREEBSD_JDK_1_3 > JAVA_PORT_NATIVE_BSDJAVA_JDK_1_2 > JAVA_PORT_NATIVE_BSDJAVA_JDK_1_1 > JAVA_PORT_LINUX_SUN_JDK_1_4 > JAVA_PORT_LINUX_SUN_JDK_1_3 > JAVA_PORT_LINUX_SUN_JDK_1_2 > JAVA_PORT_LINUX_BLACKDOWN_JDK_1_4 > JAVA_PORT_LINUX_BLACKDOWN_JDK_1_3 > JAVA_PORT_LINUX_BLACKDOWN_JDK_1_2 > JAVA_PORT_LINUX_IBM_JDK_1_4 > JAVA_PORT_LINUX_IBM_JDK_1_3 > > to be found in '/usr/ports/Mk/bsd.java.mk'. > > >> Also, does it only help when compiling ports that use Java or will it >> work to run an application with a different VM? >> > > You can run software that was built by older versions, but not vice > versa. That means you can run software that was compiled by 1.4 on 1.5 > but not the other way around. Unless you set something like '-target > 1.4' when building. > >> Any assistance is greatly appreciated. >> >> Jeff Cross >> www.averageadmins.com > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > > > Here is the reason I am asking, and maybe someone could shed some light on this as well. I have been using Zend Studio Client 4.0.2 on FreeBSD 6.0-SECURITY for quite some time. I updated my ports and packages (which Zend is not) the other day and it hasn't worked since. So, if I wanted to try running Zend with the jdk15 port, how would I specify that I wanted to use the 1.5 version of the jdk before firing off the process? I wouldn't think that making the change in my make.conf file would do this, would it? Thanks in advance! Jeff Cross www.averageadmins.com