I\'m creating an image watermarking program in java and I imported the followings:
import com.sun.image.codec.jpeg.JPEGCodec; import com.sun.image.codec.jpeg.JPE
These are in rt.jar, the jar file used as run-time facilities by the JVM, and I would strongly recommend you against adding it as a dependency to your project.
See why here.
The correct way to do what you want to do is described here.