Skip to main content

Compile and Link C code from Cobol

  • June 17, 2012
  • 0 replies
  • 0 views

[Migrated content. Thread originally posted on 18 April 2011]

Dear Community Members,


I am working on a Legacy upgrade project. I have a cobol code which has to be called from Java Using JNI.

I have worked on JNI where we have java calling C program by creating shared object(Dynamic) or Shared Library(Static Linking). These can be done using xlc (AIX) C compiler and JVM.

I want to do the same JNI implementation for calling COBOL program from Java.

I want to know the steps to
1) complie a C program using cob compiler.
2) Link the complied object to a Shared Object
3) Load the shared Object into Java and Call Cobol program from Java.

It would be great if i get a code example.

Thanks in Advance.

Regards

Hithesh
























0 replies

Be the first to reply!