JNI HELP
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   suresh_narsi
Posted On:   Wednesday, March 6, 2002 04:16 AM

hi all, I have two Dlls which loads the java VM to execute a java function. (Each dll loads up a different java class to execute its function). I have an EXE from which iam trying to load both the dlls (to invoke appropriate java function) when iam tring to do this the dll crashes the second time i try to load the JAVA vm.(ie in the second dll...) the ifn.JNI_CreateJavaVM(&m_virtualMachine, &m_environment, &m_virtualMachineArguments); method returns a negative value. I have destroyed the java VM by calling m_virtualMachine->DestroyJavaVM(); in both the dlls. I even tried calling JNI_GetCreat   More>>
			

hi all,
I have two Dlls which loads the java VM to execute a java function. (Each dll loads up a different java class to execute its function).

I have an EXE from which iam trying to load both the dlls (to invoke
appropriate java function)

when iam tring to do this the dll crashes the second time i try to load the JAVA vm.(ie in the second dll...)

the

ifn.JNI_CreateJavaVM(&m_virtualMachine, &m_environment, &m_virtualMachineArguments);

method returns a negative value.


I have destroyed the java VM by calling

m_virtualMachine->DestroyJavaVM();

in both the dlls.

I even tried calling

JNI_GetCreatedJavaVMs function, even that seems to fail.


What should i do load the java VM twice from two seperate Dlls??

THanks in advance

   <<Less
About | Sitemap | Contact