Calling Java Program from Ch



Ch Java supports already written C programs which were compiled useing a C compiler and was able to invoke JVM. C programs calling Java class can readily run on Windows platforms without compilation and linking. The popular inovke.c demo can be run interpretively in Ch, invoking JVM to run the HelloWorld.class.

A dynamically loaded library libjni.dl was developed using Ch SDK. The package contains source code and data files for the demo programs. The package requires Ch Standard or Professional Edition version 5.0.1.12201 or above. The dynamically loaded library libjni.dl for different platforms can be compiled using Ch SDK bundled in the distribution of Ch. It has been precompiled for the windows platforms.

The C file in the demos directory can be executed by following the instruction from the README file.

The demo program comes along with the package and can be found at /CHHOME/package/chjava/demos/

Ch Kaffe was developed for the Linux version equivalent to Java. It follows the same rule similar to Java explained above.

The demo program comes along with the package and can be found at /KAFFE_HOME/chkaffe/demos or /CHHOME/package/chkaffe/demos




Procedures and Figures explaining the application of Ch Java.



Demos using Ch Java in Controlling a Mechatronic system

Powered by Ch