Demos in using Ch Java


Ch Java has been demonstrated using two different techniques:

In this technique Ch SDK is used in creating wrapper functions consisting of Ch function file and C space function which communicates with each other. This communication is extended to JNI C libraries. The Portable Ch script invokes a JVM and executes Java Class. It also has the ability to invoke a Java class using the Graphic User Interface. These GUI can also be utilised for application from Ch.

Portable Ch script invokes Java class


C executable invokes Java class


Now the Portable C/C++ script also has the ability to access the GUI developed using Java class. It can acess both GUI developed using AWT and SWING components.



C executable invokes Java GUI using AWT Components

C executable invokes Java GUI using SWING Components

In this technique Embedded Ch SDK is used in communicating between the JNI binary library with the Ch space functions. Here the Java class is first executed which invokes the Portable C/C++ script.

Java class invoking Portable C/C++ script


.

.