title: Where I should place gsdll64.dll in host with windows7 and tomcat7?
body: <p>I use <a href="http://www.ghost4j.org/" rel="nofollow noreferrer"><code>ghost4j GhostScript</code></a> to manage TIFF and PDF files in a webapp. 
  I included <code>Ghost4J</code> into my project using <code>Maven</code> and installed <code>Ghostscript</code> into <code>C:\Program Files\gs\...</code> but after this I still get an error:</p>
  
  <blockquote>
    <p>java.lang.UnsatisfiedLinkError: Unable to load library 'gsdll64'</p>
  </blockquote>
  
  <p>To solve this, I must place the file <code>gsdll64.dll</code> in working directory (usually <code>c:\eclipse</code>) as <a href="https://stackoverflow.com/questions/12153235/ghost4j-java-lang-unsatisfiedlinkerror-unable-to-load-library-gsdll64">proposed here</a>.</p>
  
  <p>Till here everything fine, but when I deploy the app in the integration environment (<code>win7</code> and <code>tomcat7</code>) I get this exception:</p>
  
  <blockquote>
    <p>org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.<strong>NoClassDefFoundError</strong>: <strong>Could not initialize class org.ghost4j.GhostscriptLibrary</strong>.</p>
  </blockquote>
  
  <p>I installed <code>Ghostscript</code> into <code>C:\Program Files\gs\...</code> in the host and as in <a href="https://stackoverflow.com/questions/7325579/java-lang-noclassdeffounderror-could-not-initialize-class-xxx">this discussion</a> I wrapped code with <code>try {} catch (Exception e)</code> but does not seem to help.</p>
  
  <p>Any idea where I should place the <code>gsdll64.dll</code> or how to solve the error?</p>