You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Tim McCune <ti...@channelpoint.com> on 2000/11/13 23:45:04 UTC

Running a Jar file

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The <java> task doesn't seem to do a very good job of letting you run
a jar file (e.g. "java -jar foo.jar").  It requires you to provide a
classname attribute, which isn't needed in this case.  With Ant 1.1,
I just used
classname=""
but Ant 1.2 complains about this.  For now, I'm using
classname=" "
(a space) and it seems to work.  But I thought someone might want to
fix this before things break further.

Tim McCune
Software Architect, ChannelPoint
"Why does the worst software always cost the most?" -- Anonymous


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBOhBu59UPOr8a7vy5EQJ4swCZAbfZLXADKNjfub0Dfq3fJi1d4+UAnjNu
0+7Mv3dmt15RQ/ZhYSoPE/tP
=LRtp
-----END PGP SIGNATURE-----

Re: Running a Jar file

Posted by Stefan Bodewig <bo...@bost.de>.
Tim McCune <ti...@channelpoint.com> wrote:

> The <java> task doesn't seem to do a very good job of letting you
> run a jar file (e.g. "java -jar foo.jar").

Maybe this is because it is not intended to be used that way. What is
the benefit of using <java> instead of <exec> in a situation like
this?

Stefan