You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Roche Ian <ia...@imtf.ch> on 2000/10/26 16:40:05 UTC

Java compile command

Hi,

I use Ant for compiling and running rmi classes.
I run the RMI service (UnicastRemoteObject that contains
a main) using Ants forking of the JVM with my own classpath and parameters.
The problem seems to be that Ant does not terminate when the main 
is finished. I added a system.exit(0) command 
at the end of the main to try and ensure termination of the forked
process but this does not work as the rmi object seems to be
unbound from the registry as a result of this.

Any help would be great.

Ian


RE: Java compile command

Posted by Conor MacNeill <co...@ebinteractive.com.au>.
Ian,

What exactly do you mean by "the main is finished". When ant forks a JVM, it
waits for the JVM to terminate before continuing. Perhaps the term fork is
misleading here.

Conor


--
Conor MacNeill
conor@cortexebusiness.com.au
Cortex eBusiness
http://www.cortexebusiness.com.au

> -----Original Message-----
> From: Roche Ian [mailto:ian.roche@imtf.ch]
> Sent: Friday, 27 October 2000 1:40
> To: 'ant-user@jakarta.apache.org'
> Subject: Java compile command
>
>
> Hi,
>
> I use Ant for compiling and running rmi classes.
> I run the RMI service (UnicastRemoteObject that contains
> a main) using Ants forking of the JVM with my own classpath and
> parameters.
> The problem seems to be that Ant does not terminate when the main
> is finished. I added a system.exit(0) command
> at the end of the main to try and ensure termination of the forked
> process but this does not work as the rmi object seems to be
> unbound from the registry as a result of this.
>
> Any help would be great.
>
> Ian
>
>