Script functions reference > Script functions in alphabetical order > J

J
JavaCreateObject
Syntax
JavaCreateObject(strObjHandle, strClassName);
strObjHandle
strClassName
Prerequisites
The Java environment must be configured, i.e. the compiled Java class must be accessible. See Configuring Java parameters in the Control Center documentation for more information.
Description
Instantiates a new Java object of a specific class. The class name is provided as an argument to the function call. The caller also provides a handle name (string) to be used in subsequent calls to refer to the created object. The Java object constructor gets called when creating an object.
Returns
A number indicating whether the object was successfully created.
0
-1
Example
$iRetVal = JavaCreateObject("objTestHandle", "streamserve.invokeexternaljava.TestClass");
OpenText StreamServe 5.6 Updated: 2013-03-01