I use ghost4j GhostScript
to manage TIFF and PDF files in a webapp.
I included Ghost4J
into my project using Maven
and installed Ghostscript
into C:\Program Files\gs\...
but after this I still get an error:
java.lang.UnsatisfiedLinkError: Unable to load library 'gsdll64'
To solve this, I must place the file gsdll64.dll
in working directory (usually c:\eclipse
) as proposed here.
Till here everything fine, but when I deploy the app in the integration environment (win7
and tomcat7
) I get this exception:
org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.ghost4j.GhostscriptLibrary.
I installed Ghostscript
into C:\Program Files\gs\...
in the host and as in this discussion I wrapped code with try {} catch (Exception e)
but does not seem to help.
Any idea where I should place the gsdll64.dll
or how to solve the error?