From owner-freebsd-java@FreeBSD.ORG Wed Apr 19 07:16:04 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org 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 20EE316A401 for ; Wed, 19 Apr 2006 07:16:04 +0000 (UTC) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [83.171.239.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38D9A43DD2 for ; Wed, 19 Apr 2006 07:15:12 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id k3J7EvwE061376; Wed, 19 Apr 2006 10:14:57 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.185] (pc185.ebs.gr [10.1.1.185]) by ebs.gr (8.13.3/8.13.3) with ESMTP id k3J7FBq5077569; Wed, 19 Apr 2006 10:15:11 +0300 (EEST) (envelope-from past@ebs.gr) Received: from 127.0.0.1 (AVG SMTP 7.1.385 [268.4.3/316]); Wed, 19 Apr 2006 10:14:54 +0300 Message-ID: <4445E36E.6050709@ebs.gr> Date: Wed, 19 Apr 2006 10:14:54 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Michael Tran References: <4011f09c0604181800i7a2f4755o39d7a62ddd67f003@mail.gmail.com> In-Reply-To: <4011f09c0604181800i7a2f4755o39d7a62ddd67f003@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: JDK 1.5.x on top of JDK 1.4.2? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 07:16:04 -0000 Michael Tran wrote: > Hi, > > I installed the diablo-JRE 1.5.x version as found at > http://freebsdfoundation.org/downloads/java.shtml ontop of my previous > install of JDK 1.4.2 > > # pkg_info | grep jdk > jdk-1.4.2p7_2 Java Development Kit 1.4.2 > linux-sun-jdk-1.4.2.10 Sun Java Development Kit 1.4 for Linux This doesn't show any trace of diablo-jre at all. Are you sure you installed it? > And Firefox is great and using the new 1.5 plugin. However, my other > applications do not use the new version. Also, this is the output > when I try java -version: > > # /usr/local/bin/java -version > java version "1.4.2-p7" > Java(TM) 2 Runtime Environment, Standard Edition (build > 1.4.2-p7-root_10_nov_2005_18_44) > Java HotSpot(TM) Client VM (build 1.4.2-p7-root_10_nov_2005_18_44, mixed mode) Assuming that you actually have diablo installed, you also have to have an updated ports tree in order for javavmwrapper to correctly pick diablo as the default jdk. At least ports/Mk/bsd.java.mk has to be updated to the latest version. > What is the process in updating my existing java with the latest? Do > I pkg_delete, then pkg_add the new one? My preference is to have only > one java. Just pkg_add the diablo package and you should be set. Later you can remove the jdk14 port if you want. > I also have Openoffice, Gimp, and a few other applications installed. > Will this pose as a problem? No, it shouldn't. Cheers, Panagiotis