Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 48176 invoked from network); 30 Jan 2002 07:27:25 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 30 Jan 2002 07:27:25 -0000 Received: (qmail 9421 invoked by uid 97); 30 Jan 2002 07:27:26 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 9399 invoked by uid 97); 30 Jan 2002 07:27:26 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 9388 invoked from network); 30 Jan 2002 07:27:25 -0000 From: "Adam Murdoch" To: "Ant Users List" Subject: RE: compiling and creating jars .... Date: Wed, 30 Jan 2002 17:25:49 +1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > -----Original Message----- > From: Rosemarie Hannan (Financial IQ) [mailto:RosemarieH@fin-soft.co.za] > Sent: Wednesday, 30 January 2002 5:20 PM > To: ant-dev@jakarta.apache.org; ant-user@jakarta.apache.org > Subject: compiling and creating jars .... > Importance: High > > > Hi > > I am having a problem trying to compile the following, I have set up my > class path in the environment and it still gives me the error - it creates > the java file, but does not compile and it fails just before I specify the > classname and path. If any one can offer some suggestions I would > appreciate it. > Thanks > > > > > > > > > > depends="init"> > ^^^ There's a space in the file name. > public class ASimpleHelloObject > { > public static void main(String [] args) > { > System.out.println("ASimpleHelloObject.main was called"); > } > } > > > > > > > > > > > > > > > > > > > > **************************************************** > Errors I am getting: > > I even commented the one line of code - line 31, and the did the > build, this > build went all the way through. Please help me to find out what > I have done > incorrectly. > > **************************************************** > > C:\>ant -verbose > Ant version 1.4.1 compiled on October 11 2001 > Buildfile: build.xml > Detected Java version: 1.3 in: C:\jdk1.3.1_01\jre > Detected OS: Windows 2000 > parsing buildfile C:\build.xml with URI = file:C:/build.xml > Project base dir set to: C:\ > Build sequence for target `run' is [init, ASimpleHelloObject, > compile, run] > Complete build sequence is [init, ASimpleHelloObject, compile, run] > > init: > [available] Unable to find C:\ASimpleHelloObject.java to set property > ASimpleHelloObje > ct > > ASimpleHelloObject: > [echo] Wrote ASimpleHelloObject.java > > compile: > [echo] in the compile block after the destdir > > run: > [echo] Before the classpath > [java] Running in same VM ASimpleHelloObject > > BUILD FAILED > > C:\build.xml:31: Could not find ASimpleHelloObject. Make sure you > have it in > your clas > spath > at > org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:128) > at org.apache.tools.ant.taskdefs.Java.run(Java.java:305) > at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:127) > at org.apache.tools.ant.taskdefs.Java.execute(Java.java:88) > at org.apache.tools.ant.Task.perform(Task.java:217) > at org.apache.tools.ant.Target.execute(Target.java:184) > at org.apache.tools.ant.Target.performTasks(Target.java:202) > at org.apache.tools.ant.Project.executeTarget(Project.java:601) > at org.apache.tools.ant.Project.executeTargets(Project.java:560) > at org.apache.tools.ant.Main.runBuild(Main.java:454) > at org.apache.tools.ant.Main.start(Main.java:153) > at org.apache.tools.ant.Main.main(Main.java:176) > > Total time: 2 seconds > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: