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

前端 未结 4 2065
忘掉有多难
忘掉有多难 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:53

    Maybe your jre system library is 1.8

    or eclipse: Project Properties > java compiler > Errors/Warnings > Deprecated API

    change Error to ignore/warning

提交回复
热议问题