Where is sun.awt.image.Image in Java5?

Hello,
I'm trying to compile a package using Java 5, which was before compiled with 1.4. I geth the error "sun.awt.image.Image cannot be resolved or is not a valid superclass".
I found that class in 1.4.2, but not in 1.5. Is there an substitution for that?
Regards,
Kai

Look in:
java.awt.Image and java.awt.image for your needs and remember the sun.* packages are not guarenteed to be supported or be the same from version to version.

Similar Messages

  • Where to download  "sun.awt.image.codec.JPEGImageDecoderImpl"/Windows

    Hello,
    I bought some Java API. These API uses com/sun/image/codec/jpeg/JPEGCodec.
    I found these clases in src.zip in java install directory.
    Then, this code has a source line
    "import sun.awt.image.codec.JPEGImageDecoderImpl;"
    Where can I find/downlad this class?
    (I work on Windows platform)

    This class is in rt.jar package
    which is in ur jre directory/lib
    Hope u got it!!
    Pradhip

  • Sun.awt.image.ToolkitImage

    Hi
    I'm integrating with a 3rd party package which delivers various images.
    These come in different objects, mostly BASE64DecoderStream and BufferedImage. But, GIF files are delivered as a ToolkitImage object.
    For the BufferedImage I do something like
    ByteArrayOutputStream stream = new ByteArrayOutputStream();
    ImageIO.write(image, "JPG", stream);and puts it in DB. I just can't figure out a way to do the same for ToolkitImage.
    My questions are:
    1. Is there a way to convert/cast the ToolkitImage so i can format/encode it and put it in DB, similar to the example above?
    2. Where is the API documentation for the internal classes in package "sun.awt.image"?
    Hope you experts can help me out here :)

    > Didn't know it could be casted to an Image.
    Do you know of any documentation on sun.awt.image in general?
    Why Developers Should Not Write Programs That Call 'sun' Packages
    The classes that Sun includes with the Java 2 SDK, Standard Edition, fall into package groups java.*, javax.*, org.* and sun.*. All but the sun.* packages are a standard part of the Java platform and will be supported into the future. In general, packages such as sun.*, that are outside of the Java platform, can be different across OS platforms (Solaris, Windows, Linux, Macintosh, etc.) and can change at any time without notice with SDK versions (1.2, 1.2.1, 1.2.3, etc). Programs that contain direct calls to the sun.* packages are not 100% Pure Java. In other words:
    The java.*, javax.* and org.* packages documented in the Java 2 Platform Standard Edition API Specification make up the official, supported, public interface.
    If a Java program directly calls only API in these packages, it will operate on all Java-compatible platforms, regardless of the underlying OS platform.
    The sun.* packages are not part of the supported, public interface.
    A Java program that directly calls into sun.* packages is not guaranteed to work on all Java-compatible platforms. In fact, such a program is not guaranteed to work even in future versions on the same platform.
    For these reasons, there is no documentation available for the sun.* classes. Platform-independence is one of the great advantages of developing in the Java programming language. Furthermore, Sun and our licensees of Java technology are committed to maintaining backward compatibility of the APIs for future versions of the Java platform. (Except for code that relies on serious bugs that we later fix.) This means that once your program is written, the class files will work in future releases.
    Each company that implements the Java platform will do so in their own private way. The classes in sun.* are present in the SDK to support the Sun implementation of the Java platform: the sun.* classes are what make the Java platform classes work "under the covers" for the Sun Java 2 SDK. These classes will not in general be present on another vendor's Java platform. If your Java program asks for a class "sun.package.Foo" by name, it may fail with ClassNotFoundError, and you will have lost a major advantage of developing in Java.
    Technically, nothing prevents your program from calling into sun.* by name. From one release to another, these classes may be removed, or they may be moved from one package to another, and it's fairly likely that their interface (method names and signatures) will change. (From the Sun point of view, since we are committed to maintaining the Java platform, we need to be able to change sun.* to refine and enhance the platform.) In this case, even if you are willing to run only on the Sun implementation, you run the risk of a new version of the implementation breaking your program.
    In general, writing java programs that rely on sun.* is risky: they are not portable, and are not supported.
    ~

  • Java.io.NotSerializableException: sun.awt.image.BufferedImageGraphics2D

    Hi all!
    This problem is in relation to a very complex bean for data visualization which is jarred and bridged as an activex control.
    I am able to create the activex control and embed it in a vb form. But when I try to run the application in vb I get the following message and the application does not start.
    java.io.NotSerializableException: sun.awt.image.BufferedImageGraphics2D The bean has not used the class mentioned above anywhere. It uses the
    Image
    class though. I have used other beans, which use the same drawing techniques as the bean in question, as activex controls, with no errors.
    What could be the problem?
    tia
    Shailesh
    PS: the actual error dump is 1 page long I can send it by email on request.

    Hello,
    Have you implemented the Serializable Interface? I usually receive that error when I forgot to implement that interface. It is mandatory for a JavaBean to implement this interface.
    As an example:
    import java.io.Serializable;
    public class SimpleBean implements Serializable
    I hope it helps.
    Antonio Castro

  • I have created a folder and album where I've renamed the images, yet when I export them, the default to their original numbering. How can I block that so I can keep the newly renamed images as I've renamed them?

    I have created a folder and album where I've renamed the images, yet when I export them, the default to their original numbering. How can I block that so I can keep the newly renamed images as I've renamed them?

    As TD pointed out:
    OT

  • Basic Photoshop 101: I want to use an image with an outer glow in another Photoshop document. When I place the image, the outer glow has hard edges where the box of the image cut the glow off. Naturally, I want a soft feathered outer glow. How do I get th

    Basic Photoshop 101: I want to use an image with an outer glow in another Photoshop document. When I place the image, the outer glow has hard edges where the box of the image cut the glow off. Naturally, I want a soft feathered outer glow. How do I achieve that? Thank you.

    That should work out, maybe edit it to force updating in the new image.
    Could you please post a screenshot with the Layers Panel visible?

  • Where do you get your images?

    I have accounts with several different stock image online
    companies. But things are getting very expensive.
    I was wondering if there was a website that offers free
    images. I'm also curious, where do you get your images?
    I can grab my digital camera, take a few pictures and edit
    with photoshop but thats not always the case.
    When you design a web page, where do you get your images?
    Thaks for any suggestions.
    Patrick

    "P@tty Ayers ~ACE"
    <[email protected]> wrote in message
    news:g6psi0$raq$[email protected]..
    >
    > "JoeyD1978" <[email protected]> wrote
    in message
    > news:g6pl69$jll$[email protected]..
    >> sxc.hu is a great site, I don't understand the
    confusion here either.
    >> It's
    >> setup exactly like iStock (and has existed for just
    as long). They have
    >> high-end photos at the bottom of their free results
    that you have to pay
    >> for
    >> through their sister site, but those are clearly
    marked.
    >
    > Well, this is weird. Yesterday when I pointed my browser
    to sxc.hu, I got
    > a very different site than I got today. I know that I
    used the same URL
    > yesterday, because it's still in my browser's memory.
    >
    > The site I got yesterday was of the type that
    domain-owners, or maybe web
    > hosts? use to make money off a domain that has no real
    web site. It had no
    > page title or heading other than "SXC.HU", and had
    nothing on the page but
    > searches on various words related to "stock photos".
    >
    > The site I get today looks like what "Tun Tun" and Joey
    are describing.
    >
    > That might explain the confusion!
    Patty, I've used stock.xchg (sxc.hu) before and found some
    good (and bad)
    images there. Another one to try is Morgue File -
    http://www.morguefile.com/
    some others to try:
    http://www.usa.gov/Topics/Graphics.shtml
    http://www.loc.gov/rr/print/
    http://www.imageafter.com/

  • Where Could I Find An Image Like This For Mac?

    I saw this image (below) on Instagram's website, and I was wondering where the same kind of image could be found. Instead of a picture on an iPhone, a picture of an app working on a Mac screen, where I could substitute my own image in.

    Take a picture of your phone running the app ?
    Or if the quality is not so good that way do what the pro's do take a picture of the phone then a screen capture of the App running and photo shop the screen capture to image of the phone.

  • Where are bg color / bg image in CS 5.5?

    Where are bg color / bg image in CS 5.5? They don't appear in the properties panel when a table is selected. Thanks.

    The background color and background image attributes of the table tag have been deprecated by the W3C and should no longer be used to specify those two things. As a result, they have (rightly) been removed from the table Property inspector). Instead, you are expected to use CSS to apply these two styles to the table in question, e.g.,
    table#thisOne { background-color:#FF6633; background-image:url(path/to/image.jpg); }
    which will style this table -
    <table id="thisOne">...</table>
    with a color and a background image.

  • HELP: where is "com.sun.awt.svg"?

    Hi,
    there is sample code "HelloSVGWorld.java" for SVG generator at
    http://wwws.sun.com/software/xml/developers/svg/java2d-api/
    can anyone kindly tell me where the package com.sun.awt.svg is. Many thanks.

    I did download batik but there are about 20 jar files and anyone knows if "com.sun.awt.svg" is contained in one of these jar files. Thanks a lot.

  • 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.

  • Where can i find package com.sun.awt.svg.*??

    where can i find package com.sun.awt.svg.*??
    urgent!!! please help me!
    thanks in advance!!!

    Perhaps you might find some useful information here;-
    http://forum.java.sun.com/thread.jsp?forum=54&thread=427144&tstart=15&trange=15
    (pillock)

  • Where I can get package com.sun.awt.svg.*

    Hi:
    Anyone know Where I can get package com.sun.awt.svg.* ??
    My Email is :[email protected]
    thank you !

    I do not know,
    but if you need to deal with SVG take a look at Batik at xml.apache.org,
    http://xml.apache.org/batik/index.html

  • Question to all: Where do you purchase your images???

    Guys/Gals,
    Where do you purchase your images when needed? Both photos and vector Illustrations.
    I buy from istockphoto.com and bigstockphotos.com, but is there anything better according to your experience?
    I am currently buying a lot of illustrations (vector) - cartoonlike, at about $15 each... which do you buy from and which is the best?Considering the selection and prices.
    I always thought that free image sites didn't have a good selection, am I wrong?
    The question is brough up, everybody that reads this should answer and give their point of view, I am curious to see (and I am sure you are too).
    Jack Newton

    iStock is your best choice for selection and price, but not always quality or even accuracy. iStock is stocked by photographers and artists trying to make extra money. Their offerings are always more diverse than what you'd find on a pro stock photo site. Photographers left to produce imagery on their own will pursue their interests and what they're good at, and that's why you'll find a lot of great stuff on iStock you won't find anywhere else. Sites like photos.com don't compare with this, but may have better visual quality. But, again, the number of "concepts" are limited. If you move above sites like iStock and photos.com then be prepared to dish out big money.
    iStock can be a godsend, but be careful. I often find many photographers will upsize their images at the cost of a loss of quality. I also find photographers who try to make their images better by touching them up with Photoshop, but many of them should just stick with staying behind the camera. I see images where areas were obviously cloned sloppily. Just make sure when selecting an image to zoom in and look at the quality and to check for the sloppy fixes.
    And be very careful when searching for something which you are not knowledgeable on. One time I was searching for Japanese imagery and found a photo labeled "Geisha". This "geisha" was a western girl in the proper make-up and hair... but she was wearing a Chinese dress! You do NOT want to embarrass your clients with something like that.
    Bottom line IMO, iStock is the way to go.

  • Where shoudl I save my images? (Was: images)

    where should i save my images on my computer/ which directory so its an easy transition? should i just be naming them like image.jpg?

    >where should i save my images on my computer
    >/ which directory so its an easy transition?
    Transition from what? Images can be stored anywhere within your defined site. It's up to you to decide how to organize. If the site is small, it might make sense to have a single "images" directory off the root. If it's bigger, you can make an image directory for each page, or organize by topic/category
    >should i just be naming them like image.jpg?
    They should have meaningful names so that you can easily recognize them.

