ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Friek" <e...@sumerduckva.com>
Subject RE: Failed to load Main-Class manifest from foo.jar
Date Mon, 04 Mar 2002 02:04:58 GMT
You haven't made a manifest, so Java doesn't know which class to load from
the jar first.

Grok the Sun docs for how manifest files work
(http://java.sun.com/products/jdk/1.2/docs/guide/jar/manifest.html), then
use <manifest> elements to define manifest properties in the <jar> tag.

> jar. but when i try to run it using java -jar foo.jar, i get the above
> error message. i looked at the jar and the manifest has no files
> in it. is
> this a bug in ant? or do i need to invoke the jar in some
> different manner?
> or build the manifest myself? i am using ant 1.4.1 with j2sdk1.4.0


>      <jar jarfile="${dist}/lib/MyProject-${DSTAMP}.jar"
> basedir="${build}"/>
>    </target>


--
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