I am having a problem creating a JVM from C/C++. I am getting an error code of -1 when I call JNI_CreateJavaVM(...) API from C.
I am using jdk1.1.3 ->
I am setting:
vm_args.version = JNI_VERSION_1_2;
I think the problem might have to do with my classpath.
vm_args.classpath = ???
I'm not sure what my class path should be. I tried many different things. I put my .class java file in the c:\ directory and set the classpath to c:\, but it didn't work.
Does anyone have any suggestions!
Thank you. jcast17