I am completely new to Lotus Java Agent. Kindly help me how can i write a java agent in eclipse and use that agent in other classes.
The first thing you will need to do is to copy the Notes.jar file into your java project,(found in any Notes client installation), add it as an external jar.
Then create a java agent (in Lotus Notes), copy that initial boilerplate code out of Domino Designer, and into a new class in eclipse, (and call it JavaAgent.java). You should be able to get started.
For more details this IBM developerworks article covers it quite well.