Maybe you are looking for

  • Report does not refresh when link to page

    I have a report on page 1 with a column link to a report on page 2. The link sets items on page 2. If I use the 'Page in this Application' from the column link, the items on page 2 are set and the report is automatically refreshed. If I use the 'URL'

  • Placing More Than One Photo On A Page

    Can you add in the scrapbook format more than one photo per page? I have a friend who wants me to create a DVD for him with over 500 photos, and the only way I can cheat it is by placing two photos together in Photoshop, then putting the large JPG in

  • IPod touch "slide to unlock" not responding, same with "slide to power off."

         I'm trying to fix my friend's iPod 5. As of last night she said that her iPod will not slide to unlock, as if the touchscreen is unresponsive. However, assistive touch is turned on and that functions fine. The device also cannot be powered down,

  • Calling stored procedure and returning multiple resultsets

    Hello, Is it possible to create a procedure that return multiple result sets? e.g. procedure GetDataFromTables() is begin select * from table_one; select * from table_two; end GetDataFromTables; And I want to call this procedure that returns multiple

  • I need to split up a folder of 80,000 emails in order to run rules

    I just switched to SpamSieve, and now I want to re-examine all the spam that I have. (I know, it's insane. Don't ask.) But if I try to do anything to all the email at once, it just stalls or crashes outright. So I found that the laborious process of