Start and Stopping the JVM

  • Follow


Hi,Any one can advise me how ot stop and restart JVM by command line orscript in the Windows 2000 and Windows XP environment?Thanks,Goha
0
Reply selhamawy (4) 11/6/2007 9:44:37 PM

Goha wrote on 06.11.2007 22:44:> Hi,> > Any one can advise me how ot stop and restart JVM by command line or> script in the Windows 2000 and Windows XP environment?The JVM is started with the command "java".It is stopped by stopping the application started within the JVMThis is a simplified version of the specification:http://java.sun.com/docs/books/jls/second_edition/html/execution.doc.html#44411
0
Reply Thomas 11/6/2007 10:09:08 PM


On Tue, 06 Nov 2007 13:44:37 -0800, Goha <selhamawy@gmail.com> wrote,
quoted or indirectly quoted someone who said :

>Any one can advise me how ot stop and restart JVM by command line or
>script in the Windows 2000 and Windows XP environment?

starting and restarting is easy. Just use java.exe. See
http://mindprod.com/jgloss/javaexe.html

Stopping requires the app to notice and shut down.  One simple way is
to copy in a "pleasestop.dat" file into a directory.  The app
periodically checks for its existence. If it finds it, it deletes it
and shuts down gracefully.

You can also do it my sending a packet or message on a socket.

You also might do it with some platform specific trigger you catch in
C++ then pass on to Java via JNI.
-- 
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
0
Reply Roedy 11/6/2007 11:34:34 PM

2 Replies
401 Views

(page loaded in 0.437 seconds)

Similiar Articles:













7/25/2012 9:24:55 AM


Reply: