I can't access my images!!!

Greetings
First I thought it might be an error in my code but upon executing the following code that calculates the images's height and width it returns -1 values? the test.jpg exists in the same folder as the ImageXY.java file and it's size is 100 * 100, I tried creating many other images, but the same problem persists. i'm using IDE3.6 with jdk1.4.2_05, although i coded it using dos prompt too.
import java.awt.*;
import javax.swing.*;
public class ImageXY
     public static void main(String[] args)
         Image image = Toolkit.getDefaultToolkit().getImage("test.jpg");
         ImageIcon icon = new ImageIcon(image);
         int height = icon.getIconHeight();
         int width = icon.getIconWidth();
         System.out.println("height"+height);
         System.out.println("width"+width);
[/code]
It's a really strange problem, I know there's something wrong with my java , can any body help?

thank you ChuckBing for your fast reply. i'll try it soon
I was trying to compile several java applications and it appeared that the problem is with NetBeans, compiling any file with NetBeans returns no errors, but executing don't display the image.
while compiling and executing in the dos window returns fine results!?
moreover, it doesn't matter if the images exist in the same folder in a different folder like in packages, all the tests that I did proved that the problem is with IDE. Does it have a different method to deal with images?
I'm starting to hate this IDE,

Similar Messages

  • I previously uploaded images onto my desktop to work on in Lightroom 5.2. I worked on a few of the images days ago and just now getting back to them. My problem is I can only access the images I previously worked on and all the rest it says images not ava

    I previously uploaded images onto my desktop to work on in Lightroom 5.2. I worked on a few of the images days ago and just now getting back to them. My problem is I can only access the images I previously worked on and all the rest it says images not available but all the images are still right on my desktop.

    ... and all the rest it says images not available
    Normally this happens because you moved, renamed or deleted these photos (or the folders that contain them) outside of Lightroom. This is how to fix the problem: Adobe Lightroom - Find moved or missing files and folders

  • My "Library" module suddenly disapeared and I can not access my images. How do I find my folders if there is no "library" button?

    My "Library" module suddenly disapeared and I can not access my images. How do I find my folders if there is no "library" button?

    You've merely inadvertently hidden it.
    Hiding/unhiding panels and modules is a little known feature of Lightroom which seems to put the fear of God into unsuspecting newbies who are not aware of the feature.
    Right-click (CTRL Click on Mac) on the Module names and restore the check mark to Library.

  • Can I access probe image display property node?

    Hello
    Working with labview 2010.
    I would like to use a user defined palette in the probe image display.
    I know how to do it for standard image display, but not for the probe viewer. Is it possible to access the property node of that display?
    Working with labview 2013
    Can i use a custom probe to apply a user defined LUT?
    Thanks,

    It sounds like you want to enable Snapshot mode on the image display controls. Note that you will then need to wire the image to the display reference each time that you want the display to be updated.

  • IPhoto 9.3.2 can't access raw image files anymore

    Since upgrading to Mountain Lion, I can no longer find raw image files of my pictures in iPhoto.  Is there a way to find them?

    Please explain exactly how you trying to find RAW photos. What version of iPhoto do you have?
    You can export photos a RAW (use kind = original)
    LN

  • I downloaded the latest version of PSE 9, but can't access RAW images. My Olympus E-M5 is supported

    I cannot open RAW photos in Photoshop Elements 9.03. I updated to latest version of Camera Raw that indicates my camera is supported, but no luck.

    Olympus E-M5 is supported in Camera raw 6.7 and its for PSE 10.
    For PSe 9 camera raw 6.5 is supported, but Olympus E-M5 is not supported in camera raw 6.5
    Refer the below link for more details:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5264
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5370
    http://forums.adobe.com/thread/311515
    -Harshit yadav

  • Can I access my photos/images through the Adobe website

    I just installed Photoshop Elements and the Organizer on my PC.  Can I access the images i created through the Adobe website?  My PC is at the shop and I need to retrive an image for work. 

    Did you sync the photo to your photoshop.com account? If so, you can go to photshop.com, log in, and get to the photo that way.

  • I sometimes can't see the images posted on the forum

    Sometimes the images aren't displayed even though I have the right option set in my forum profile. Most of the images posted on the forum work, but some seem to be blocked.
    For example, the images from https://bbs.archlinux.org/viewtopic.php … 9#p1150769 used to work, now they're gone http://i.imgur.com/APAmVFH.png
    I can't access http://xylosper.net/ , it seems down, but I have the same problem with https://bbs.archlinux.org/viewtopic.php … 4#p1371584 - I only get an image with the filename http://i.imgur.com/ctLrXcn.png instead of the images / thumbnails. It's not text, I can't highlight it with my mouse, but I can see the full url if I click 'Quote'.
    Can you see them?
    I've already mentioned this issue https://bbs.archlinux.org/viewtopic.php … 2#p1371792 but I have no idea where to look for solution.
    Also, I can't access the image posted in https://bbs.archlinux.org/viewtopic.php … 6#p1392686 - I get 'ERROR 403 - FORBIDDEN' in a HostGator.com template.

    karol wrote:Sometimes the images aren't displayed even though I have the right option set in my forum profile. Most of the images posted on the forum work, but some seem to be blocked.
    For example, the images from https://bbs.archlinux.org/viewtopic.php … 9#p1150769 used to work, now they're gone http://i.imgur.com/APAmVFH.png
    I can't access http://xylosper.net/ , it seems down,
    Same here.
    but I have the same problem with https://bbs.archlinux.org/viewtopic.php … 4#p1371584 - I only get an image with the filename http://i.imgur.com/ctLrXcn.png instead of the images / thumbnails. It's not text, I can't highlight it with my mouse, but I can see the full url if I click 'Quote'.
    Can you see them?
    I can see it by right clicking on the "image with the filename" and clicking "View image" in Firefox. As rebootl mentioned, it's probably due to a wrong embed code.
    Also, I can't access the image posted in https://bbs.archlinux.org/viewtopic.php … 6#p1392686 - I get 'ERROR 403 - FORBIDDEN' in a HostGator.com template.
    I can view it fine. Try it again. Or maybe your IP is blacklisted for some reason.
    So basically, there are different causes leading to the unavailablity of images.
    When in doubt, load Firefox's Web developer tools -> Network tab. Do a full reload on the page, and see the status codes for each image.

  • Upgraded to ios6. Now my location services options show up as a shadowy image, and I can't access them. The only icon on is "find my iPhone. Is this for real?

    I upgraded to ios6. Now the location options do not work (under privacy settings). I can only access "find my iphone". I am using a number of apps that use this function. Is this because of the default switch to apple maps?
    Is there no way to geolocate images anymore, using the camera on the iphone?

    You may have to try deleting all the music from your phone (by going to Settings>General>Usage>Music, swipping All Music and tapping Delete), then sync it all back on with iTunes in order to fix this.

  • How can I access images from IPhoto on my Mac to Photoshop CS6

    How can I access images from IPhoto library on my Mac to Photoshop CS6?  I enable jpg with format "Photoshop" and this is what comes up -  "Could not complete your request because Photoshop does not recognize this type of file" 

    MountainArtist wrote:
    …I enable jpg with format "Photoshop" and this is what comes up -  "Could not complete your request because Photoshop does not recognize this type of file" 
    Photoshop is not a format.  It's an application.
    What you are looking at are not true JPEGs, just iPhoto's "tease" representations of the hidden images it swallowed, as explained above.

  • Can't access image files

    Wondering if anyone can help me .....
    I am deploying an applet for an intranet, about 15 local users. The applet is a simple tree view which contains links to HTML files found in the same directory on the server as the applet. These links work fine and I am able to view these files from a client machine. My problem is with the image files that I am using for the icons in the TreeView. These .gif files are also within the same folder and work fine in AppletViewer. However the deployed versions throw a java.io.FilePermission Exception on both the server and client, and the images will not load.
    I have read a stack of different articles and threads on this area and I understand the need for signing applets when they require access to local files, but it was my understanding that applets can always access files in the directory from which they were loaded? This seems to be true given that the html files load without error, so I am at a loss for why the .gif files will not also? I don't want to go to the expense of buying a Certificate for signing and the process for creating your own seems to make the deployment process extremely painful for the final user.
    Any ideas? Thanks in advance
    Chris

    hi chris, i too had similar problem. you copy the java.policy file present in security subdirectory in jre directory to c:/windows in case if u r not logged in as an user or to the user profile directory if u r logged in as an user.if u see the java console in the plugin, u can find where to copy the file. rename the java.policy file to .java.policy file, and append the following code. this will work for all systems whether it is client or server. what u have to do is to append the .java.policy file the following code:
    grant {
    permission java.security.AllPermission;
    this has to be done for all the client systems also.
    if u r unable to access the gif files from the server, u simply put all the files in to the jar file that u sign and access the gif files using getClass().getResource(file path). the file path should be relative to the directory where u placed ur applet. this will work fine.
    bye,padmanabhan.

  • Browser can resolve, access, and display JPEG image, but ImageIcon can't.

    I've got this weird problem that only happens with images accessed through a customer's VPN:
    Microsloth Internet Imploder can resolve, access, and display a JPG image from a VPN URL, in the general form:
    http://intranet/part?FOOBAR.JPG which the browser apparently transmogrifies into
    http://mogrify.foo.com/images/scripts/cgi/detail.cgi?FOOBAR.JPG(as Jack Webb often said, the names have been changed to protect the innocent)
    Firefox can also resove, access, and display the image.
    But an ImageIcon, when fed either URL, quietly fails to get anything, No errors, no exceptions, but no image, either.
    The application, if it detects the failure of ImageIcon to come up with the image, somehow (not my code) defers to "Windoze Image and Fax Viewer," which locks up trying to resolve, access, and display the image.
    What could possibly be going on here?

    I'd love to have the luxury of saying, "You lost me at Windoze." Then again, to paraphrase a running gag from Airplane!, it looks like I picked the wrong week to quit hemlock.
    As my final message on my other thread on this topic indicates, the problem is that even though the URL ends in JPG, the server isn't really serving up a JPEG, but rather, an HTML page containing the JPEG.
    Knowing this, a solution (of sorts) presented itself: if the URL doesn't produce a displayable ImageIcon, try constructing a JEditorPane on the URL. The results aren't exactly pretty, and you do have to try the ImageIcon first, but it does work.
    JHHL

  • Why can't I  access Canon Image Gateway?

    Why can't I  access Canon Image Gateway?  It freezes on my screen after asking permission to allow storage on my computer (which it doesn't let me accept or deny)

    Mac or Win?

  • Time Machine could not complete the backup "Time Capsule". Unable to access disk image backup "/ Volumes / Time Capsule / iMac.sparsebundle" (error 112). How can I repair it?

    Time Machine could not complete the backup "Time Capsule". Unable to access disk image backup "/ Volumes / Time Capsule / iMac.sparsebundle" (error 112).
    How can I fix it?

    You might want to take a look at Pondini's excellent support document......Time Machine Troubleshooting
    http://pondini.org/TM/Troubleshooting.html
    See # C17

  • HT1199 Im traveling abroad and while I  have refused the IOS7 upgrade my iPad is now lock.  The display only reflecting iTunes and the USB cable images.  Now I can not access my photos and or my email.  Anyway I can reset without connecting to my computer

    Im traveling abroad and while I  have refused the IOS7 upgrade my iPad is now lock.  The display only reflecting iTunes and the USB cable images.  Now I can not access my photos and or my email.  Anyway I can reset without connecting to my computer?

    penny175 wrote:
    Anyway I can reset without connecting to my computer?
    No. Not without access to a computer running iTunes. You do want to use your own computer so that you can restore from your backup and sync your own content back from iTunes.

