title: Are there libraries or packages for creating .mobi files in a Java/Linux environment?
body: <p>I'm trying to find a solution that offers either a Java api for writing .mobi files for sending to a Kindle, or something that's scriptable given a Linux environment.  I have text data in a MySQL database that I want to offer as Kindle-friendly content.</p>
  
  <p>I'd like to hear what tools people have used for this that work reasonably well.</p>