Java agent help

Hi all,

I need to automate the creation/deletion of LDAP account for the company. Our java developer developed java program for this. I need to call his programs from Lotus script. He provided 4 jar files. So i created Java script library and used edit project to add these jar files from my local disk.I used LS2J method to call this. Below is my code. it failed due to Out of memory error. I followed the forum and did added heapsize to notes.ini but still it doesn’t help. Now i would like to have the code or some instructions for how to create java agent to call these methods.

Dim JSession As JavaSession

Dim myError As JavaError

'On Error Goto Catch

Set JSession = New JavaSession

Set myClass = JSession.GetClass(“com.jbhunt.util.ldap.PeoplesoftAndLotusNotesClient”)

’ Call Constructor

Set myObject = myClass.CreateObject(“(Ljava/lang/String;)V”,“t3://websrvt3.jbhunt.com:80”)

returnvalue= myObject.deleteUser(“jisaar1”)

Msgbox(returnValue)

Your help is appreciated.

Thanks

Anitha