title: How to export KML file with JAK library or libkml -java?
body: <p>I use KML object in java. I want to export this object to file. I try to write this with JAK library,with the function KML.marshal() but it not successFul.
  I get this error:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/bind/marshaller/NamespacePrefixMapper
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.access$100(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at de.micromata.opengis.kml.v_2_2_0.Kml.createMarshaller(Kml.java:642)
      at de.micromata.opengis.kml.v_2_2_0.Kml.marshal(Kml.java:682)
      at de.micromata.opengis.kml.v_2_2_0.Kml.marshal(Kml.java:759)
      at com.nice.nicetrack.KMLGenerator.toKML(KMLGenerator.java:141)
      at com.nice.nicetrack.KMLGenerator.main(KMLGenerator.java:240)
  Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.marshaller.NamespacePrefixMapper
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 17 more
  </code></pre>
  
  <p>I don't want use XML or String format. Only KMl object!!
  please- help me!!
  thanks!</p>