Introducing com. Com into eclipse sun. image. codec. Perfect solution to JPEG packet error

When developing a java program in eclipse to process images, two packages need to be introduced:

However, sometimes errors will be reported when these two packages are introduced:

The main reason for this error is the access restriction problem in eclipse, which can be solved by the following two methods:

1、 The global attribute Preferences > java > compiler > errors / warnings > sets the error of the "deprecated and restricted API > forbidden reference" on the right to "warning".

2、 Project attribute Preferences > java build path > delete the JRE system library in libraries on the right and import it again.

Both of the above methods can solve the problem of eclipse introducing com sun. image. codec. JPEG error reporting. If the problem cannot be solved, please contact us

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
分享
二维码
< <上一篇
下一篇>>