Class not found exception
I am trying to embedd JVM in my C++ application through JNI. I am using JDK1.4 Beta2. There are couple of issues I am facing..
1. When I call JNI_GetDefaultJavaVMInitArgs with version set to JNI_VERSION_1_2, the call succeeds but the string represnting classpath contains null. And when I change the version to JNI_VERSION_1_1, then it is a valid string? But this creates another problem. When I try to create JVM by calling JNI_CreateJavaVM, the call failes returning error -3 i.e. incorrect version. Is this some kind of known issue with JDK1.4 or am i doing somethng wrong?
2. Then i decided to go ahead to use JNI_VERSION_1_2 when creating JVM. But now when i call FindClass function to get reference to my java class, it fails. Throws exception NoClassDefFoundError.
-- I am running Win2K Adv Server
-- I have not set any CLASSPATH variable
-- I appened "." to the classpath string in JDK1_1InitArgs variable.
Could someone help me fix this issue?
Thanks,
Naveen

