title: UnsatisfiedLinkError and NoClassDefFoundError : Running Java Mapscript on Ubuntu 11.10
body: <p>We have coded and run a dynamic web application using MAPSERVER(Version 6.0.1) on windows platform using Java Technology. Now, there is need of deploying it on Ubuntu 11.10. We have installed Apache Tomcat 6.0, Mapserver 6.0.1, Apache 2.0, and FWTools-2.0.1(As this package contain all required tools for mapserver if I am not wrong, so I didn't feel any other tools to be installed). We have deployed the war file(and put application without) in Apache Tomcat 's Webapps folder. I even got the index page which dont have code related with mapscript api. But while fetching the other servlet with mapscript we are getting following error... </p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: no mapscript in java.library.path
  java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
  java.lang.Runtime.loadLibrary0(Runtime.java:840)
  java.lang.System.loadLibrary(System.java:1047)
  edu.umn.gis.mapscript.mapscriptJNI.&lt;clinit&gt;(mapscriptJNI.java:23)
  edu.umn.gis.mapscript.mapObj.&lt;init&gt;(mapObj.java:283)
  </code></pre>
  
  <p>Again while refreshing the browser page where the above error was displayed, I got a change,</p>
  
  <pre><code>java.lang.NoClassDefFoundError: Could not initialize class    
  edu.umn.gis.mapscript.mapscriptJNI
  edu.umn.gis.mapscript.mapObj.&lt;init&gt;(mapObj.java:283)
  </code></pre>
  
  <p>I searched on net about the above problem. But finally blank. Please, provide idea about the above problem.</p>