[Migrated content. Thread originally posted on 21 November 2011]
Hello,I'm working with Visual Cobol for Eclipse (Windows).
I've created a Java Application that calls a Procedural Cobol Program. I have follow this steps...
-I have generated a "Single native library file" (dll) for the Procedural Cobol Program, and I have added it in the Java Project.
-In the Java Project I have added the "Visual Cobol Runtime System" library, and I have used the "RuntimeSystem.cobcall" instruccion for the call...
... and finally, it works correctly.
Now I want to use this application in a AIX server with JRE 1.6.0 and "Development Hub".
To do this I have follow this steps:
-I have imported the Procedural Cobol Program with the option "Convert local Cobol Projects to Remote Projects", where the remote server was this AIX server... Then I have generated the ".so" library, and I have added it in the Java Project.
-Then I have copied the Java Application directly to the AIX server.
-When I have executed the Java Application in the AIX server ("java app1"), I have recived this error:
Micro Focus COBOL Runtime Support for Java is preventing this application from
executing because an internal Java property is not setup.
Reason: Application should use "cobjrun" to execute this application instead
of the default "java" trigger
-And when I have tried to use "cobjrun", I have recived this error:
/swmango/visualcobol/bin/cobjrun64: Could not load libjvm.so
What do you think about this? Maybe I have to declare some environment variable so cobjrun64 could find the libjvm.so?? I have this library this folders:
/usr/java6/jre/bin/classic/libjvm.so
/usr/java6/jre/bin/j9vm/libjvm.so
/usr/java6/jre/lib/ppc/classic/libjvm.a
/usr/java6/jre/lib/ppc/classic/libjvm.so
/usr/java6/jre/lib/ppc/j9vm/libjvm.a
/usr/java6/jre/lib/ppc/j9vm/libjvm.so
Thank you