This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Compile Native COBOL as JVM COBOL

Hello everyone. The documentation says that it is possible to compile a native COBOL as a COBOL JVM using the JVMGEN compile directive. However, the following error occurs when I add the project nature "COBOL JVM Nature Project": to a project with the project nature "Mainframe COBOL": Problems encountered while setting project description. Nature com.microfocus.eclipse.coboljvm.coboljvm Nature is missing prerequisite nature: org.eclipse.jdt.core.javanature. So, could anyone tell me how I could set the JVMGEN compile directive to true in Enterprise Developer?

Labels:

Enterprise Developer
  • Suggested Answer

    Hi Sergi,

    Can you advise why you want to compile a mainframe project to COBOL JVM? I want to understand that more, e.g. do plan to migrate a mainframe application (e.g. CICS) to run as a standalone COBOL JVM application?

    It maybe related to the JDK version you are using, a component is missing that the compiler look for.

    I recommend you to consider raising a support case to seek further help for this issue, when raising a case please consider to include a test case program/directives/instructions to follow, this will help speed up the investigation.

  • The underlying reason is that I need to consume a REST API service from a native COBOL program. So, started several tests and one of them consists of a native COBOL program calling a COBOL JVM program that calls a Java program that makes the REST API call.
    On the other hand, I am also trying to generate a COBOL client of the REST API service.

  • Verified Answer

    Hi, I recommend you to consider raising a support case to seek further guidance on this, if raising a case please consider to include a test case project that can be used to replicate the reported behaviour and instructions to follow. That will help speed up the investigation.