Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 85319 invoked from network); 22 Nov 2000 11:02:05 -0000 Received: from natmail2.webmailer.de (HELO post.webmailer.de) (192.67.198.65) by locus.apache.org with SMTP; 22 Nov 2000 11:02:05 -0000 Received: from waghals (p3EE2FDB8.dip.t-dialin.net [62.226.253.184]) by post.webmailer.de (8.9.3/8.8.7) with SMTP id MAA24557 for ; Wed, 22 Nov 2000 12:02:06 +0100 (MET) From: Bernd Donath Date: Wed, 22 Nov 2000 12:02:04 +0100 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="us-ascii" To: ant-user@jakarta.apache.org References: <4.3.0.20001121143217.00c346a0@boulder.beasys.com> <4.3.0.20001121173629.00c25d50@boulder.beasys.com> In-Reply-To: <4.3.0.20001121173629.00c25d50@boulder.beasys.com> Subject: Re: registry JRE vs. JDK with java task MIME-Version: 1.0 Message-Id: <00112212020400.01853@waghals> Content-Transfer-Encoding: 8bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I made the same experience with Oracle. The reason is that Oracle updates the global PATH settings under Windows so that their JVM (runtime and JDK) is BEFORE the one from Sun. If you use the latest SUN JVM under windows (at present 13.0.-01) some small startup wrappers will be added to WINDIR\SYSDIR (i.e. C:\WINNT\System32). Adjust your PATH so that the WINDIR\SYSDIR path is before the Oracle path and you will have no problems. You can check the JVM version you have currently set with the command: "java -version". As far as I know the JAVA_HOME variable is no more required since JDK1.2... Bernd > I got around this by using execute task instead of java task and giving the > explicit path to java, i.e. JAVA_HOME\bin\java for my executable. > Strangely, JAVA_HOME\bin is in my path before anything else javaish. Not > quite what I wanted to do, but it works for now. Perhaps the java task has > a way to set the JAVA_HOME that I missed or something? I try not to jump > into the ant code (it violates my role as a user, though it pleases me the > developer ;) but this time I think I will. > > I remember after installing Oracle one time that my version had rolled back > to 1.1.7, I think javac puked. This machine doesn't have Oracle on it > though (yet). > > As far as JDK vs. JRE, most definitely we want JDK's. We especially want > our developers to be able to switch JDK versions and suppliers by changing > their JAVA_HOME and PATH to point to different JDK's. > > Thanks, > Dave > > At 02:42 PM 11/21/00 -0800, you wrote: > >We had a similar problem. The Windows registry had been updated by an > >install of another product that set something > >HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java DevelopmentKit/CurrentVersion to > >1.1.7 (as opposed to the 1.3 that it had been before). Check your registry > >and see if that might be a problem. > > > >That said, you don't want (I think) to be using a jre at all. The jre's > >don't include the compiler, jar tool, etc. You want one of the JDKs. > > > > > >George McKinney, Developer > >tantalus communications inc. > >500-1122 Mainland Street > >Vancouver, BC, Canada V6B 5L1 I> >george@tantalus.com > > > >Direct 604.726.6753 > >Main 604.609.0700 > >Fax 604.609.0705 > >www.tantalus.com > >"When eBusiness experience counts." > > > > > -----Original Message----- > > > From: Dave Inskeep [mailto:dave.inskeep@bea.com] > > > Sent: Tuesday, November 21, 2000 1:41 PM > > > To: ant-user@jakarta.apache.org > > > Subject: registry JRE vs. JDK with java task > > > > > > > > > I'm trying to run a class with the java task from my own task and am > > > confused about where the java task determines what JRE to > > > use. After I run > > > my app the property sun.boot.library.path reports that it's > > > using jars from > > > C:\Program Files\JavaSoft\JRE\1.2\lib\, which is not where my > > > JAVA_HOME > > > environment variable points to. My JAVA_HOME is pointing to > > > d:\java\jdk1.2.2. Anyone have any idea where the heck the > > > java task is > > > getting this other JRE to use? I definitely do not want to > > > use it, I want > > > to use what my JAVA_HOME points to. > > > > > > Thanks, > > > Dave