This is an example of a C program that uses the system() function to call the Java™ Hello program.
#include <stdlib.h> int main(void) { int result; /* The system function passes the given string to the CL command processor for processing. */ result = system("JAVA CLASS('com.ibm.as400.system.Hello')"); }