JNI & jar files : use jar file in CLASSPATH when java is called from C code

Before creating my JVM from my C code, I set its options and particularly :

options[0].optionString = (char *) "-Djava.class.path=.:./toto.jar:<my CLASSPATH>

when toto.class is in current directory, my C code can find it

when toto.jar contains toto.class, my C code can find it

when toto.jar contains dir1/toto.class (jar file contains a sub tree and toto.class is not at root), my C code doesn't find the class !....

can someone help me please?

Thanks

JCC

[520 byte] By [jccarrion] at [2007-9-26 5:33:50]
# 1
And when it is in dir1/toto.class in the name of the class dir1.toto?
jschell at 2007-6-29 19:45:14 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Thanks a lot joe !This is the good answer, I didn't know I could use this syntax in the FindClass function.JCC
jccarrion at 2007-6-29 19:45:14 > top of Java-index,Java HotSpot Virtual Machine,Specifications...