How to get import com.sun.image.codec.jpeg.*;..Help..

I’m doing a research for video compression n I need to compress the frame as image, I want to use com.sun.image.codec.jpeg.* , but I can’t download the plugin every where. I use JDK 1.5.0 to do my java program. Does any one have a suggestion about my problem? What should I do, so I can use com.sun.image.codec.jpeg.*?
thanks

That is part of the following:
[http://java.sun.com/javase/technologies/desktop/media/2D/]

Similar Messages

  • Package  com.sun.image.codec.jpeg

    i believe package com.sun.image.codec.jpeg does not come with the JDK...right ? where from i can download it ?
    However , i was surprised to see that JSP in tomcat is able to import
    <%@ page import="com.sun.image.codec.jpeg.*" %> // No ERROR !!

    thanks .....
    strange ......
    C:\tomcat\common\lib
    AND
    C:\tomcat\webapps\myapps\WEB-INF\lib
    No rt.jar is there .
    Anyway, where from it is downloaded if i want to use that pack ?

  • Com.sun.image.codec.jpeg output

    Dear developers, I must capture the message
    "Not a JPEG file: starts with"
    and the message
    "Corrupt JPEG data: premature end of data segment"
    This message does not raise none exception.
    Have you any idea?
    Thanks.

    I need some help. My predecessor created an
    application that calls the "com.sun.image.codec.jpeg"
    package. The client's java installation is the
    standard install and does not include this package.
    How do I find, download and install this in the
    client's environment? Also the client is running NT
    4.0 Workstation. Thanks!What does "standard install" mean? What version of the jre are they using? You can find out by typing:
    java -version
    Packages that begin com.sun... aren't part of the standard API, and aren't guaranteed to be supported -- as you are painfully aware. This particular package was for doing jpeg image I/O. If your client is using jre version 1.4, you can use javax.imageio.ImageIO to do this. If your predecessor was doing some straightforward I/O, the changes could only be a few lines -- more easily done than trying to install non-standard packages...

  • Com.sun.image.codec.jpeg package

    I need some help. My predecessor created an application that calls the "com.sun.image.codec.jpeg" package. The client's java installation is the standard install and does not include this package. How do I find, download and install this in the client's environment? Also the client is running NT 4.0 Workstation. Thanks!

    I need some help. My predecessor created an
    application that calls the "com.sun.image.codec.jpeg"
    package. The client's java installation is the
    standard install and does not include this package.
    How do I find, download and install this in the
    client's environment? Also the client is running NT
    4.0 Workstation. Thanks!What does "standard install" mean? What version of the jre are they using? You can find out by typing:
    java -version
    Packages that begin com.sun... aren't part of the standard API, and aren't guaranteed to be supported -- as you are painfully aware. This particular package was for doing jpeg image I/O. If your client is using jre version 1.4, you can use javax.imageio.ImageIO to do this. If your predecessor was doing some straightforward I/O, the changes could only be a few lines -- more easily done than trying to install non-standard packages...

  • Com.sun.image.codec.jpeg

    i'm looking for this package to include it in my webobject environement.
    I dont know were to find it exacly. (I speak french and i'm a little lost on the sun website.
    thanks

    You probably already have it. I know it comes bundled with java 1.3 and 1.4 (it might come with earlier versions too)

  • Com.sun.image.codec.jpeg package license?

    Does Sun's regular Java license cover the package in question? Meaning, can it be used in commercial products and delivered to the customer with the product?
    Does it come with every JDK/JRE 1.2 ->?

    It's part of the jdk, so my guess would be yesYep. I guessed the same, but would like to have concrete info of it.:)
    I think that package is in the rt.jar in versions 1.2
    / 1.3 / 1.4. However it's a non-standard package and
    if you're using 1.4 you should use the standard
    ImageIO class.I'm using 1.3, so it should be fine. The licensing just puzzles me, because I have to know for certain if it can be freely used in commercial products (within Java license terms).

  • Com.sun.image.codec.jpeg package and different platforms?

    I heard that this package is SunOS specific. Is that true? What platforms does it support for real?
    I have been trying to find more info than just the API documentation and haven't succeeded so far. Anybody know where I can retrieve more info on that package?

    Java is platform independent right? .. bundle the packages you use (that's not in the JDK) and it will work on *nix as well.
    You can usa tool like JDeploy (use google) to find out class dependencies etc. when you bundle your JAR (although this won't work if you use class.forName() etc.);
    - bjorn

  • Sun.image.codec.jpeg package

    where do i get
    com.sun.image.codec.jpeg package from???
    Thanks,
    Dimple.

    It is avalable with jdk1.2.2/1.3
    http://java.sun.com/products/java-media/jai/index.html

  • HOW do you use "com.sun.media.codec.video.jpeg.NativeEncoder"???

    Hi!! I want to know if I can use this encoder (NativeEncoder) for encoding to MJPG.
    If I do: PlugInManager.getPlugInList(new VideoFormat( VideoFormat.RGB),
                        new VideoFormat(VideoFormat.MJPG), PlugInManager.CODEC);
    I obtain only one codec:com.sun.media.codec.video.jpeg.NativeEncoder
    BUT, then, I do: codec.setInputFormat(new VideoFormat( VideoFormat.RGB))-->It returns me:NULL. why????!!!
    Regards!

    The input format may have to be more specific and suitable; eg for Windows :-
    RGBFormat(new Dimension(w,h), w*h*3, Format.byteArray, -1.0F, 24, 3, 2, 1, 3, w*3,-1,-1)

  • How to get the " com.sun.xml.* " package?

    In a java xml sample, it uses a class "com.sun.xml.tree.XmlDocument". Its author said it is a internal class.But I can't find the class in "com.sun" package. Please tell me how to get the class?
    Thanks very much!

    This set of classes was available in the J2ee.jar that was packaged with j2sdkee1.2.1, This set of classes is NOT in the j2ee.jar of the j2sdkee1.3.1. After we upgraded, we started to get these errors ... have no idea where/if these classes are still available as add on api or not. I downloaded the the java xml pack and this class is not available in any of the jars contained within.

  • How can i convert an image into gif file as jpeg by using com.sun.image.*

    please help me to convert an image into gif format. i have used sun's impl com.sun.image.code.jpeg package to convert a buffered image into a jpeg file. is there any implementatioln available from sun to handle gif files.

    Many. Try for instance google with 'java image encoders'. Go to the URL http://www.google.com/search?q=java+image+encoders and be amazed of the wonders of modern web search tools.

  • URGENT!!!! help me!Where I can get package com.sun.awt.svg.*

    Hello,everybody!
    I want to know Where I can get package com.sun.awt.svg.* ??

    Requirements
    JDK 1.3 Software -
    To use the Graphics2D SVG Generator, you need to have installed the Java 2 Software Developer's Kit (SDK). You can obtain the Java 2 SDK from the Sun Java 2 web site (http://java.sun.com/j2se/).
    The Graphics2D SVG Generator software was tested with version 1.3, so you should use the same version or a newer one.
    DOM Implementation -
    A DOM level 1 implementation is needed to use the Graphics2D SVG Generator. You can obtain a Java language DOM implementation from the following:
    Apache Xerces (http://xml.apache.org/xerces-j/index.html)
    Sun Microsystem's Project X
    (http://developer.java.sun.com/developer/products/xml)
    You also need to put the corresponding jar files in the classpath. The following table shows commands for doing this.
    Operating System DOM Implementation Command
    Windows 98 Xerces set classpath=%classpath%;
    xercesinstalldir\xerces.jar
    Windows 98 Project X set classpath=%classpath%;
    projectxinstalldir\xml.jar
    UNIX Xerces setenv CLASSPATH ${CLASSPATH}:
    xercesInstallDir/xerces.jar
    UNIX Project X setenv CLASSPATH ${CLASSPATH}:
    projectxinstalldir/xml.jar
    SVG Viewer
    To view the generated SVG files, you need to have an SVG viewer. You can find a list of available SVG viewers at the W3C SVG web site (http://www.w3.org/Graphics/SVG/SVG-Implementations).
    top of the page
    Installing the Graphics2D SVG Generator Software
    IMPORTANT:
    Before installing the software, make sure you agree to the license terms.
    To install the software, perform the following steps:
    Step 1: Uncompress the distribution file in the desired installation directory. Use these commands (from the command line):
    > cd installDir
    > jar xf j2d2svg.zip
    The j2d2svg.jar file expands into a directory (j2d2svg) that contains the following:
    README.html (this file) -- Provides important information about installing and using the Graphics2D SVG Generator.
    svggraphic_license.html -- License agreement.
    svggen.jar -- A jar (java archive) file that contains the SVGGraphics2D classes.
    glf.jar -- A jar file that contains the Graphic Layers Framework classes.
    svggenDoc.jar -- A jar file that contains the software's API documentation in HTML.
    HelloSVG.java -- Example file.
    HelloManipulatedSVG.java -- Example file.
    Step 2: Add svggen.jar to the classpath.
    On Windows, use this command:
    - set classpath=%classpath%;<j2d2svginstalldir>\svggen.jar
    On UNIX, use this command:
    - setenv CLASSPATH=${CLASSPATH}:j2d2svginstalldir/svggen.jar
    To use the Graphic Layer Framework conversion utility (i.e., to use the com.sun.awt.svg.util.GlfSVGPrettyPrint), you will also need to add the glf.jar file to your classpath. However, this is not required to run the examples.

  • Import com.sun.j3d.loaders.Scene - no longer compiles - what package?

    import com.sun.j3d.loaders.Scene -- this line compiled back in 2002, but is not supported under the current Java Development Package. Does anyone know the replacement package? I installed Java3D and JDIC, but my compiler still complains of an error. I read that JDIC got moved to org.jdesktop, but I tried
    import org.jdesktop.j3d.loaders.Scene -- this did not work either. Can someone tell me what package I need to include in my class path to get my compiler to recognize loaders.Scene?
    Thanks in advance.

    Nevermind this post. I added my vrml97 package to the runtime library, but I forgot to add it to the compile library. Oops.

  • How can I import my photoshop images onto my ipad?

    How can I import my photoshop images onto my ipad?

    Another way. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive (works the same with an SD card) into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Using The iPad Camera Connection Kit
    http://support.apple.com/kb/HT4101
    Secrets of the iPad Camera Connection Kit
    http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
     Cheers, Tom

  • Import  com.sun.xml.tree.XmlDocument

    Hello! Can some one help me on the following problem?
    I am writing a DOM parser and I need to print out the modified xml file. So I want to use the write funcition defined in the com.sun.xml.tree.XmlDocument library. But this package is NOT included in JAXP package. Where shall I get this com.sun.xml.tree.XmlDocument library?
    Any help is greatly appreciated.

    You are WRITING an XML parser? Hopefully you meant that you were USING an XML parser. If you are using JAXP (which does include an XML parser) then you don't need that package to output XML. The example you got that idea from is obsolete.
    If your question is "How to use JAXP to write XML from a Document object?" then this is a FAQ here. Perhaps the search function is working and you could find the answer in this forum; I recall that it involves creating a Transformer whose input is the Document and whose output is wherever you wanted the XML to go to.

Maybe you are looking for

  • PDF printing on Application Express 3.0 question

    Hi All, I'm using "Report Queries" under Shared Components to test the following query: Select '2'||' %' "Test Percent Sign" From dual; The output is: Test Percent Sign 2 %; Why is the semicolon also display after percent sign? NOTE: The same stateme

  • Printed document page number cross-references

    Is it possible to export webhelp to Printed Document - MS Word with page numbers taking the place of hyperlinks? Must the page numbers be added after the printed document is created? If so, can the InsertPagRefs macro insert page numbers across a mul

  • How to control each node mx:tree

    Hello all, I use an mx:tree. The issue is that I wantto control each node for creating lazy load mode tree. I want to see node as an clickable node which has children. But I'll call and add the childrens to dprovider when I need it, on click itemOpen

  • Data overwrite in Master data

    Hi, I'm loading data for master data for InfoObject X (with attributes A,B,C and D) from 3 non-sap sources. I had these questions. The key field here is infoobject X itself: 1) Will the data gets overwritten, if same keyfield come from two source sys

  • File Backup on IPad

    There is an ipad app for backing up ipads with Asigra. Is there any way to backup files and email attatchments using this product. Are work arounds for a deployment.