Hello I'm trying to invoke a cobol program from a java class.
Following suggestion in
Presentation material for 2006 Guide/SHARE Europe Nordic session S09
I wrote a Cobol OO wrapper to obtain:
java---> Cobol OO ---> COBOL
(I'm running cobol enterprise v4R2 and java 6.0.1)
But at runeime I get
java.lang.UnsatisfiedLinkError: c_to_cobol (Not found in java.library.path)
I'm not able to find c_to_cobol
Re: Invoking Cobol from java2013-01-21T21:39:27ZThis is the accepted answer. This is the accepted answer.Your description suggests that the Cobol OO part has either not been linked to an executable named libc_2_cobol.so, or the LIBPATH is not pointing to a directory that contains it.
SystemAdmin 110000D4XK403 Posts
Re: Invoking Cobol from java2013-01-22T13:49:31ZThis is the accepted answer. This is the accepted answer.
- brataj 1000008163
I did a serach on all my usr/lpp but I cannot find it.
Re: Invoking Cobol from java2013-01-22T14:58:20ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
But then I'm assuming that your illustration "java ---> Cobol OO ---> COBOL" is literally correct and you're calling Cobol code directly from Java as a native method, and there's no other (C?) code involved.
In any case, there's no libc_to_cobol.so provided by the operating system, C or Cobol, perhaps it's creation is mentioned in the SHARE presentation.