FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Java

 
 
LinkBack Thread Tools
 
Old 09-12-2011, 08:56 AM
Paul Wise
 
Default package sun.awt.image.codec does not exist

http://stackoverflow.com/questions/1906673/import-com-sun-image-codec-jpeg

Sounds like your code is buggy, apparently com.sun.* are not supposed
to be used:

http://www.oracle.com/technetwork/java/faq-sun-packages-142232.html
http://download.oracle.com/javase/1.4.2/docs/guide/2d/api-jpeg/com/sun/image/codec/jpeg/JPEGImageEncoder.html

Apparently ImageIO is the way to go:

http://download.oracle.com/javase/tutorial/2d/images/saveimage.html

--
bye,
pabs

http://wiki.debian.org/PaulWise


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAKTje6ELQ5ATxhWeBO3oMrcTkcUMs_qts9Z8U6GB-FWuXCB6ow@mail.gmail.com">http://lists.debian.org/CAKTje6ELQ5ATxhWeBO3oMrcTkcUMs_qts9Z8U6GB-FWuXCB6ow@mail.gmail.com
 
Old 09-12-2011, 06:41 PM
Torsten Werner
 
Default package sun.awt.image.codec does not exist

Hi Mathieu,

it looks like warnings, not errors.

Cheers,
Torsten

On Mon, Sep 12, 2011 at 10:26 AM, Mathieu Malaterre
<mathieu.malaterre@gmail.com> wrote:
> Hi all,
>
> *Does anyone knows why I am getting the following error (*) ? Is
> there some actual difference in between sun java and openjdk one ?
> They are not interchangeable ?
>
> Thanks
>
> (*)
> * *[javac] /home/mathieu/debian/debian-med/trunk/packages/jai-core/trunk/jai-core-1.1/src/share/classes/com/sun/media/jai/tilecodec/JPEGTileEncoder.java:31:
> warning: com.sun.image.codec.jpeg.JPEGQTable is Sun proprietary API
> and may be removed in a future release
> * *[javac] import com.sun.image.codec.jpeg.JPEGQTable ;
> * *[javac] * * * * * * * * * * * * * * * *^
> * *[javac] /home/mathieu/debian/debian-med/trunk/packages/jai-core/trunk/jai-core-1.1/src/share/classes/com/sun/media/jai/tilecodec/JPEGTileEncoder.java:32:
> package sun.awt.image.codec does not exist
> * *[javac] import sun.awt.image.codec.JPEGParam ;
> * *[javac] * * * * * * * * * * * * * ^
> * *[javac] /home/mathieu/debian/debian-med/trunk/packages/jai-core/trunk/jai-core-1.1/src/share/classes/com/sun/media/jai/tilecodec/JPEGTileEncoder.java:107:
> warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary
> API and may be removed in a future release
> * *[javac] * * private JPEGEncodeParam convertToJ2DJPEGEncodeParam(
>
> --
> Mathieu
>
>
> --
> To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: http://lists.debian.org/CA+7wUswz7JaNjWq7qLWXbkw3uvQJJRyebKwAHhBhGB94BS6Zp g@mail.gmail.com
>
>


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CALj2o_1bO3WYy_yNrY32RZuW0k92Vh=oS3jz0DqeQaLRVLem-g@mail.gmail.com">http://lists.debian.org/CALj2o_1bO3WYy_yNrY32RZuW0k92Vh=oS3jz0DqeQaLRVLem-g@mail.gmail.com
 
Old 09-12-2011, 06:54 PM
Mathieu Malaterre
 
Default package sun.awt.image.codec does not exist

Torsten,

You have to jump to the second report: "package sun.awt.image.codec
does not exist"

As quoted by Paul, this has been largely documented, and should have
been removed by everyone ages ago. This is unfortunate so many science
packages depends on JAI but never actually check that the jar contains
unresolved symbols for there plateforms...

On Mon, Sep 12, 2011 at 8:41 PM, Torsten Werner <twerner@debian.org> wrote:
> Hi Mathieu,
>
> it looks like warnings, not errors.
>
> Cheers,
> Torsten
>
> On Mon, Sep 12, 2011 at 10:26 AM, Mathieu Malaterre
> <mathieu.malaterre@gmail.com> wrote:
>> Hi all,
>>
>> *Does anyone knows why I am getting the following error (*) ? Is
>> there some actual difference in between sun java and openjdk one ?
>> They are not interchangeable ?
>>
>> Thanks
>>
>> (*)
>> * *[javac] /home/mathieu/debian/debian-med/trunk/packages/jai-core/trunk/jai-core-1.1/src/share/classes/com/sun/media/jai/tilecodec/JPEGTileEncoder.java:31:
>> warning: com.sun.image.codec.jpeg.JPEGQTable is Sun proprietary API
>> and may be removed in a future release
>> * *[javac] import com.sun.image.codec.jpeg.JPEGQTable ;
>> * *[javac] * * * * * * * * * * * * * * * *^
>> * *[javac] /home/mathieu/debian/debian-med/trunk/packages/jai-core/trunk/jai-core-1.1/src/share/classes/com/sun/media/jai/tilecodec/JPEGTileEncoder.java:32:
>> package sun.awt.image.codec does not exist
>> * *[javac] import sun.awt.image.codec.JPEGParam ;
>> * *[javac] * * * * * * * * * * * * * ^
>> * *[javac] /home/mathieu/debian/debian-med/trunk/packages/jai-core/trunk/jai-core-1.1/src/share/classes/com/sun/media/jai/tilecodec/JPEGTileEncoder.java:107:
>> warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary
>> API and may be removed in a future release
>> * *[javac] * * private JPEGEncodeParam convertToJ2DJPEGEncodeParam(
>>
>> --
>> Mathieu
>>
>>
>> --
>> To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>> Archive: http://lists.debian.org/CA+7wUswz7JaNjWq7qLWXbkw3uvQJJRyebKwAHhBhGB94BS6Zp g@mail.gmail.com
>>
>>
>
>
> --
> To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: http://lists.debian.org/CALj2o_1bO3WYy_yNrY32RZuW0k92VhoS3jz0DqeQaLRVLem-g@mail.gmail.com
>
>



--
Mathieu


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CA+7wUsxZv_-8wWo_19rOBUDh-Vher6qVPr50_orVMufBJt=VAA@mail.gmail.com">http://lists.debian.org/CA+7wUsxZv_-8wWo_19rOBUDh-Vher6qVPr50_orVMufBJt=VAA@mail.gmail.com
 

Thread Tools




All times are GMT. The time now is 10:14 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org