This is the mail archive of the
mailing list for the Cygwin project.
Re: Calling JVM from cygwin
- From: "Pasch, Thomas (ACTGRO)" <extern dot thomas dot pasch at volkswagen dot de>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>, "'gri at netcom dot es'" <gri at netcom dot es>
- Date: Wed, 13 Feb 2002 17:17:12 +0100
- Subject: Re: Calling JVM from cygwin
Some time ago, Ignasi Villagrasa wrote:
> I built following .bat file:
> gcc -c invoke.c -Id:\jdk1.3.1\include -Id:\jdk1.3.1\include\win32 DLLTOOL
--dllname jvm.dll --def libjvm.def \
> --output-lib d:\jdk1.3.1\jre\bin\classic\libjvm.a c++ -o invoke.exe
invoke.o -Ld:\jdk1.3.1\jre\bin\classic -ljvm
> with libjvm.def :
> All seems to work fine, and invoke.exe is generated. But when trying to
run it, I get a windows message telling me : invoke.exe
> doesn't find the entry point to _imp__JNI_CreateJavaVM@12 in jvm.dll.
you are right, there seems to be problem in invoking java from cygwin
(the other way round works all right). It seem that mingw is doing a
better job here.
is interesting for all. Code examples are included here as well. I can't
get invocation.zip to work under cygwin. It compiles all right, but
invoking main.exe will lead to a Segmentation fault.
Anyway, your *def file is wrong. Should be something like:
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html