I created a JAR file and placed this file in PS_HOMEclass folder and trying to access this file using below code and getting few errors. &java_test = CreateJavaObject(““Test””); &java_message = &java_test.Test_peoplecode(); &java_test = Null; MessageBox(0, ““Message””, 0, 0, &java_message); error message: Java Exception: java.lang.NoClassDefFoundError: Test: finding class Test (2,725) Any help would be appreciated, Thanks a lot.

Thanks Sid…, I will try and let you know

jar is usually packaging bunch of classes in a java archive, I would say, change you class to give it a package path and then invoke the fully qualified path using createjavaobject, it works,
Thanks
Sid

Thanks David for your valuable time…,
I placed JAR file in NT network drive under PSHOMEclass folder, and apart from that I created CLASSPATH too but I figured classpath is not mandatory since I placed file under NT network drive under PSHOMEclass folder.
Thanks
Naveen

Let me tell you one more thing, instead of JAR file I called CLASS file and it did worked perfect.
Thanks
Naveen

If you are running it from App Designer, shouldn’t the java class be
located on the PC you are running it on? You may need to make sure that
the classpath is set up in your system environments.

David Wildschuetz
National Association of Insurance Commissioners

Thanks David…,
First I am running from App Designer, so no we don’t need app server.
Second my java code is very simple,below is the java code I created class file and with this class file I created JAR file and trying to call this JAR file from Peoplecode. Let me know if I am doing any wrong?
public class Test{
public String Test_peoplecode(){
String message;
message = “PeopleCode is successfully executing Java.”;
return message; }}

Two ideas come to mind.

  1. Did you bounce the App Server? (That is required)
  2. Does your Java code include a Package line? The CreateJavaObject
    must include the Package path.

David Wildschuetz
National Association of Insurance Commissioners