Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Capturing shutdown

On 8:22:01 am 06/03/05 Rafal Krzewski <Rafal.Krzewski@xxxxxxxxx> wrote:
> Eric Bodden wrote:

>
> Returning from main(..) method may or may not terminate the VM
> depending on the circumstances - when there active threads with
> non-deamon status the VM will continue. System.exit(..) causes all

And you certainly don't need a main method to execute a class:

public class NoMain {
  static {
    System.out.println("This is my application");
    System.exit(0);
  }
}

Jeff



Back to the top