Ghost4j is unable to detect 'gs' in Solaris.
Hello Zippy,
In my solaris machine ghostscript is there and it is working by 'gs' command. But while running the ghost4j sample examples it showing the following error:
ERROR: Unable to load library 'gs': ld.so.1: java: fatal: libgs.so: open failed: No such file or directory
java.lang.UnsatisfiedLinkError: Unable to load library 'gs': ld.so.1: java: fatal: libgs.so: open failed: No such file or directory
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239)
at com.sun.jna.Library$Handler.
Could you help me on this?
Regards, Rameswar
Hi,
I don't know Solaris much...
It seems that JNA does not search the shared lib at the right place. To fix that, you can set the jna.library.path property to the directory containing your gs.so.
If it does not work: please tell me the path and the filename of the gs native lib on Solaris (maybe it is named differently from other Unix).
Regards, Gilles