Sorry for the dalay...
My Requirement is:
All the .tif are stored in a sharepoint when the client clicks it then our OCR engine invokes and start ocring.for this i need to write a java component.What i am thinking is if we go with .exe in our program it will be easy task for us.

..???
In genaral words..write a java component to watch one folder(file pollar type) ..pick up one tif image send it to ocr ..process it ..give the result(.txt 0r .csv) to back to same folder bresides in sharepoint...