Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Emily Diaz   on Feb 10 In Java Category.

  
Question Answered By: Helene Stewart   on Feb 10

Does anyone have any experience with JNI? I am trying to startup  a
JVM as a subsystem of a C++ program  but I'm having trouble  figuring
out exactly how to get the jvm  started. Here's my code:

JavaVM *jvm;
JNIEnv *env;
JavaVMInitArgs vm_args;
vm_args.version = JNI_VERSION_1_4;
JNI_GetDefaultJavaVMInitArgs(&vm_args);
JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);

This linker can't find  implementations for JNI_CreateJavaVM() or
JNI_GetDefaultJavaVMInitArgs() yet they're declared in jni.h

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Java Native Interface Or get search suggestion and latest updates.


Tagged: