我正在使用emma来构建我的项目,而且我没有获得像coverage这样的目录

时间:2010-07-28 13:35:18

标签: java

见下面的错误

Buildfile: F:\gqmaps\gqmaps9\build.xml
init:
compile:
    [javac] Compiling 106 source files to F:\gqmaps\gqmaps9\out
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
run:
 [emmajava] Could not find Main. Make sure you have it in your classpath
 [emmajava]  at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:138)
 [emmajava]  at org.apache.tools.ant.taskdefs.Java.run(Java.java:764)
 [emmajava]  at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218)
 [emmajava]  at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
 [emmajava]  at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
 [emmajava]  at com.vladium.emma.emmajavaTask.execute(emmajavaTask.java:237)
 [emmajava]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
 [emmajava]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [emmajava]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [emmajava]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [emmajava]  at java.lang.reflect.Method.invoke(Method.java:597)
 [emmajava]  at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
 [emmajava]  at org.apache.tools.ant.Task.perform(Task.java:348)
 [emmajava]  at org.apache.tools.ant.Target.execute(Target.java:357)
 [emmajava]  at org.apache.tools.ant.Target.performTasks(Target.java:385)
 [emmajava]  at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
 [emmajava]  at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
 [emmajava]  at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
 [emmajava]  at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
 [emmajava]  at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
 [emmajava]  at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
 [emmajava]  at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
 [emmajava] Java Result: -1
all:
BUILD SUCCESSFUL
Total time: 2 seconds

1 个答案:

答案 0 :(得分:0)

无法找到emma jar文件,请确保在类路径中有emma.jar和emma_ant.jar