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 :
*> declare the java iText library
*> or an object referring to the library
*> or something calling a cobol program written using the cobol jvm syntax
*> 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
set eof to true
*> 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.