Skip to main content

[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

[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
It may be an environment configuration issue.
What happens when you run . $COBDIR/bin/cobsetenv then run cobjvm?

Also, is the Java runtime you are accessing 32 or 64 bit?

[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
Hello,

If I execute this instruction and the result is the same.., I get the same error:

(DES):aixlab0102:/MNG/DESA/FUENTES/EQBASE>. $COBDIR/bin/cobsetenv
COBDIR set to /swmango/visualcobol
(DES):aixlab0102:/MNG/DESA/FUENTES/EQBASE>
(DES):aixlab0102:/MNG/DESA/FUENTES/EQBASE>cd visual_cobol
(DES):aixlab0102:/MNG/DESA/FUENTES/EQBASE/visual_cobol>cd javaProva1
(DES):aixlab0102:/MNG/DESA/FUENTES/EQBASE/visual_cobol/javaProva1>cd bin
(DES):aixlab0102:/MNG/DESA/FUENTES/EQBASE/visual_cobol/javaProva1/bin>cobjrun appWindow1
/swmango/visualcobol/bin/cobjrun64: Could not load libjvm.so


The Java runtime is 64 bit. And the version is

(DES):aixlab0102:/MNG/DESA/FUENTES/EQBASE/visual_cobol/javaProva1/bin>java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pap3260sr9fp2-20110627_03(SR9 FP2))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc-32 jvmap3260sr9-20110624_8552
6 (JIT enabled, AOT enabled)
J9VM - 20110624_085526
JIT - r9_20101028_17488ifx17
GC - 20101027_AA)
JCL - 20110530_01

What can I do?

Thank you