Ehh, yes of course, but that will not work for me I'm afraid.
I dont know if eclipse/jbuilder uses a native call to end the jvm
process? In that case it would be the same as using the task manager,
but can you implement that into a Java app?
> windows task manager
>
[quoted text clipped - 13 lines]
> >
> > /Andreas
Ann - 27 Nov 2004 17:22 GMT
> Ehh, yes of course, but that will not work for me I'm afraid.
> I dont know if eclipse/jbuilder uses a native call to end the jvm
[quoted text clipped - 18 lines]
> > >
> > > /Andreas
Use Runtime
Taskkill
Ends one or more tasks or processes. Processes can be killed by process ID
or image name.
Syntax
taskkill [/s Computer] [/u Domain\User [/p Password]]] [/fi FilterName]
[/pid ProcessID]|[/im ImageName] [/f][/t]
John English - 30 Nov 2004 12:14 GMT
> Ehh, yes of course, but that will not work for me I'm afraid.
> I dont know if eclipse/jbuilder uses a native call to end the jvm
> process? In that case it would be the same as using the task manager,
> but can you implement that into a Java app?
Try Runtime.exit() -- "terminates the currently running Java virtual
machine by initiating its shutdown sequence".
-----------------------------------------------------------------
John English | mailto:je@brighton.ac.uk
Senior Lecturer | http://www.it.bton.ac.uk/staff/je
School of Computing & MIS | ** NON-PROFIT CD FOR CS STUDENTS **
University of Brighton | -- see http://burks.bton.ac.uk
-----------------------------------------------------------------
Andrew Thompson - 30 Nov 2004 12:30 GMT
>> Ehh, yes of course, but that will not work for me I'm afraid.
>> I dont know if eclipse/jbuilder uses a native call to end the jvm
[quoted text clipped - 3 lines]
> Try Runtime.exit() -- "terminates the currently running Java virtual
> machine by initiating its shutdown sequence".
Which, according to the JavaDocs "The System.exit method is
the conventional and convenient means of invoking this method"
The OP mentioned earlier that invoking System.exit() was (amongst)
the current way of doing things.
[ Follow-Ups set to c.l.j.help. ]

Signature
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane