Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 69420 invoked from network); 22 Jun 2000 12:30:52 -0000 Received: from me-sv-02.free.net.au (202.147.17.2) by locus.apache.org with SMTP; 22 Jun 2000 12:30:52 -0000 Received: (qmail 9621 invoked from network); 22 Jun 2000 12:30:11 -0000 Received: from me-as-03-124.free.net.au (HELO donalgar) (202.147.20.124) by me-sv-02.free.net.au with SMTP; 22 Jun 2000 12:30:11 -0000 Message-Id: <3.0.5.32.20000622223158.007e6e80@latcs4.cs.latrobe.edu.au> X-Sender: pjdonald@latcs4.cs.latrobe.edu.au X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Thu, 22 Jun 2000 22:31:58 +1000 To: ant-dev@jakarta.apache.org From: Peter Donald Subject: Re: Compiling with jdk1.2.2 (Linux) In-Reply-To: <3951EF6C.ABAF563E@fareast.com.au> References: <3.0.5.32.20000622203654.008196c0@latcs4.cs.latrobe.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N At 08:50 22/6/00 +1000, you wrote: >This is exactly the same source that compiled okay on the Solaris box. Nothing >changed except the JDK version. okay ... so write permissions is available on all files then ... >> * make sure you move $HOME/.antrc while bootstrapping (just in case you have >> odd settings there) > >This never got created. I suppose it turns up once the compile is successful >but I never got that far. where you keep user settings for ant most people dont have it (this was just a precaution incase you did). >Where is this supposed to be? I don't find it anywhere on my system. okay you will have to copy xerces.jar from your solaris system or alternatively get xerces from cvs (goto xml.apache.org to get details). >The difference I do find is the lack of the classes.zip file in the jdk1.2.2. >Someone suggested that I configure the ant build to use jdk1.2.2 but I don't >see where to do that. I did compile on the Solaris box with 1.1.8, I believe. I >can confirm that tomorrow but I know we are not running Java2 on that machine. CLASSPATH=${CLASSPATH}:${JAVA_HOME}/lib/classes.zip:${JAVA_HOME}/lib/tools.jar CLASSPATH=${CLASSPATH}:src/main:${CLASSDIR} specifically look at these lines in bootstrap. JAVA_HOME should be set to your java directory and you currently have it set to /usr/local/java. Verify that location contains JDK 1.2.2 and not the JRE 1.2.2 - in which case /usr/local/java/lib/classes.zip should not exist but /usr/local/java/lib/tools.jar should. Make sure you are not using the kaffe virtual machine/compiler which comes with default instal on some distributions (notably the red hat distros). In which case try to uninstall it or put /usr/local/java/bin at the start of PATH environment variable (by export PATH=/usr/local/java/bin:$PATH if in a bourne style shell) . other than that try running javac at commandline and getting compiler version etc Cheers, Pete *------------------------------------------------------* | "Nearly all men can stand adversity, but if you want | | to test a man's character, give him power." | | -Abraham Lincoln | *------------------------------------------------------*