title: import com.sun.image.codec.jpeg.*
body: <p>I have a Java program
  when I compile it I get the following error</p>
  
  <pre><code>[javac] ...\MyClass.java:33: package com.sun.image.codec.jpeg does not exist
  [javac] import com.sun.image.codec.jpeg.*;
  [javac] ^
  </code></pre>
  
  <p>what can I do ?</p>
  
  <p>What is the correct way of writing an image file now that the com.sun package is deprecated.</p>