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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
