Problem:
Product: Net Express 4.0
Running a java program and getting a 103 error message that the library file is not found.
Resolution:
Check the environment is setup for Java and COBOL:
1) There is a need to have Java Development Kit (JDK) 1.3.x (or higher) installed. It is recommended to use the JDK supplied with your J2EE application server. Make sure that the PATH environment variable points to the bin directory of the correct JDK. To set the PATH using a command such as:
set Path=jdk-installation\\bin;%path%
The Java Development Kit (JDK) is required for compiling Java. The JDK is downloadable from the Sun Web site or use any Java IDE which is based on either the Sun or Microsoft Java run-time environments. After installing the JDK, to put the tools.jar file for the JDK on the classpath, using a command similar to:
set CLASSPATH=jdk-install-directory\\lib\\tools.jar
2) To check the following environment variables for the COBOL and Java run-time systems
COBJVM
Assuming that COBOL programs that call Java, there is a must to tell the COBOL run-time system which Java run-time system should be used. To do this, set environment variable COBJVM.
For example:
set COBJVM=SUN
PATH
Using the Sun Java run-time system, add the subdirectory containing the jvm.dll file to the system path. The location of this file depends on which version of the JDK is in use. For example:
set Path=%path%;c:\\jdk1.3.1\\jre\\bin\\subdirectory
where subdirectory might be client, classic, hotspot or server.
CLASSPATH
Assuming that Java programs which are going to call COBOL, there is the need to provide some Java classes which interface to the COBOL run-time system. Therefore, to ensure that mfcobol.jar is specified by the CLASSPATH environment variable for the Java run-time system. Also, to ensure that CLASSPATH specifies the current directory, denoted by a period (.). For example:
set classpath=%classpath%;.;c:\\program files\\Micro Focus\\net express\\base\\bin\\mfcobol.jar
Shared library path
The operating system's shared library path must include the directory containing libjava. This is often found in a subdirectory of Java's jre/lib directory, although the name of this directory is specific to each platform. On some platforms, there might be a need to specify more than one directory for this, for example, an additional directory containing the Java native threading support.



