Look at the myAverage.h and myAverage.CPP files for info on writing native codes in C++. Also the file jCPP for compilation and linking info.