Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1559

Calling a java library from legacy cobol with VC2.1

$
0
0

Hello,

We would like to integrate the iText pdf java library in a legacy application developed under VC2.1.

We know - thanks to the forum - how to call iText in a cobol jvm project.

But it is me unclear how to call - if possible - a java library from legacy cobol (or oo cobol) gnt executables without developing the entire application for the jvm.

The idea would be :

program-id. myLegacyCode.

*> declare the java iText library

*> or an object referring to the library

*> or something calling a cobol program written using the cobol jvm syntax

procedure division.

*> open my data file

perform until eof

     read mydatafile-record next

     not at end

          call or invoke the java iText routines directly or via some glue

     at end

         set eof to true

      end-read

end-perform

*> close mydatafile

*> exit program

end program myLegacyCode.

The code above would be compiled to gnt but call a java library.

If it is possible, a skeleton program would help me understand how to proceed.

Thank you.

AR


Viewing all articles
Browse latest Browse all 1559

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>