You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ch...@cendec.com on 2001/05/09 18:31:14 UTC
Newbie question about java task
Hi Folks,
I want to execute the following command using java task, but I cannot make
it work, anyone can help?
java -jar -showversion -Duser.dir=e:../../../bin/app-server/orion
../../../bin/app-server/orion/admin.jar ormi://localhost admin password
-shutdown
Thanks in advance
Chris
Re: Newbie question about java task
Posted by Stefan Bodewig <bo...@apache.org>.
chris chang <ch...@cendec.com> wrote:
> Hi Folks,
>
> I want to execute the following command using java task, but I
> cannot make it work, anyone can help?
>
> java -jar
Ant's java task doesn't support something similar to the -jar
option. <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1248>
To do what you need, you have to put the jar file into the task's
classpath and specify the Main class explicitly.
Stefan