-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bruno Waes wrote:
> 
> if i understand correctly those two dll files are precompiled for
> windows and they contain the
> Java_com_lowagie_tools_plugins_IdentifyColorPages_colordetectnative
> method signature.

That's correct.

> I have put them in a jar and made them available in my WEB-INF/lib
> 
> But i still get an error:
> java.lang.UnsatisfiedLinkError: no gsdll32 in java.library.path
> 
> i would have expected an error that the method can not be found or so,
> because i created my own class.
> 

I'd suggest for you to get a simple JNI example to work with your setup
first before adapting the code from the iText toolbox to avoid
compounding unrelated problems.

Also, there are some JNI issues related to web applications. A quick
google search found this:

http://forum.java.sun.com/thread.jspa?threadID=780109&tstart=180


> I also tried to compile the linux part of the code. but i am getting
> some weird errors:
> debian-etch:~/thingy# make
> gcc -c -Wall -I/root/thingy/gs- gpl-8.54.dfsg.1/src
> -I/opt/java/jdk1.6.0/include -I/opt/java/jdk1.6.0/include/linux

The source was compiled and tested with 8.15 and it looks like some
changes are needed for newer versions.

> i hope i don't get too much off-topic on this mailinglist, but i have
> found really little info on how to make your own JNI-ghostscript links.

Note that the toolbox code is not as stable as the core iText library,
specially the ghostscript part so you'll need to adapt the code to make
it work for your own project.


Xavier

- --
Xavier Le Vourch
Brittany Software, Inc.
<[EMAIL PROTECTED]>

PGP Key (ID 0x896C5947): http://brittanysoftware.com/gpg_key.asc
Key fingerprint: 73B3 6370 B8C5 4325 F2D8  4115 0372 5805 896C 5947
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHaAghA3JYBYlsWUcRAt4sAJ4tcSQXjaxXNgYhj2KWs05QX+8b8ACfan2F
9IexVEHseju0b4OTBt09itU=
=dB0W
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to