Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Replacing the deprecated Java JPEG classes for Migrating from JDK 1.5.0_06 to 1.8.0_66

panktiJan 21 2016 — edited Jan 21 2016

Jdeveloper - 12.2.1.0.0

I am currently migrating an application from JDK 1.5.0_06 to 1.8.0_66. In the application, there are multiple files that use com.sun.image.codec.jpeg classes. When I try to create a JAR I'm getting the below error.

error: package com.sun.image.codec.jpeg does not exist import com.sun.image.codec.jpeg.*;

I referred the blog on Replacing the deprecated Java JPEG classes for Java 7 and my errors were cleared. But now I'm getting a warning as below


warning: JPEGImageWriter is internal proprietary API and may be removed in a future release

import com.sun.imageio.plugins.jpeg.JPEGImageWriter;

Kindly help me on how to go ahead with the same.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 18 2016
Added on Jan 21 2016
3 comments
3,659 views