[Migrated content. Thread originally posted on 18 April 2012]
Hello,I am trying to invoke a Java class from Visual COBOL, following these lines:
Declaring Java Classes
But I am not able to do it. This is the error that appears:
Load error : file '$java$vertex.Vertex'
error code: 198, pc=0, call=1, seg=0
198 Load failure Java by itself is running well.
The Java module is defined inside the package 'vertex' and my class is named 'Vertex'. I wrote this class using NetBeans, under Windows, and copied the JAR file to the AIX server. The COBOL program has been written without using Eclipse, too.
The lines below belong to this program:
$set ooctrl" p-f"
program-id. prvertex as "prvertex".
environment division.
configuration section.
repository.
class Vertex as "$java$vertex.Vertex.jar".
data division.
working-storage section.
copy "javatypes.cpy".
01 aJavaObj object reference.
01 theTotal pic 9(9).
01 CDims pic x(4) comp-5.
01 Dims.
03 Dims-entry pic x(4) comp-5 occurs 256.
01 Bounds.
03 Bounds-entry pic x(4) comp-5 occurs 256.
01 ind0 pic x(4) comp-5.
01 ind1 pic x(4) comp-5.
01 arrayElement pic x(4) comp-5.
01 wsTable object reference.
01 wsResult pic x(4) comp-5.
procedure division.
invoke Vertex "new" returning aJavaObj.
goback.
end program prvertex.What am I doing wrong?
Thank you




