I have a Java program when I compile it I get the following error
[javac] ...\\MyClass.java:33: package com.sun.image.codec.jpeg does not exist
[javac] impor
Which JDK are you using? I think that this package is not a requirement and will only be available in Sun's JDK. This discussion explains.
You may be able to download the jar file and include it on your path file separately if you really want to use it though.
According to docs:
Note that the classes in the com.sun.image.codec.jpeg package are not part of the core Java APIs. They are a part of Sun's JDK and JRE distributions. Although other licensees may choose to distribute these classes, developers cannot depend on their availability in non-Sun implementations. We expect that equivalent functionality will eventually be available in a core API or standard extension.