ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hunt, Bryan" <B.H...@emuse.ie>
Subject RE: java task failures
Date Tue, 08 Jan 2002 16:05:37 GMT

The class is just a class with a static void main class that does a 
System.out.println("test");


Here is the output from ant 

CUT=
C:\antwork\example2\build.xml:40: java.lang.NoSuchMethodException
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:13
8)
        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)
--- Nested Exception ---
java.lang.NoSuchMethodException
        at java.lang.Class.getMethod0(Native Method)
        at java.lang.Class.getMethod(Class.java:888)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:12
3)
        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)
=CUT

You seen something like this before ? I am using the following java 
sun jdk Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01).


Thanks 

Bryan




-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: 08 January 2002 15:54
To: ant-user@jakarta.apache.org
Subject: Re: java task failures


On Tue, 8 Jan 2002, Bryan Hunt <B.Hunt@emuse.ie> wrote:

> However if I remove the fork attribute I get a
> java.lang.NoSuchMethodException error.

Which method in which class is it, that it cannot find?

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message