[pylucene-dev] OS X JCC can't wrap java.awt classes
Andi Vajda
vajda at osafoundation.org
Wed Jul 23 16:42:04 PDT 2008
On Jul 24, 2008, at 1:35, Andi Vajda <vajda at osafoundation.org> wrote:
>
> On Jul 24, 2008, at 1:27, Bill Janssen <janssen at parc.com> wrote:
>
>>> Now I'm getting a different problem. I'm trying to wrap some AWT
>>> classes (java.awt.BufferedImage, java.awt.Rectangle,
>>> javax.imageio.ImageIO). This works fine on 32-bit Linux. But
>>> when I
>>> try on OS X, I get this:
>>>
>>> % python -m jcc --shared --include GoodStuff.jar --python
>>> docfinder --version 1.0.0 --package java.lang --package java.util
>>> com.parc.GoodStuff java.awt.Rectangle java.awt.image.BufferedImage
>>> javax.imageio.ImageIO java.io.File --debug --build
>>> 2008-07-23 16:02:50.514 Python[76738:60b] Apple AWT Java VM was
>>> loaded on first thread -- can't start AWT.
>>> Traceback (most recent call last):
>>
>> I tried adding "-J-XstartOnFirstThread" to the javac parameters in
>> JCC's setup.py file, but that didn't help.
>
> Another way around the error might be to catch it in JCC and just
> skip the offending class.
Better yet, find out what the offending class' name is and add it to
the command line with --exclude
Andi..
>
>
> Andi..
>
>>
>>
>> Bill
>> _______________________________________________
>> pylucene-dev mailing list
>> pylucene-dev at osafoundation.org
>> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
> _______________________________________________
> pylucene-dev mailing list
> pylucene-dev at osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
More information about the pylucene-dev
mailing list