The java class files for test code in C is wrote in Java, then copy to C project path. This method was not good since it need two steps. So I changed to directly use files in Java project class path.
It simply use the following macro.
#define LIBRARY_PATH "C:\\workspace\\library\\classes\\"
#define ABOSOLUTE_PATH(classfile) LIBRARY_PATH classfile