This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~Tanita Eljipygen 9.May.03 11:10 AM a Web browser Applications Development6.0Windows 2000
Hi I have the following simple javaclass for testing purposes.
public class testIntArray {
public testIntArray(int[] x) {
System.out.println("Inititialized");
}
}
and i have the following code to instantiate the object in LS.
Set testIntArray = testIntArrayClass.CreateObject("([I)V", intArray)
where intArray is a LS array of integers that was populated with a few integer item.
I keep getting the error "Java constructor failed to execute". In the documentation it is stated that Array of Integers and other primitive datatypes are supported. I am wondering what I did wrong, please let me know if my declaration for createobject is correct.
Another question I have is, is it possible to pass an array of strings to the java constructors?