LOTUSSCRIPT LANGUAGE


Using LS2J
To use LS2J from within Notes, your LotusScript code must include this line:
This loads the LS2J Dynamic Link Library (DLL) on Win32 and registers all the Application Data Types (ADTs). LotusScript provides a JavaSession ADT to be used as an instance to connect with the JVM.

This statement:


creates a new Java session. If the JVM has not been started, one is created at this time.

It is up to the LotusScript client to load the LSX. The environment determines how the Java Virtual Machine (JVM) is set up and the limits on how LotusScript can access the Java data.

LotusScript locates the Java class files in two ways:

1. In the Script Libraries that the user specified through the USE statement.

2. On the file system as specified in the Notes.ini variable JavaUserClasses.

To tell Notes where the Java classes are, include the following line in your Notes.ini file:


For example, if the Java classes are in one directory, such as E:\LSI\test\java, the Notes.ini file would include the following line:
In the Notes environment, LotusScript locates Java classes and uses them as if they were LotusScript objects. For example, if you have a set of common classes that are written in Java, you may use those classes in LotusScript without modification.

See Also