• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNI, VC++, Enresolved external  RSS feed

 
ahmet akin
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there i am trying to start JVM from a VC++ application, after i compile, linker is complaining about the line down and telling "unresolved external"
JNI_CreateJavaVM(&jvm, (void **)&env, &args);
i believe this is a library path problem but i dont know what to do. i have Java SDK 1.4.2 and i included "jni.h" without a problem.
Thanks for any help.
 
rom chatterjee
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ihad problems with this too. Make sure that the path to the shared object used by the java program is in the LD_LIBRARY_PATH. Worked for me!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!