Hi, Subject: Compiling & doing jar Operating System:Windows NT Iam using ant v 1.4.1 & I have done compilation succesfully but when I do the jar of the compiled source I get the following Error ant -buildfile compilejar.xml Buildfile: compilejar.xml compile: jar: BUILD FAILED C:\Ant\jakarta-ant-1.4.1\bin\compilejar.xml:25: The <jar> task doesn't support the "destfile" attribut Total time: 1 second Note: My classpath & ANT_HOME dont make any issue since Iam able to compile & do other tasks with the ant All the Directory metioned in the xml file exsists
I don't see anything wrong with the attribute; destfile is supposed to be the required attribute for the jar task. You didn't provide any kind of fileset or includes indication for the files to place in the jar; I think that is the most likely cause for the message. If that doesn't do it, the only thing that comes to mind is that you've named the build task "jar". I doubt that is the problem, but it is the only other thing I can think of.