Setting Classpath.

Hi all,

I'm kinda new to C++ and was wondering if anyone could help me with this problem I'm trying to call a C++ function from a Java class, which I'm doing from the command prompt. I was wondering do you have to set the classpath variable in order to compile C++ programs from the command prompt. I set the variable for java and It's working fine, do you have to do the same for C++ and if so could someone point me in the right direction on how to do so.

Thanks in advance

Neil



Answer this question

Setting Classpath.

  • Kishor_Tripathy

    No, you do not. When the native method is invoked on the Java object, the JVM will invoke the function with the corresponding exported symbol in your DLL (Java_Package_Class_method). Thus, there is a dependency between the Java runtime and your DLL, but not the other way around.

    Regards, Nille


  • Setting Classpath.