Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Calling Java from C++ thru JNI

843829Mar 21 2003 — edited Apr 17 2003
Hi,

Can anybody help me on this...

I am trying to invoke a simple java method from c++.
I am using the reference example as in tutorial at
http://www-105.ibm.com/developerworks/education.nsf/java-onlinecourse-bytitle/52FFDF7067EAA64986256B87006A5D37?OpenDocument


My C++ program compiles without any errors, but when i try to create an EXE, I get the foll. error::

error LNK2001: unresolved external symbol __imp__JNI_CreateJavaVM@12

I am using JDK1.3, and also making use of jvm.dll, jvm.lib and jni.h files shipped with the JDK installer. Can anybody give me a clue on what is the error referring to?

Thx in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2003
Added on Mar 21 2003
7 comments
877 views