[Advanced-java] create jvm from dll
Guneet Singh Sahai
guneet at in.fiorano.com
Mon Jun 30 13:41:01 2003
This is a multi-part message in MIME format.
---------------------- multipart/alternative attachment
Hi All,
I'm having a problem with creating a jvm from a dll.=20
I create a JavaVM in a C++ static library using the standard runtime =
linking method (the one that uses GetProcAddress). This C++ library then =
makes some API calls to a Java library.
Case-1
When I create an application that calls APIs of the C++ library it =
compiles fine and the resulting Win32 executable loads the JVM correctly =
and runs as expected.
Case-2
Now instead of calling the APIs of the static C++ library from an =
application I make a dll (say mydll.dll)that calls the the same APIs.
Then I make an application that loads this dll and calls an API in the =
dll that executes the same code as the application in Case 1. In this =
case the CreateJavaVM call hangs forever. After this I am not able to =
kill the application using CTRL-C and I can kill it only using the =
Windows task manager.
I have checked that the jvm.dll file is correctly found from the =
specified location.
Changing the JVM version and type does not seem to change the behavior.
Has anyone observed this before ? Please reply soon if anyone has an =
idea as this is a bit urgent.
Thanks in advance
Guneet
---------------------- multipart/alternative attachment
An HTML attachment was scrubbed...
URL: /lists/advanced-java/attachments/20030630/0f4acee5/attachment.htm
---------------------- multipart/alternative attachment--