title: Editing jpeg EXIF data with Java
body: <p>I want to edit jpg files' properties like: comments, title, date taken, camera maker, etc.</p>
  
  <p><a href="https://i.stack.imgur.com/SE1i9.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/SE1i9.jpg" alt="enter image description here"></a></p>
  
  <p>I have found libraries to read these data. But I need a <strong>free</strong> library with examples to <strong>edit</strong> them. </p>
  
  <p>I'm aware of apache's imaging (sanselan). But I was not able to edit data with it. If you have previously used it yourself, I'd accept that as an answer only if you provide an example code other than the one in their website. Because even when I use their example I was not able to edit any property other than GPS data. After i run the code, file-properties-details still have the same values.</p>
  
  <p>Thanks !</p>
  
  <p>Note: I also tried JHeader (<a href="https://sourceforge.net/projects/jheader/" rel="noreferrer">https://sourceforge.net/projects/jheader/</a>) but using it as a process with -cl option still did not changed properties list.</p>