Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: Called program file not found in drive/directory.(Visual COBOL 2.1 for RedHat)

$
0
0

The difficulty might be that you need to use "cobjrun" instead of "java" to invoke the process.  Search the documentation for the keyword "cobjrun".  At one point the documentation says:

Java/COBOL Application Launcher

Restriction: This topic applies to UNIX environments (remote

development) only.

Restriction: This applies to native code only.

The Java/COBOL application launcher, cobjrun, is used to launch a Java

application from a COBOL run-time environment. cobjrun is the trigger

for cobjrun32 and cobjrun64 and should be used instead of your usual

Java application launcher as it sets up your environment to correctly

manage both the COBOL run-time system and the Java Virtual Machine.

In another section entitled, "Setting Up the Environment for Java and COBOL" (the same section where the "cobsetenv" script is described), it says:

To run COBOL and Java together, you need to use the Java/COBOL

application launcher, cobjrun, instead of the java or cobrun triggers.

To test whether this might be the answer, instead of your original command line:

java org.junit.runner.JUnitCore junit.SS2401_test

Try the following command line (where "java" is replaced by "cobjrun"):

cobjrun org.junit.runner.JUnitCore junit.SS2401_test


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>