Skip to main content

[archive] java calling cobol on Linux

  • October 8, 2009
  • 5 replies
  • 0 views

[Migrated content. Thread originally posted on 07 October 2009]

Anyone have a solution?

My "java calling a cobol program" works 100% on Windows O/S, but on Linux O/S, I cannot get it to work.

The error I use to get in windows was sorted out when I added the wrun32.dll folder to the windows path (\\acu\\acugt720\\lib), on Linux I did the same (/u/runacu/lib - for the libruncbl.a), but I still get the following error when I run the java program: (on ver7 & ver8 Acu Cobol Runtime)

Initializing logging.
CVM: begin load
CVM: load library wrun32 or runcbl failed.
CVM: Exception caught loading CVM: no runcbl in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: no runcbl in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.acucorp.acucobolgt.CVM.(Unknown Source)
at com.acucorp.acucobolgt.CVM.GET_INSTANCE(Unknown Source)

what am I doing wrong??

Regards pietervdw

5 replies

[Migrated content. Thread originally posted on 07 October 2009]

Anyone have a solution?

My "java calling a cobol program" works 100% on Windows O/S, but on Linux O/S, I cannot get it to work.

The error I use to get in windows was sorted out when I added the wrun32.dll folder to the windows path (\\acu\\acugt720\\lib), on Linux I did the same (/u/runacu/lib - for the libruncbl.a), but I still get the following error when I run the java program: (on ver7 & ver8 Acu Cobol Runtime)

Initializing logging.
CVM: begin load
CVM: load library wrun32 or runcbl failed.
CVM: Exception caught loading CVM: no runcbl in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: no runcbl in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.acucorp.acucobolgt.CVM.(Unknown Source)
at com.acucorp.acucobolgt.CVM.GET_INSTANCE(Unknown Source)

what am I doing wrong??

Regards pietervdw
To use Java calling COBOL on Linux & Unix machines you have to have a shared object version of the runtime where there is a libruncbl.so instead of a libruncbl.a

[Migrated content. Thread originally posted on 07 October 2009]

Anyone have a solution?

My "java calling a cobol program" works 100% on Windows O/S, but on Linux O/S, I cannot get it to work.

The error I use to get in windows was sorted out when I added the wrun32.dll folder to the windows path (\\acu\\acugt720\\lib), on Linux I did the same (/u/runacu/lib - for the libruncbl.a), but I still get the following error when I run the java program: (on ver7 & ver8 Acu Cobol Runtime)

Initializing logging.
CVM: begin load
CVM: load library wrun32 or runcbl failed.
CVM: Exception caught loading CVM: no runcbl in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: no runcbl in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.acucorp.acucobolgt.CVM.(Unknown Source)
at com.acucorp.acucobolgt.CVM.GET_INSTANCE(Unknown Source)

what am I doing wrong??

Regards pietervdw
What must I do to get this to work with libruncl.a i.s.o librunclb.so, as none of my Acucorp installation disks consist of "shared object library".

What is the difference between using "shared object library" and a "static linked library" on Linux, surely the cvm.jar loaded with installed runtime should be able to detect the difference between the two (libruncbl.a and libruncbl.so) and use the one packaged with the runtime??

[Migrated content. Thread originally posted on 07 October 2009]

Anyone have a solution?

My "java calling a cobol program" works 100% on Windows O/S, but on Linux O/S, I cannot get it to work.

The error I use to get in windows was sorted out when I added the wrun32.dll folder to the windows path (\\acu\\acugt720\\lib), on Linux I did the same (/u/runacu/lib - for the libruncbl.a), but I still get the following error when I run the java program: (on ver7 & ver8 Acu Cobol Runtime)

Initializing logging.
CVM: begin load
CVM: load library wrun32 or runcbl failed.
CVM: Exception caught loading CVM: no runcbl in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: no runcbl in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.acucorp.acucobolgt.CVM.(Unknown Source)
at com.acucorp.acucobolgt.CVM.GET_INSTANCE(Unknown Source)

what am I doing wrong??

Regards pietervdw
What must I do to get this to work with libruncl.a i.s.o librunclb.so, as none of my Acucorp installation disks consist of "shared object library".

What is the difference between using "shared object library" and a "static linked library" on Linux, surely the cvm.jar loaded with installed runtime should be able to detect the difference between the two (libruncbl.a and libruncbl.so) and use the one packaged with the runtime??

[Migrated content. Thread originally posted on 07 October 2009]

Anyone have a solution?

My "java calling a cobol program" works 100% on Windows O/S, but on Linux O/S, I cannot get it to work.

The error I use to get in windows was sorted out when I added the wrun32.dll folder to the windows path (\\acu\\acugt720\\lib), on Linux I did the same (/u/runacu/lib - for the libruncbl.a), but I still get the following error when I run the java program: (on ver7 & ver8 Acu Cobol Runtime)

Initializing logging.
CVM: begin load
CVM: load library wrun32 or runcbl failed.
CVM: Exception caught loading CVM: no runcbl in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: no runcbl in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.acucorp.acucobolgt.CVM.(Unknown Source)
at com.acucorp.acucobolgt.CVM.GET_INSTANCE(Unknown Source)

what am I doing wrong??

Regards pietervdw
What must I do to get this to work with libruncl.a i.s.o librunclb.so, as none of my Acucorp installation disks consist of "shared object library".

What is the difference between using "shared object library" and a "static linked library" on Linux, surely the cvm.jar loaded with installed runtime should be able to detect the difference between the two (libruncbl.a and libruncbl.so) and use the one packaged with the runtime??

[Migrated content. Thread originally posted on 07 October 2009]

Anyone have a solution?

My "java calling a cobol program" works 100% on Windows O/S, but on Linux O/S, I cannot get it to work.

The error I use to get in windows was sorted out when I added the wrun32.dll folder to the windows path (\\acu\\acugt720\\lib), on Linux I did the same (/u/runacu/lib - for the libruncbl.a), but I still get the following error when I run the java program: (on ver7 & ver8 Acu Cobol Runtime)

Initializing logging.
CVM: begin load
CVM: load library wrun32 or runcbl failed.
CVM: Exception caught loading CVM: no runcbl in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: no runcbl in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.acucorp.acucobolgt.CVM.(Unknown Source)
at com.acucorp.acucobolgt.CVM.GET_INSTANCE(Unknown Source)

what am I doing wrong??

Regards pietervdw
You would have to contact your sales person and have them order it for you.