title: osmdroid-packager Could not find or load main class
body: <p>This is mostly a java question, and likely something I'm overlooking.</p>
  
  <p>I've been trying to use osmdroid-packager (<a href="http://code.google.com/p/osmdroid/wiki/HowToUsePackager" rel="nofollow">http://code.google.com/p/osmdroid/wiki/HowToUsePackager</a>) to package map tiles for my android app, on Ubuntu Linux.  I've been following the instructions on the site above, and have run into some issues.</p>
  
  <p>I have in my current directory, osmdroid-android-3.0.8.jar, osmdroid-packager-3.0.8.jar, and slf4j-android-1.6.1-RCq.jar.  I've setting the classpath, and attempting to run using the commands below gives me the error </p>
  
  <blockquote>
    <p>'Could not find or load main class
    org.osmdroid.mtp.OSMMapTilePackager'</p>
  </blockquote>
  
  <p>I've also tried different variations of setting the classpath (setting classpath, CLASSPATH, to the jars, to the current directory, with -classpath) with the same result.  The best I can come up with is that the class is not in the jar.</p>
  
  <p>The commands I tried from the website above were:</p>
  
  <pre><code>set classpath='osmdroid-android-3.0.8.jar;osmdroid-packager-3.0.8.jar;slf4j-android-1.6.1-RC1.jar;sqlitejdbc-v056.jar'
  
  
  java org.osmdroid.mtp.OSMMapTilePackager -u http://tile.openstreetmap.org/%d/%d/%d.png -t Mapnik -d haarlem.zip -zmax 18 -n 52.4244 -s 52.3388 -e 4.6746 -w 4.594
  
  java -cp . org.osmdroid.mtp.OSMMapTilePackager
  </code></pre>
  
  <p>also gives the same error.</p>
  
  <p>I haven't downloaded a copy of sqlitejdbc yet, but I'm pretty sure that's not the issue.</p>