Maybe you are looking for

  • Webi 4.0 and BW Hierarchy Key display

    We have recently installed Business Objects 4.0.2 and have some questions about Webi 4.0 and reports based on SAP BW via BICS connection. 1. Is there a way to display the key of hierarchy in WEBI 4.0. Currently I only see the text for Cost centres. I

  • Data in Health first got doubled and then does not show anything at all

    Hello together, i'm experiencing issues with the health app. Until yesterday all the data, like distance, steps, weight, was perfectly right collected and shown within health. Yesterday i went for a run and installed Runtastic and 'Runtastic Me' afte

  • System error in program SAPLRRK0 and form LRECH_AGGR_BNR-02

    Hello experts, I am facing an issue when executing a query getting the following error "System error in program SAPLRRK0 and form LRECH_AGGR_BNR-02" In my query I am using replacement path formula variable, I tried without that formula variable also

  • Windows 7 Driver for B9180?

    When can we expect a Windows 7 driver and software for the B9180? (both 32 and 64 bit) Message Edited by MikeSp on 10-18-2009 06:57 PM

  • Missing a pixel on my screen

    hello, my problem is that my ipad mini, missing a pixel on screen, but has a very small grated on the side that does not even reach the screen, the warranty covers it? Translated with google translatoe I bought the ipad mini in "el corte inglés" , Ba