Hi,
I am trying create the .dll out from the .C f ile using the makefile.
I am calling JNI_CreateJavaVM() function from .C file. This function is prototyped in JNI.h. When i tried to build the dll, i got the linker error as :
Creating library edabase.lib and object edabase.exp
edabase.obj : error LNK2019: unresolved external symbol __imp__JNI_CreateJavaVM@
12 referenced in function "struct JNIEnv_ * __cdecl createVM(char const *,char c
onst *)" (?createVM@@YAPAUJNIEnv_@@PBD0@Z)
edabase.dll : fatal error LNK1120: 1 unresolved externals
I have tried to set the path to
set JDK_HOME=%JDK_HOME%;%JDK_HOME%\lib
but this does not help. I am still getting the same error.
Can somebody help me ?
Thanks in advance
sanjay
I am trying create the .dll out from the .C f ile using the makefile.
I am calling JNI_CreateJavaVM() function from .C file. This function is prototyped in JNI.h. When i tried to build the dll, i got the linker error as :
Creating library edabase.lib and object edabase.exp
edabase.obj : error LNK2019: unresolved external symbol __imp__JNI_CreateJavaVM@
12 referenced in function "struct JNIEnv_ * __cdecl createVM(char const *,char c
onst *)" (?createVM@@YAPAUJNIEnv_@@PBD0@Z)
edabase.dll : fatal error LNK1120: 1 unresolved externals
I have tried to set the path to
set JDK_HOME=%JDK_HOME%;%JDK_HOME%\lib
but this does not help. I am still getting the same error.
Can somebody help me ?
Thanks in advance
sanjay