• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

General Java

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have two command window . In first command window i was running the some java code

If i was execute a batch file from second command window the java program will stop in first command window.

Is any command is there to stop the java program. and also i want to know is any optional argument in the command...

Please guide me....

--
M. Bharathi
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no simple command to find a particular Java process and stop it from an external source. You would have to write your Java application to be able to accept external commands, such as by listening to a Socket or running a messaging system like RMI or CORBA (though these last two are probably overkill if all you want to do is listen for a shutdown command).

See This Tutorial for Sockets.
 
reply
    Bookmark Topic Watch Topic
  • New Topic