Hi All!
Has anybody tried the PIL library in Jython?
The PIL library is installed and working well for Python.
I copied the PIL folder in the Jython/Lib folder. The creation of the jar file using the jythonc command is working smooth. Is processing the PIL library..
In my python code I use
from PIL import Image
.... class etc
      im = Image.open("example.png")
.... processing over im
Is not anything out of the ordinary..
So, I create the jar file and try to run it and I get:
C:\jython2.2.1>java -jar watermarkimage.jar
Exception in thread "main" Traceback (innermost last):
  File "C:\jython2.2.1\WatermarkImage.py", line 0, in main
  File "C:\jython2.2.1\WatermarkImage.py", line 0, in writeToImage
  File "C:\jython2.2.1\Lib\PIL\Image.py", line 0, in open
  File "C:\jython2.2.1\Lib\PIL\ImageFile.py", line 0, in __init__
  File "C:\jython2.2.1\Lib\PIL\PngImagePlugin.py", line 0, in _open
  File "C:\jython2.2.1\Lib\PIL\PngImagePlugin.py", line 0, in __init__
  File "C:\jython2.2.1\Lib\PIL\PngImagePlugin.py", line 0, in __init__
  File "C:\jython2.2.1\Lib\PIL\Image.py", line 0, in __getattr__
ImportError: The _imaging C module is not installed
Any advices would be good,

Never miss a thing. Make Yahoo your homepage.