Hi all,
 
I create a JVM inside my C code. but when running, it said that Can't find Prog Class as what i witten in my c code.
 
cls = (*env)->FindClass(env, "Prog");
    if (cls == 0) {
        fprintf(stderr, "Can't find Prog class\n");
        exit(1);
 
How to set the classpath until c know where to get prog.class. I put it in /root/jni and set the following:
 
options[1].optionString = "-Djava.class.path=root/jni/Prog"; // user classes
 
Why still can't find Prog class?
 
Thanks in advance
 
soonho

Reply via email to