Home  >  Article  >  Java  >  Detailed explanation of how java obtains JPEGImageEncoder and JPEGCode class instances

Detailed explanation of how java obtains JPEGImageEncoder and JPEGCode class instances

怪我咯
怪我咯Original
2017-06-25 10:20:152078browse

I recently had to do some operations on PDFs. When I checked other people's codes and borrowed them, I found that because the code was incomplete and the referenced classes were incomplete, the two classes JPEGImageEncoder and JPEGCode could not be found. Later, I searched online. , I found that these two classes come from the package under rt.jar of JDK: com.sun.Detailed explanation of how java obtains JPEGImageEncoder and JPEGCode class instances.codec.jpeg,

and I quoted JDK 1.6.0.45, rt cannot be associated with the above The two classes, then, I switched to 1.7.0.06, as shown below:

Detailed explanation of how java obtains JPEGImageEncoder and JPEGCode class instances

After switching, the shortcut key ctrl+O can be automatically referenced.

The above is the detailed content of Detailed explanation of how java obtains JPEGImageEncoder and JPEGCode class instances. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn