LS2J Error : Java.lang.ClassNotFound Exception

Hi,

i am trying to access a JAR file which is in the path jvm/lib/ext through LotusScript.

I am using the follwoing code to access the Java file

EncPasswordStr = “xyz456650”

Set EncSession = New JavaSession()

Set EncClass = EncSession.GetClass(“com\Galileo\Encryption\Encryption”)

Set EncObject = EncClass.CreateObject

DecPasswordStr=EncClass.getPassword(EncPasswordStr)

Encryption is the name of the JAR file.

When i run this agent,i am getting the error

LS2J Error: Threw java.lang.ClassNotFoundException: com\Galileo\Encryption\Encryption

Kindly help me to overcome this issue.

Thanks in Advance.

Regards,

Barathi

Subject: LS2J Error : Java.lang.ClassNotFound Exception

Hi, Iam not so aware of javascript,But i am sending u one link which might be helpful to u.

Subject: RE: LS2J Error : Java.lang.ClassNotFound Exception

Hi Ranjit,

Thanks for the immediate response.But i have done whatever things given in that thread. I think the problem is in the path setting in the server.Becasue there is no change in the JAR file.

I am badly in need of the solution.

Subject: LS2J Error : Java.lang.ClassNotFound Exception

The error sounds pretty clear: A class of that name is not available to the code at runtime.

Do you have the jar file on the server and on your local machine?

Subject: RE: LS2J Error : Java.lang.ClassNotFound Exception

The Jar file is in the server

Subject: RE: LS2J Error : Java.lang.ClassNotFound Exception

How do you start your agent? If you call it from your Client, it doesn’t have access to the jar file on the server.

Subject: RE: LS2J Error : Java.lang.ClassNotFound Exception

I will run the agent in the server by logging into the designer and right click on the Agent and selecting the Run option.

Subject: RE: LS2J Error : Java.lang.ClassNotFound Exception

Your agent does NOT run on the server then, it runs locally.