Application Delivery Management
Application Modernization & Connectivity
CyberRes
IT Operations Management
On SCO UnixWare 7.1.4 the call to C$JAVA fails with this error, seen in the runtime trace: Java dynamic init failed.
The ACUCOBOL-GT application calls Java programs via the C$JAVA library routine. On Windows and Linux platforms there is no error when running the application. However, when running the same application with the same configuration on SCO UnixWare 7.1.4, the call to C$JAVA fails with the error: Java dynamic init failed.
On SCO UnixWare 7.1.4 (and possibly some other platforms) there are additional steps and configurations necessary to enable the C$JAVA library routine to function properly.
Here's what must be done:
Locate the two Java lines, uncomment them, and set them like this:
JAVA_HOME = path to main java directory]
JAVA_LINK_FLAGS = -L $(JAVA_HOME)path to directory containing libjvm.so] -ljvm -lpthread -ljsig
On our server they look like this:
JAVA_HOME = /opt/java2-1.4.2
JAVA_LINK_FLAGS = -L $(JAVA_HOME)/jre/lib/i386/client -ljvm -lpthread -ljsig
make -f Makefile-java
JAVA_HOME=path to main java directory]
LD_LIBRARY_PATH=path to directory containing libjvm.so]:ath to the directory above that one]
JAVA_LIBRARY_NAME=path to and including libjvm.so]
On our server they look like this:
JAVA_HOME=/opt/java2-1.4.2
LD_LIBRARY_PATH=/opt/java2-1.4.2/jre/lib/i386/client:opt/java2-1.4.2/jre/lib/i386
JAVA_LIBRARY_NAME /opt/java2-1.4.2/jre/lib/i386/client/libjvm.so
acuthin servername:port --no-signal-handlers aliasnameAlternatively, it may be implemented on the server via the ACUSW environment variable.
ACUSW=" --no-signal-handlers" ;export ACUSW
to the profile of the user account that will run the application may be necessary.USE_UNIX_SHELL ONto the AcuConnect configuration file(acurcl.cfg).