i got errors trying to javac the *.java. The english translation of the dutch text is: Javac is not recognised as internal or external command/instruction. I solved this problem by editing my classpath: .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar ;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license _cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;D:\Mic ro Focus\Visual COBOL 2010\bin\mfcobol.jar; As you can see the mfcobol.jar was included in the classpath.
I also included the path to the javac-module in my environment variables. (C:\Program Files\Java\jdk1.6.0_21\bin)
The next problem I faced was that my Java.exe was located under C:\Program Files\Java\jre6\bin\java.exe instead of the C:\Program Files (X86)\Java\jre6\bin\java.exe as referenced in the project.
I hope you can add these two additions to the readme.txt so that the next person will not face the same problems :-)
Inorder to use java support we should use cobjrun command to run the java code. But my requirement is to use java in the command line not cobjrun.
I think if we directly use java to call cobol we should use cobjrun in the command like. But if we use a C program which inturn calls cobol which can be used in JNI codeing.
I want invocation to happen in the following way
Java --> C --> Cobol
C has utilitues like cobinit(), cobcall() and cobtidy. There are few exampls which shows how to achive this in documentation but they dont provide proper compiler options or directives which can be used.
This C code and Cobol has to be compiled as shared objects which can be used in JNI by setting LIBPATH.