Java agent error

Hello all,

I’m trying to run a java agent but the thing is its giving me errors everytime it ran.

Error:

11/05/2003 08:49:47 AMgr: Agent (‘Archmail’ in ‘example.nsf’) print

ing: mail started

11/05/2003 08:49:48 AMgr: Agent (‘Archmail’ in ‘example.nsf’) printin

g: mail finsihed.

11/05/2003 08:49:48 AMgr: Agent (‘Archmail’ in ‘example.nsf’) printin

g: mail finished.

11/05/2003 08:49:48 AMgr: Agent (‘Archmail’ in ‘example.nsf’) error m

essage: Error cleaning up agent threads

"dbcache

Insufficient arguments. Enter ‘HELP’ for the correct syntax.

Can someone know what could be the problem. I’m using a lotus notes client connecting to a domino server in a solaris box. And I think the dbcache problem is on this line.

Runtime rt = Runtime.getRuntime();

		//rt.exec("nserver -c \"dbcache flush\"");

		rt.exec("server -c  \"dbcache Flush\"");

It used to be the commented line if the domino server is under windows but since the domino server for unix is just server I changed nserver to server. Am I missing on something?

thanks! any help is much appreciated.