I'm attempting to get the CobolCallingJava example for ACUCOBOL-GT version 8.1.3.1 working. When running the example, I get the following error for each occurrence of CALL C$"JAVA":
Java dynamic init failed.
It is the same error message as described in the following Wiki article, but in our case we're running this test in Windows 7.
community.microfocus.com/.../6320.c-java-gives-error-java-dynamic-init-failed.aspx
The JDK installed on my PC is jdk1.7.0_17.
The Java-related settings in our COBOL config file are as follows:
PRELOAD_JAVA_LIBRARY=1
JAVA_LIBRARY_NAME="C:\\Program Files\\Java\\jdk1.7.0_17\\jre\\bin\\server\\jvm.dll"
JAVA_OPTIONS=-Djava.class.path=R:\\Topps\\BIN\\CVM.jar;.;
My CLASSPATH environment variable = R:\\Topps\\BIN\\CVM.jar;.;
My PATH environment variable includes the Java bin directory, as well as the directory containing jvm.dll, i.e.,
....;C:\\Program Files\\Java\\jdk1.7.0_17\\jre\\bin;C:\\Program Files\\Java\\jdk1.7.0_17\\jre\\bin\\server;....
My LD_LIBRARY_PATH environment variable = R:\\Topps\\BIN
The file R:\\Topps\\BIN\\CVM.jar does exist, as does "C:\\Program Files\\Java\\jdk1.7.0_17\\jre\\bin\\server\\jvm.dll".
There are no errors when compiling either the Java or the COBOL programs in the example. However, I do get "Java dynamic init failed" at runtime.
What am I missing? Thanks!