Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 80652 invoked from network); 14 Jun 2005 20:14:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jun 2005 20:14:13 -0000 Received: (qmail 16667 invoked by uid 500); 14 Jun 2005 20:14:05 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 16603 invoked by uid 500); 14 Jun 2005 20:14:04 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 16590 invoked by uid 99); 14 Jun 2005 20:14:04 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from usea-naimss1.unisys.com (HELO usea-naimss1.unisys.com) (192.61.61.103) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 14 Jun 2005 13:14:00 -0700 Received: from usea-nagw2.na.uis.unisys.com ([129.224.72.18]unverified) by usea-naimss1 with InterScan Messaging Security Suite; Tue, 14 Jun 2005 14:46:12 -0500 Received: from usea-nagw2.na.uis.unisys.com ([129.224.72.53]) by usea-nagw2.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 14 Jun 2005 14:41:26 -0500 Received: from usmv-exch1.na.uis.unisys.com ([192.59.173.13]) by usea-nagw2.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 14 Jun 2005 14:41:26 -0500 Received: from USMV-EXCH2.na.uis.unisys.com ([192.59.170.75]) by usmv-exch1.na.uis.unisys.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 14 Jun 2005 12:41:24 -0700 X-MIMEOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Javac version Date: Tue, 14 Jun 2005 12:41:22 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Javac version Thread-index: AcVw/LIa68TYUQhmQPKtufaEzihkJQAHB6eQ From: "Payette, Don J" To: "Ant Users List" X-OriginalArrivalTime: 14 Jun 2005 19:41:24.0404 (UTC) FILETIME=[0C472F40:01C57119] X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks, Darin. That worked. Being a novice in Eclipse and Ant, I didn't know where the problem was. So I tried here first. I guess my strategy wasn't too far off, since it worked. :-)=20 Don Payette >THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. -----Original Message----- From: Darin Swanson [mailto:Darin_Swanson@us.ibm.com]=20 Sent: Tuesday, June 14, 2005 11:17 AM To: Ant Users List Subject: Re: Javac version Which Eclipse? I would make an educated guess that you are running Eclipse with 1.4.2 but=20 you are doing your build with 1.3.* or have a 1.3.* tools.jar on your Ant=20 runtime classpath? Check the JRE tab and the classpath tab for your Ant launch configuration=20 that is failing. HTH Darins Note: in the future it is likely better to ask Eclipse questions in an=20 Eclipse forum...such as the Eclipse newsgroups. "Payette, Don J" =20 06/14/2005 09:02 AM Please respond to "Ant Users List" To "Ant Users List" cc Subject Javac version I have a project setup in Eclipse and am using ant to do my builds from within Eclipse. Things have been working fine, until I tried to move from Java 1.3.1 to Java 1.4.2. I get the following output from ant.=20 Buildfile: C:\SPEC\build.xml load-corp: compile: [echo] The classpath for compilation is c:\Java\j2sdkee1.4.2_07\lib\j2ee.jar:jars/xerces.jar:jars/MCP.jar [echo] Java home is C:\Java\j2sdk1.4.2_07 [javac] Compiling 307 source files to C:\SPEC\classes [javac] C:\SPEC\src\com\sun\jini\debug\Debug.java:177: cannot access java.lang.Object [javac] bad class file: C:\Java\j2sdk1.4.2_07\jre\lib\rt.jar(java/lang/Object.class) [javac] class file has wrong version 48.0, should be 47.0 [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. [javac] private String propertyName; [javac] ^ [javac] 1 error [javac] BUILD FAILED: file:C:/SPEC/build.xml:110: Compile failed; see the compiler error output for details. Total time: 5 seconds ------------------------------------------------------------------------ ----------- end ant output ------------------------------------------------------------------------ ----------- The shortcut I use to run eclipse points to 1.4.2 as the vm, ala: C:\eclipse\V2_1_3\eclipse\eclipse.exe eclipse -vm C:\Java\j2sdk1.4.2_07\bin\javaw.exe Following find all the relevant files. Any ideas what is going on? Don Payette Unisys Corporation ------------------------------------------------------------------------ ----------- build.xml =20 =20 =20 =20 =20 =20 = =20 =20 =20 =20 =20 =20 =20 =20 =20 ------------------------------------------------------------------------ --------------------- end build.xml ------------------------------------------------------------------------ --------------------- appserver: JBoss.3.2.5 ------------------------------------------------------------------------ --------------------- end appserver ------------------------------------------------------------------------ --------------------- JBoss.3.2.5.env # Generic environment needed for the apps server JAS_HOME=3Dc:\\SPEC\\ JAVA_HOME=3DC:\\Java\\j2sdk1.4.2_07 J2EE_HOME=3Dc:\\Java\\j2sdkee1.4.2_07 # Environment needed for the driver CLASSPATH=3D${J2EE_HOME}\\lib\\j2ee.jar;${JAS_HOME}\\jars\\SPECjAppServer= - client.jar BINDWAIT=3D3 # Environment needed for the DB loader # JDBC_CLASSPATH=3D${J2EE_HOME}\\lib\\mcp.jar # Additional environment needed for make JAVAX_JAR=3D${J2EE_HOME}\\lib\\j2ee.jar # The following variables specify the URL of the=20 # server in which the SPECjAppServer beans are deployed # JAS_PREFIX used to access the Web components=20 # For Example DeliveryServlet. Default is \\ JAS_HOST=3Dtrj1d1p2 JAS_PORT=3D8580 JAS_PREFIX=3D\\ # The following variables specify the URL of the server # in which the Supplier Emulator is deployed # EMULATOR_PREFIX used to access the Web components=20 # For Example EmulatorServlet. Default is \\ EMULATOR_HOST=3Dtrj1d1p2 EMULATOR_PORT=3D8580 EMULATOR_PREFIX=3D\\ # # AppServer Environment variables for JNDI provider and classes # NAMING_PROVIDER=3Djnp://trj1d1p2:1599 JNDI_CLASS=3Dorg.jnp.interfaces.NamingContextFactory # needed if the App server host is not specified in the cmd line JAVA=3D"$JAVA_HOME\\bin\\java = -Dorg.omg.CORBA.ORBInitialHost=3D$JAS_HOST" # We need to export all variables needed by make export JAS_HOME JAVA_HOME J2EE_HOME JAVAX_JAR JAS_HOST JAS_PORT EMULATOR_HOST EMULATOR_PORT ------------------------------------------------------------------------ --------------------- end JBoss.3.2.5.env ------------------------------------------------------------------------ --------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org