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

Build JVM COBOL by ant

$
0
0

Build JVM COBOL by ant

I had a problem when I build a JVM COBOL(JUnit test) by ant(ant -lib $COBDIR/lib/mfant.jar -f .cobolBuild).
****************************************************
[cobol]
[cobol] Compiling SUSJ2401_test.cbl...
[cobol] ** COBCH1561S JVM support not found: Possibly the type info helper classes were not on the classpath : /home/admin/workspace/Test_RXSub/src/junit/SUSJ2401_test.cbl(0,1,0)
[cobol] cob32: error(s) in compilation: /home/admin/workspace/Test_RXSub/src/junit/SUSJ2401_test.cbl
[cobol] Compilation complete with 1 errors, 0 warnings, 0 notices and an exit code of 16
*****************************************************
I set the CLASSPATH up in the environment(RHEL6.1) and the script(.cobolBuild). But the build still failed.
Have I missed anything?

Thank you!

environment
export CLASSPATH=.:/usr/java/jdk1.6.0_29/jre/lib/resources.jar:/usr/java/jdk1.6.0_29/jre/lib/rt.jar:/usr/java/jdk1.6.0_29/jre/lib/jsse.jar:/usr/java/jdk1.6.0_29/jre/lib/jce.jar:/usr/java/jdk1.6.0_29/jre/lib/charsets.jar:/usr/java/jdk1.6.0_29/jre/lib/ext/dnsns.jar:/usr/java/jdk1.6.0_29/jre/lib/ext/localedata.jar:/usr/java/jdk1.6.0_29/jre/lib/ext/sunjce_provider.jar:/usr/java/jdk1.6.0_29/jre/lib/ext/sunpkcs11.jar:/opt/microfocus/VisualCOBOL/lib/mfcobol.jar:/opt/microfocus/VisualCOBOL/lib/mfcobolrts.jar:/opt/microfocus/VisualCOBOL/lib/mfsqljvm.jar:/opt/microfocus/VisualCOBOL/eclipse/eclipse/plugins/org.junit_4.8.2.v4_8_2_v20110321-1705/junit.jar:/home/admin/lib/org.hamcrest.core_1.1.0.v20090501071000.jar:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH


.cobolBuild
<mfdirlist id="cobol_directive_set_1">
<directive name="DIALECT" value="MF"/>
<directive name="COPYEXT" value="cpy,cbl"/>
<directive name="NOWARNING"/>
<directive name="ILUSING" value="java.lang"/>
<directive name="CHARSET" value="ASCII"/>
<directive name="SOURCEFORMAT" value="variable"/>
<directive name="MAX-ERROR" value="100"/>
<directive name="SOURCETABSTOP" value="4"/>
<directive name="JVMCLASSPATH" value="/usr/java/jdk1.6.0_29/jre/lib/resources.jar:/usr/java/jdk1.6.0_29/jre/lib/rt.jar:/usr/java/jdk1.6.0_29/jre/lib/jsse.jar:/usr/java/jdk1.6.0_29/jre/lib/jce.jar:/usr/java/jdk1.6.0_29/jre/lib/charsets.jar:/usr/java/jdk1.6.0_29/jre/lib/ext/dnsns.jar:/usr/java/jdk1.6.0_29/jre/lib/ext/localedata.jar:/usr/java/jdk1.6.0_29/jre/lib/ext/sunjce_provider.jar:/usr/java/jdk1.6.0_29/jre/lib/ext/sunpkcs11.jar:/opt/microfocus/VisualCOBOL/lib/mfcobol.jar:/opt/microfocus/VisualCOBOL/lib/mfcobolrts.jar:/opt/microfocus/VisualCOBOL/lib/mfsqljvm.jar:/opt/microfocus/VisualCOBOL/eclipse/eclipse/plugins/org.junit_4.8.2.v4_8_2_v20110321-1705/junit.jar:/home/admin/lib/org.hamcrest.core_1.1.0.v20090501071000.jar"/>
</mfdirlist>


Viewing all articles
Browse latest Browse all 4356

Trending Articles



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