Hi, my setup is as follows ....
I have a seq file that is accessing a Java class file, TestStandClient.java. something like
public class TestStandClient
{
public String test (String arg)
{
String returnVal = "";
try
{
TestClass testClass = new TestClass ();
returnVal = testClass .test (arg);
}
catch (Exception e)
{
returnVal = e .toString();
}
return returnVal;
}
TestClass.java is
public class TestClass
{
public String test (String arg)
{
return arg + " : [Jar object has modified string]";
}
}
Now. TestClass is in a seperate jar. When TestStandClient :: test is called i get a -4000 error. From the readme in the Java example file it is described as ....
Error
reading returned string
The
string returned from Java was corrupt. Verify that the return type of the Java
method is a string value.
I have noticed if I take out the call to the object in the jar file then everything works ok.
Could it be a classpath problem? the StartJVM has its classpath
pointing at the folder where the jar is and also at where the
TestStandClient class file is. I also set the classpath for the Java
step to be the same (location of jar and class file)
So, can someone inform me of what support TestStand has for java? Does it support communicating with a class file that itself depends on other JAR files? This is surely the case?
thanks in advance