What library do I need, so I can visit this com. Com in Java sun. image. codec. jpeg?
•
Java
I created an image watermarking program in Java. I imported the following contents:
import com.sun.image.codec.jpeg.JPEGCodec; import com.sun.image.codec.jpeg.JPEGEncodeParam; import com.sun.image.codec.jpeg.JPEGImageEncoder;
But I got an error saying:
Does anyone know a way to solve this problem, or which libraries need to be added to access the library?
Solution
Look at this link
1. Open project properties. 2. Select Java Build Path node. 3. Select Libraries tab. 4. Remove JRE System Library. 5. Add Library JRE System Library.
As mirad said
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码