LOTUSSCRIPT LANGUAGE


getClass method
Example

This method returns a reference to a Java class.

Defined in

JavaSession

Syntax

Set JavaClass = javasession.getClass(ClassName$)

Parameters

ClassName$


Usage

This method will return a Java class reference with which a Java object can be created within LotusScript.

Note There are 2 ways you can represent a String class:
java.lang.Stringexample: set MyClass = Session.getClass("java.lang.String")
java/lang/Stringexample: set MyClass = Session.getClass("java/lang/String")
When you use the dot "." notation on the Macintosh, the Mac will return an error that the Class cannot be found. Instead, use the slash "/" notation. The slash "/" notation works on all platforms. Use the slash "/" notation in your applications for multi-platform support.

Error thrown

"JavaClassNotFound" is thrown if the Java class cannot be located.

Example
See Also