Top
NetCOBOL V11.0 J Adapter Class GeneratorUser's Guide
FUJITSU Software

5.3.1 JVM-INIT Method (factory method)

Explanation

When it is called initially in a process, Java VM is initialized. This must be executed before using the adapter class.

Also, the current thread is connected to Java VM. In the multithread applications, the current thread must be connected to Java VM for each thread.

This is equivalent to the JVM-ATTACH method.

Syntax

INVOKE FJ-JAVA-CONTROL "JVM-INIT"

Environment variable

The Java VM execution environment can be customized by specifying the following environment variables. Refer to the "NetCOBOL User's Guide" for information on how to specify the environment variables.

Environment variable name

Function

COBJNI_MAX_NSTACK

Specifies the maximum size (bytes) of the stack used for the native code. The default is 128 kilobytes.

COBJNI_JAVA_STACK

Specifies the maximum size (bytes) of the stack used for the Java code. The default is 400 kilobytes.

COBJNI_MIN_HEAP

Specifies the startup size of the memory allocation pool in bytes. The default is 1 megabyte.

COBJNI_MAX_HEAP

Specifies the maximum size of the memory allocation pool in bytes. The default is 16 megabytes.

COBJNI_CLASSPATH

Specifies the execution-time class path.

Environment variable CLASSPATH specifies the generation-time class path and has no effect at execution time.

Note

An error occurs when this method is invoked two or more times in one process.