File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes terminating a jva program based upon certain condititons Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "terminating a jva program based upon certain condititons" Watch "terminating a jva program based upon certain condititons" New topic
Author

terminating a jva program based upon certain condititons

Gary Dwivdi
Greenhorn

Joined: Sep 12, 2011
Posts: 9
Hi ,
I have a requirement where in I need to terminate a java program(the program reads a file) on encountering a word in the file.I can not use System.exit (1); as it will shut down the server itself.so i need another method to do this.Please help me with this
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8436

Some more information please.
What is the relation between this "program" and "server"


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
Gary Dwivdi
Greenhorn

Joined: Sep 12, 2011
Posts: 9
I'm using an ANT script which is calling the java class.and this ANT script is being run on HUDSON a Continous Integration tool.So if i use System.exit();,the Hudson server goes off.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: terminating a jva program based upon certain condititons
 
Similar Threads
Dx Ball Game
Problem while installing Enthuware
need help abt 64 encoder/decoder
Help required(Exceptions)
Servlets MultiThreading