lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Guin <cg...@bbn.com>
Subject Re: JCC initVM crash
Date Fri, 27 Apr 2012 14:34:02 GMT
Thomas -
Thanks for your reply.  The jvm.dll seems to be in the right place - 
when I remove it from the SysWOW64 folder, I get a very specific 
complaint about the dll not being there.

As for your other question, I built JCC myself.  As I'm dealing with 
some legacy systems I need Python 2.5 and it didn't look like there was 
a pre-built version available.  I built with a 32-bit version of Java 
(1.6.0_25), so I'm wondering if the issue is that something is expecting 
a 64-bit version.  However, I'm having trouble rebuilding JCC with the 
64-bit version of Java (1.6.0_29).  I'm getting the following errors 
from g++:

C:\MinGW32\bin\g++.exe -shared 
-Wl,--out-implib,build\lib.win32-2.5\jcc\jcc.lib -s 
build\temp.win32-2.5\Release\jcc\sources\jcc.o 
build\temp.win32-2.5\Release\jcc\sources\jccenv.o 
build\temp.win32-2.5\Release\jcc\sources\jcc.def -LC:\Python25\libs 
-LC:\Python25\PCBuild -lpython25 -lmsvcr71 -o 
build\lib.win32-2.5\jcc.dll "-LC:\Program Files\Java\jdk1.6.0_29/lib" 
-ljvm -Wl,-S -Wl,--outimplib,jcc\jcc.lib
Creating library file: jcc\jcc.lib
build\temp.win32-2.5\Release\jcc\sources\jcc.o:jcc.cpp:(.text+0xedc): 
undefined reference to `_imp__JNI_GetDefaultJavaVMInitArgs@4'
build\temp.win32-2.5\Release\jcc\sources\jcc.o:jcc.cpp:(.text+0x1162): 
undefined reference to `_imp__JNI_CreateJavaVM@12'

I'm using mingw on a 64-bit Win7 machine.  Would jdk1.6.0_25 have worked 
where 1.6.0_29 would not have for some reason?  Maybe I'm going about 
this the entirely wrong way...

Thanks,
Chris

(Here's my config.py file from the 32-bit Java JCC site-package I built:

INCLUDES=[u'C:\\Program Files (x86)\\Java\\jdk1.6.0_25/include', 
u'C:\\Program Files (x86)\\Java\\jdk1.6.0_25/include/win32']
CFLAGS=['-fno-strict-aliasing', '-Wno-write-strings']
DEBUG_CFLAGS=['-O0', '-g', '-DDEBUG']
LFLAGS=[u'-LC:\\Program Files (x86)\\Java\\jdk1.6.0_25/lib', '-ljvm']
IMPLIB_LFLAGS=['-Wl,--out-implib,%s']
SHARED=False
VERSION="2.12")

On 4/26/2012 4:46 PM, Thomas Koch wrote:
> Chris,
>
> Did you Build JCC yourself or did you download pre-built Version?
>
> A typical problem is that Java cannot be found at runtime - make sure that your Java
Client dll is available in path.
>
> Regards
> Thomas
> --
> Am 26.04.2012 um 20:30 schrieb Chris Guin<cguin@bbn.com>:
>
>> Hi -
>>
>> I'm trying to use JCC to wrap a simple test jar file on my Windows 7 machine, but
running "python -m jcc" crashes immediately when initVM is called (print statements I added
after the initVM call are never reached - those right before are).  The crash, unfortunately,
gives me no printouts or useful information at all - I just get the Windows 7 box saying "python.exe
has stopped working."  I've read through the docs trying to figure out if I missed something
obvious while installing or running it, but I haven't found anything yet.
>>
>> Any ideas?  Anyone run into anything similar?
>>
>> Thanks,
>> Chris


Mime
View raw message