From owner-freebsd-questions@FreeBSD.ORG Wed Feb 1 09:21:49 2006 Return-Path: X-Original-To: freebsd-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 C94A616A422 for ; Wed, 1 Feb 2006 09:21:49 +0000 (GMT) (envelope-from martinkov@pobox.sk) Received: from smtp.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.FreeBSD.org (Postfix) with SMTP id 6B39E43D49 for ; Wed, 1 Feb 2006 09:21:46 +0000 (GMT) (envelope-from martinkov@pobox.sk) Received: (qmail 91422 invoked by uid 0); 1 Feb 2006 09:21:45 -0000 Received: from r5k4.chello.upc.cz (HELO ?86.49.10.4?) (86.49.10.4) by smtp.dkm.cz with SMTP; 1 Feb 2006 09:21:45 -0000 Message-ID: <43E07DA9.2020006@pobox.sk> Date: Wed, 01 Feb 2006 10:21:45 +0100 From: martinko User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051205 X-Accept-Language: sk, cs, en-gb, en-us, en MIME-Version: 1.0 To: Micah References: <43C02026.5020707@gmail.com> <43C041B8.2080008@ywave.com> <43D3D60C.4090502@pobox.sk> <43D3DD95.4040308@ywave.com> In-Reply-To: <43D3DD95.4040308@ywave.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, freebsd-java@freebsd.org Subject: Re: Java Virtual Machine 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, 01 Feb 2006 09:21:49 -0000 Micah wrote: > martinko wrote: > >> Micah wrote: >> >>> Porpoise Power wrote: >>> >>>> Which Java VM is the best for freebsd 5.4, running gnome2, and >>>> firefox? >>>> >>>> James Best >>> >>> >>> >>> Both the native jdk14 and jdk15 provide good Java VMs. jdk15 is >>> newer and might be unstable (hasn't been for me). jdk14 is more >>> tested and is the "default" java for FreeBSD on i386. >>> >>> HTH, >>> Micah >> >> >> can you have both versions installed ? >> and how do you choose which one of them to use (for instance in >> mozilla) ? >> >> m. > > > Yes, you can have both installed at the same time. > /usr/ports/java/javavmwrapper makes switching JVMs easy using > environment variables, however it doesn't seem to support switching > browser plugins. For that you'd probably have to switch the symlink > in /usr/X11R6/lib/browser_plugins and restart the browser. > > HTH, > Micah > > > > > > hello, i've just tried it and realised it had already been installed as a jdk* dependency. :) however, according to the man page, running the following should select the most native and up-to-date version of java: $ java -version java version "1.4.2-p8" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p8-root_21_jan_2006_21_32) Java HotSpot(TM) Client VM (build 1.4.2-p8-root_21_jan_2006_21_32, mixed mode) however, i've got newer version installed too: $ cat /usr/local/etc/javavms /usr/local/jdk1.5.0/bin/java # FREEBSD-JDK1.5.0 /usr/local/jdk1.4.2/bin/java # FREEBSD-JDK1.4.2 /usr/local/linux-sun-jdk1.4.2/bin/java # Linux-Sun-JDK1.4.2.10 how come 1.5.0 wasn't selected in the example above please ?? cheers, martin