EASY, URGENT, 500 Points : using JNI to invoke JVM in VS.net
Posted on 2004-04-11
On building I get the following Runtime Error:
"unresolved external symbol _imp_JNI_CreateJavaVM....."
Ive included JSDK/include, JSDK/iinclude/Win32 in the c++/includes option
JSDK/lin, JSDK/jre/lib, JSDK/jre/lib/i386 in the linker->Additional Library Directories often
I even tried adding "-link C:/JSDK/lib/jvm.lib" to linker->command line
If I add: -link "C:/JSDK/lib/jvm.lib" to the c/c++->coomandline option
I get a Warning "unrecognised option '/link'; ignored
Even though the DLL builds without errors.
The final dll created doesn't start so I assume something went wrong!
Please Help me - Ive looked everythwre and followed the guidelines, but am stuck!