what library I need so I can access this com.sun.image.codec.jpeg in Java?

前端 未结 4 2067
忘掉有多难
忘掉有多难 2021-02-07 21:29

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         


        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-07 21:51

    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.

提交回复
热议问题