We have following problem:
- we are using the testversion of VC4.0
- we try to call a cobol program from java
- so we created a JVM-Project with two cobol files
-> program1.cbl and copy1.cpy
- and a Java-Project with
-> CobolCallDemoDefaultPackage.java within a java-Project.
- now we tried to call Program1 with Copy1 as parameter, but we get the following compiler-error:
"The type com.microfocus.cobol.program.Reference cannot be resolved. It is indirectly referenced from required .class files"
public static void main(String[] args) {
PROGRAM1 program1 = new PROGRAM1();
Copy1 copy1 = new Copy1();
copy1.setEDatum("20180101");
program1.PROGRAM1(copy1); <- doesn't work: The type com.microfocus.cobol.program.Reference cannot be resolved. It is indirectly referenced from required .class files
System.out.println(copy1.getADatum());
}
Where is our mistake ?
Thanks for any hint !


