ghost4j icon indicating copy to clipboard operation
ghost4j copied to clipboard

Ghost4j is unable to detect 'gs' in Solaris.

Open rameswar opened this issue 12 years ago • 1 comments

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.(Library.java:140) at com.sun.jna.Native.loadLibrary(Native.java:393) at com.sun.jna.Native.loadLibrary(Native.java:378) at org.ghost4j.GhostscriptLibraryLoader.loadLibrary(GhostscriptLibraryLoader.java:39) at org.ghost4j.GhostscriptLibrary.(GhostscriptLibrary.java:34) at org.ghost4j.Ghostscript.initialize(Ghostscript.java:323) at gs.util.GhostscriptUtil.convertPDFtoTIF(GhostscriptUtil.java:113) at gs.util.test.GhostscriptUtilTest.main(GhostscriptUtilTest.java:27)

Could you help me on this?

Regards, Rameswar

rameswar avatar Aug 16 '13 08:08 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

zippy1978 avatar Aug 19 '13 22:08 zippy1978