Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
Tony Blinco
Frequent Visitor.
199 views

Red Hat : Failed to start JVM

Jump to solution

I am attempting to compile a Cobol program to java byte code under Red Hat v7 using the following command.

cob64 -jt Cobol.cbl

I get the following error;

*1558-S
** Failed to start JVM
cob64: error(s) in compilation: Cobol.cbl

In my research the only advice i can find is to make sure the bit size matches (64 or 32). Hence the cob64 command

Cobol version info
version @(#)cob.c 5.0.0.52
PRN=KXCRH/AAD:Ao.U4.13.04
PTI=32/64 bit
PTI=Micro Focus Visual COBOL Development Hub 5.0
PTI=pkg_238079
PTI=MFInstaller

Java version info

java version "1.7.0_231"
OpenJDK Runtime Environment (rhel-2.6.19.2.el7_7-x86_64 u231-b01)
OpenJDK 64-Bit Server VM (build 24.231-b01, mixed mode)

My Environment (Edited for readability)

COBDIR=/opt/microfocus/VisualCOBOL
COBCPY=/opt/microfocus/VisualCOBOL/cpylib
LD_LIBRARY_PATH=/opt/microfocus/VisualCOBOL/lib:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.231-2.6.19.2.el7_7.x86_64/lib:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.231-2.6.19.2.el7_7.x86_64
LIBPATH=/opt/microfocus/VisualCOBOL/lib:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.231-2.6.19.2.el7_7.x86_64/lib:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.231-2.6.19.2.el7_7.x86_64
PATH=/opt/microfocus/VisualCOBOL/bin:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.231-2.6.19.2.el7_7.x86_64/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/ablinco/.local/bin:/home/ablinco/bin
JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.231-2.6.19.2.el7_7.x86_64

I have attached  a stack trace of the compile.

Thanks in advance for any help

ps: I apologize if i have posted this in the wrong section

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Re: Red Hat : Failed to start JVM

Jump to solution
Have you tried using 1.8 rather than 1.7?

As I am not sure 1.7 is supported in 5.0.

View solution in original post

0 Likes
3 Replies
Micro Focus Expert
Micro Focus Expert

Re: Red Hat : Failed to start JVM

Jump to solution

Don't run cob64 explicitly. Set the COBMODE environment variable:

export COBMODE=64
cob -jt Cobol.cbl

Setting COBMODE will ensure you run the 64-bit versions of all the tools, use the 64-bit runtime objects, etc.

0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Red Hat : Failed to start JVM

Jump to solution
Have you tried using 1.8 rather than 1.7?

As I am not sure 1.7 is supported in 5.0.

View solution in original post

0 Likes
Tony Blinco
Frequent Visitor.

Re: Red Hat : Failed to start JVM

Jump to solution

Thank you. I will give that a try

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.