#include #include #include "DynamicLoader.h" #ifdef __cplusplus extern "C" { #endif /* * Class: DynamicLoader * Method: test_func * Signature: ()V */ JNIEXPORT void JNICALL Java_DynamicLoader_afunc (JNIEnv *, jclass) { std::ofstream out("afile"); out << "hello world!!!\n"; } #ifdef __cplusplus } #endif