ImageIcon creation fails...can't find why.

hi,
I have my java source files in "src" directory and the output .class files in "bin" directory. Also I have an "images" fiolder in bin directory that has an image file "image.gif". I try to create an ImageIcon object for this image but it fails. How to track what the problem might be ? I used following call :-
ImageIcon icon = new ImageIcon("images/image.gif");
The value of icon.loadStatus= 4 which means ERRORED but what is the exact problem ?
Thanks

The constructor code that you show did not create the error you have. Please post the code that is causing the error.
Is that error a Java error, or from something else?

Similar Messages

  • This should go on a Waterfox forum, but can't find one. Waterfox updater is failing, can't find the latest version. The website says the latest version ( 9.0.1) is only available via the uploader. Catch-22

    This should go on a Waterfox forum, but can't find one. Waterfox updater is failing, can't find the latest version. The website says the latest version ( 9.0.1) is only available via the uploader. Catch-22

    http://waterfoxproj.sourceforge.net/news/26/15/Powered-by-Mozilla-Waterfox-9-0-1
    Waterfox has now been accepted as a project by Mozilla and has been placed on their website! '''Waterfox 9.0.1 has also been released, but at the moment is only available through the internal updating program available in Waterfox 9.0. This is to try and iron out any issues for the release of Waterfox.Next.'''
    It is not a official Mozilla product as it is still third-party. http://www.mozilla.org/projects/powered-by.html

  • Why do I get build failed "Can't find project or library" in TFS 2013

    Using TFS 2013, VB6, Windows Server 2008R2
    Problem: 
    While performing a TFS build of a VB6 application, I am receiving an error "Compile error in file c:\builds\clsCommon.cls
    Line 122:Can'tfind project or library"
    Setup:
    I have three projects: two VB6 dll's and one vb.net COM Callable Wrapper (CCW) dll. The first project (VB6)
    is called MyBase.dll. When I issue a make from the IDE, it complies and builds the dll. When I perform a build from TFS, again it builds without issue. 
    Next, is my .net assembly. Lets just say it complies and I'm able to compile other applications with it as
    a reference. In fact, let me state that I can compile my entire suite of applications and they work when I build them from the IDE. The problem is when I build from TFS 
    Finally I build the next VB6 project using TFS. This DLL (Called batch) internally references myBase.dll. Inside
    my batch project I have a class called clsCommon.cls. At line number 122 inside clsCommon I instantiate an object based on myBase.clsLOGs. Now when I run the TFS build, I get the error that Batch.clsCommon can not find myBase.clsLOGs:
    Private g_ErrorLogs AS MyBase.clsLOGs '<---- Line 122 of Batch.clsCommon 
    That is the nuts and bolts of it. 
    What I have tried:
    Compatibility mode is turned off. I tried to set it to Binary Compatibility, but I get an error that I can't
    set Compatibility Mode.
    All of out DLL's and EXE's are moved into
    a common executable folder D:\PEEPS\bin. When we set references in the IDE, we point to D:\PEEPS\bin. In TFS, the builds drop into C:\builds.
    IDE Builds drop into D:\PEEPS\bin
    Project references look in D:\PEEPS\bin
    TFS builds and drops into C:\builds
    Why are we doing builds in TFS if makes from the IDE are working?
    Also, to circumvent the issue in the past, we simply took the builds from the developers IDE and gave it to
    QA for testing. If everything tested ok, QA gave it to production support for implementation. The problem with that solution is our industry regulators do not want developers to give production EXE's and DLL's to QA or Production Support. They have to be able
    to perform their own builds and TFS is our code repository.
    Thank you in advance for you help.
    HaYen
    BJK1

    SOLVED
    Hi John,
    Thank you for the reply. 
    Solved this yesterday (had some other projects to work on had to shelve this for a while).
    There is a
    dependency structured path to out compiles:
    Project A is
    dependency for Project B
    Project A and B are required for project C
    etc
    There are about 10 VB6 projects overall.  What we noticed is that if you tried to open one of the last projects in the chain, sometimes we would get an error stating it could find one or more of the other projects.  The thing is all but one of
    these projects were referenced in the (run time) References section of the project and there was no Visual Basic Group so no Project References.  So how were the end projects' finding the initial projects?  I needed to solve this problem to fix my
    TFS issue.
    The answer was in the vbproj file. Internal to the project file a class file can be provided:
    class=someclassname; ..\projectname\classname.cls
    Once I removed the lowest level project as a run time reference and added it as a
    reference in the project file, my builds worked from the top down.
    BJK1

  • RAID failed - Can't find status in disk utility

    I have an Xserve G5 with 3 hitachi 80GB SATA hard drives with a RAID 5 (I think) running 10.4.6. A couple of days ago, the server was running really slow and the afp was taking up alot of cpu time, so we rebooted the server as we haven't had a problem with afp before. However, the server would no longer boot up and the RAID alarm started going off. Now when booting the server I get the apple screen and after a couple of minutes, the server's fan would start going faster and faster until they would be going full blast. So I tried to check the status using disk utility of the RAID, but I can't see any status. I admit that I have only been working with the xserve for almost a year and I don't know alot, but all I see on the left of the disk utility is xserve megaraid and below that Server HD. I checked both of these and clicked on all of the tabs (first aid, RAID, partition, restore, etc), but I can't find a place to check the status of the RAID. All I can find about RAID is how to create another one. I finally found that I can run megaraid -showstatus and it said that the first hard drive failed and the other 2 were online. I also took out the hard drive and ran hitachi's test drive software using the advanced test and it said everything was fine. So I'm not sure if there is just something wrong with the RAID or what.
    I did order another hard drive that is exactly the same and it should be here in a couple of days. I also know that this is the hard drive that was accidentally ejected while the server was running before, but when the hard drive was put back in, the RAID rebuilt it and has been running fine till now. I am pretty sure that I shut the server off before when the hard drive got ejected and it would boot, so I'm just not sure exactly what this all means as the Hitachi software tells me there is nothing wrong with the drive.
    Help please

    I checked the status of the server and hard drive by booting off of the 10.4 installation disk, select utilities and disk utility.
    I know very little about terminal, however I'm pretty good at dos so I can figure some things out if given some commands.
    Anyway, I ran some commands and here are the results:
    megaraid -showstatus
    MEGARAID CLI version 1.0.12
    No cmd argument
    Um, so I think I remebered the command incorrectly and I did -showdevices instead. Sorry.
    megaraid -showdevices
    Physical devices Available = 3
    Drive ID Identification Size(MB) Status
    0 Hitachi HDS722580VLSA80 78529 Failed
    1 Hitachi HDS722580VLSA80 78529 Online
    2 Hitachi HDS722580VLSA80 78529 Online
    diskutil list
    /dev/disk0
    #: type name size identifier
    0: Applepartitionscheme *153.3GB disk0
    1: Applepartitionmap 31.5KB disk0s1
    2: AppleHFSServer HD 153.2GB disk0s3
    /dev/disk1
    #: type name size identifier
    0: Applepartitionscheme *2.6GB disk1
    1: Applepartitionmap 31.5KB disk1s1
    2: AppleDriveATAPI 4.0KB disk1s2
    /dev/disk2
    #: type name size identifier
    0: untitled *467.0KB disk2
    /dev/disk3
    #: type name size identifier
    0: untitled *95.0KB disk3
    /dev/disk4
    #: type name size identifier
    0: untitled *95.0KB disk4
    /dev/disk5
    #: type name size identifier
    0: untitled *95.0KB disk5
    /dev/disk6
    #: type name size identifier
    0: untitled *219.0KB disk6
    megaraid -showconfig
    Logical Drive RAID Level Stripe Size(KB) Size(MB) Status
    0 5 64 156958 Degraded
    megaraid -showapater
    FW Version = A130
    Bios Version = G117
    Product Name = MegaRAID SATA 150-4D
    Cache Size = 64MB
    diskutil checkRAID
    No RAID sets found
    Thank you for your help. I really appreciate it and so do the teachers and the students!

  • XBMC fails, can't find libmodplug.so

    Hi All,
    I have been running xbmc on arch for some time with kdemod just fine.
    I have decided to upgrade that box, strip off kdemod and install gnome3, which I did just fine.
    However, when I run xbmc (which was compiled under kdemod) it now complains that it can't find libmodplug.so
    After a quick search. I find it in /usr/lib .... so not sure why it can't find it, unless it doesn't now recognize that file, of file format??
    Can anyone help here, has libmodplug changed recently? Do I have to re-build xbmc in the new environment?
    Cheers,
    Bernie

    I have found that the mirror I was syncing to, is really out of date, I will try again after updating from a good mirror ..
    Is there a way to tell the Arch maintainers about bad mirrors? That's something you can do without ..

  • Download failed, can't find under purchased

    I bought an app and was downloading it, when my iTunes froze up. I closed iTunes, opened it back up, and now I can't find the app under applications, downloads, or purchased.

    Well, it sounds like your CC never got charged. You can confirm by looking at your purchase history....I assume you know how in itunes?
    If it shows up in the purchase history, but won't download again for free, report it to iTS support.
    http://support.apple.com/kb/HT1933

  • Acer aspire zs600 recovery error; "restore failed - can not find image path"

    Recently the hard drive in my Acer Aspire ZS600 failed. I purchased a new hard drive and the recovery media disks from Acer's website. However after installing the new drive and running the recovery disks, the third and final disk ejects with the error message "Restore Failed - Can not fine image path: M:\RecoveryImage\install.wim" I have searched these forums as well as the farthest reaches my googling skills will allow and I have not found a solution that works. I am fairly certain it is not an issue with my hard drive, optical disk drive or the recovery media itself. Any insight on this issue will be greatly appreciated.

    i presume that your new HDD was completly clean, you didn't format or create partition prior to use the Acer erecovery medias. in a past thread there was a similar issue and Acer-Justin found the solution, i sent him a PM.

  • Sysprep and Capture Task Sequence Fails "Can not find script file C:\LTIBootstrap.vbs"

    I've just installed Windows 8 on a Lenovo ThinkPad T440s using Lenovo's recovery discs. I did not join it to a domain. I logged in as Administrator, navigated to our deployment share, and ran Scripts\LiteTouch.wsf. I selected the new Sysprep and Capture
    Task Sequence that I just made, told it to upload to DeploymentShare$\Captures, then started the Task Sequence.
    It seemed to run fine until after the first reboot. Windows 8 configured the PC for a while, then displayed an error that it had been shut down unexpectedly. I wasn't sure if this was normal, so I just clicked OK. Then I got an error that said "Can
    not find script file C:\LTIBootstrap.vbs". After clicking OK on that, I am brought to the desktop.
    The image cannot be found in DeploymentShare$\Captures. Under the Monitoring section of the DeploymentWorkbench, I can see that MDT thinks the Task Sequence is still running on the machine (though it is not), with progress stuck on step 16 of 23: Execute
    Sysprep. There are 0 errors and 0 warnings listed.
    BDD.log is too long to post all of it, but here's the last few lines in case that's helpful.
    <![LOG[BCD> The operation completed successfully.]LOG]!><time="11:20:35.000+000" date="12-26-2014" component="LTIApply" context="" type="1" thread="" file="LTIApply">
    <![LOG[BCDEdit returned ErrorLevel = 0]LOG]!><time="11:20:35.000+000" date="12-26-2014" component="LTIApply" context="" type="1" thread="" file="LTIApply">
    <![LOG[Run Command: C:\windows\SYSTEM32\bcdedit.exe /default {d22e7e91-9ee7-46eb-89d7-c5859e4302f0}]LOG]!><time="11:20:35.000+000" date="12-26-2014" component="LTIApply" context="" type="1" thread="" file="LTIApply">
    <![LOG[BCD> The operation completed successfully.]LOG]!><time="11:20:35.000+000" date="12-26-2014" component="LTIApply" context="" type="1" thread="" file="LTIApply">
    <![LOG[BCDEdit returned ErrorLevel = 0]LOG]!><time="11:20:36.000+000" date="12-26-2014" component="LTIApply" context="" type="1" thread="" file="LTIApply">
    <![LOG[Property BootPE is now = True]LOG]!><time="11:20:36.000+000" date="12-26-2014" component="LTIApply" context="" type="1" thread="" file="LTIApply">
    <![LOG[LTI Windows PE applied successfully]LOG]!><time="11:20:36.000+000" date="12-26-2014" component="LTIApply" context="" type="1" thread="" file="LTIApply">
    <![LOG[Event 41019 sent: LTI Windows PE applied successfully]LOG]!><time="11:20:36.000+000" date="12-26-2014" component="LTIApply" context="" type="1" thread="" file="LTIApply">
    <![LOG[LTIApply processing completed successfully.]LOG]!><time="11:20:36.000+000" date="12-26-2014" component="LTIApply" context="" type="1" thread="" file="LTIApply">
    <![LOG[Event 41001 sent: LTIApply processing completed successfully.]LOG]!><time="11:20:36.000+000" date="12-26-2014" component="LTIApply" context="" type="1" thread="" file="LTIApply">
    I would greatly appreciate any assistance determining what went wrong and how to correct it. Thank you.

    You might get teh c:\LTIBootStrap.vbs error if you are running SysPrep with a unattend.xml template that contains the c:\bootstrap.vbs template, yet you are *NOT* deploying the image with MDT Litetouch, instead just applying the image to the final machine.
    Crack open your install.wim file and search for the unattend.xml file in the normal places to see what it is.
    I am concerned about the "shut down unexpectedly" error. There should be no shutdown state information left  from a captured *.wim file.
    If you still need assistance, please feel free to copy the bdd.log file to a public site like OneDrive, and share the link.
    Keith Garner - Principal Consultant [owner] -
    http://DeploymentLive.com

  • Getting exception errors. can't find why

    first bit of code im getting an arrayindexoutofbounds exception, i've checked it over and over and the arrays and counters don't go out of bounds... run it by you guys maybe might catch something i missed:
    int passNumber = 1;
                        while (passNumber < numRecordsResult)
                             int a = 0;
                             while (a < numRecordsResult)
                                  if (bestLift[a] < bestLift[a + 1])
                                       int temp = bestLift[a];
                                       bestLift[a] = bestLift[a + 1];
                                       bestLift[a + 1] = temp;
                                       String nameTemp = name[a];
                                       name[a] = name[a + 1];
                                       name[a + 1] = nameTemp;
                                  a++;
                             passNumber++;
                        }if that looks good, the arrays are created in this bit of code which is alse getting a numberformatexception, i think it's trying to parse a white space into an integer but i've checked over and over and looks good, run that by too to see if you can catch somethin.
    int numRecordsResult = (int)(raf.length() / RECORD_SIZE);
                        String name[] = new String[numRecordsResult];
                        int bestLift[] = new int[numRecordsResult];
                        int arraySorted[] = new int[numRecordsResult];
                        int madeOneRank = 0;
                        int madeTwoRank = 0;
                        int madeThreeRank = 0;
                        String madeOneReader = " ";
                        String madeTwoReader = " ";
                        String madeThreeReader = " ";
                        int indexer = 0;
                        int x = 1;
                        while (x < numRecordsResult)
                             raf.seek((x - 1) * RECORD_SIZE);
                             name[x] = Utils.readString(raf, NAME_SIZE);
                             // arrayalize if time permits
                             raf.seek((RECORD_SIZE * (x-1)) + ((NAME_SIZE + WEIGHT_ONE) * 2));
                             madeOneReader = Utils.readString(raf, MADE_ONE);
                             indexer = madeOneReader.indexOf(" ") - 1;
                             madeOneRank = Integer.parseInt(madeOneReader.substring(0, indexer));
                             raf.seek((RECORD_SIZE * (x-1)) + ((NAME_SIZE + WEIGHT_ONE + MADE_ONE +
                                  WEIGHT_TWO) * 2));
                             madeTwoReader = Utils.readString(raf, MADE_TWO);
                             indexer = madeOneReader.indexOf(" ");
                             madeTwoRank = Integer.parseInt(madeTwoReader.substring(0, indexer));
                             raf.seek((RECORD_SIZE * (x-1)) + ((NAME_SIZE + WEIGHT_ONE + MADE_ONE +
                                  WEIGHT_TWO + MADE_TWO + WEIGHT_THREE) * 2));
                             madeThreeReader = Utils.readString(raf, MADE_THREE);
                             indexer = madeThreeReader.indexOf(" ");
                             madeThreeRank = Integer.parseInt(madeThreeReader.substring(0, indexer));
                             if (madeOneRank > (madeTwoRank & madeThreeRank))
                                  bestLift[x] = madeOneRank;
                             else if (madeTwoRank > madeThreeRank)
                                  bestLift[x] = madeTwoRank;
                             else
                                  bestLift[x] = madeThreeRank;
                             x++;
                             //numRecordsResult--;
                        }

    run by = read thru
    see if you can see where my logic is failing...If you get NumberFormatExceptions then one or more of your Integer.parseInt statements are failing. The stacktrace of the exception will tell you which statement failed (it wil give the line where the exception was thrown), and I even think it will tell you what the string was you tried to parse into an int.
    You can also add a couple of System.out.println to write the values of the strings you are using to the console. That will help you debug the problem.

  • Where in apple community can I find why my app icon is missing from the dock?

    I am using Mavericks 10.9.4 on a Mac Book Pro

    Check Applications.
    However, if you open it from the Apple Menu, then click and hold on the icon in the Dock, choose Keep in Dock from the Options submenu.
    Also note the “Show in Finder” option which can show you where something is. Not to useful in this case, but perhaps another time.

  • Minor problem. Settings icon has the Notification Flag (Red 1 circled) but I can't find why it won't turn off. It's annoying me.

    Anyone else have this?
    I've tried turning off/on and restoring. Neither worked.
    Suggestions?
    Rob

    Never had a badge on Settings icon before. Go to Settings/Notifications and look for all apps that have Badges enabled. Hopefully you can quickly narrow down the offending app.

  • Microsoft Office can't find your license for this application - multiple copies of Office 2013 x32 failing to start, Software Protection Service timing out

    We're experiencing a growing problem with our users in several different domains running in to Microsoft Office 2013 x32 'activation' issues.  We use KMS for licensing, which works properly, but some of the machines (~20-30 out of 1000+) sporadically
    throw the following error:
    'Microsoft Office can't find your license for this application.  Microsoft Office will now exit.'
    We know it's not an issue with the licenses per se, since they work on and off and we can force KMS activation correctly / talk to the KMS servers.
    It appears to be an issue with the Software Protection service not starting properly.  In Event Viewer, we see the following:
    'Software protection service failed to start due to the following error- the service did not respond in a timely fashion.
    Event 7000'
    This is occurring on a variety of machines in a variety of environments, all fully patched with the latest Office updates.  It's inconsistent, and the 'manually restart the Software Protection Service' solution is not viable as it's occurring on many
    different workstations.  Office repairs have also been unsuccessful.  
    Has anyone else come across this? Or have any idea why the Software Protection Service might be sporadically failing?  Maybe an Office update in the last 2-3 months?
    Thanks for any info.

    We're experiencing a growing problem with our users in several different domains running in to Microsoft Office 2013 x32 'activation' issues.  We use KMS for licensing, which works properly, but some of the machines (~20-30 out of 1000+) sporadically
    throw the following error:
    'Microsoft Office can't find your license for this application.  Microsoft Office will now exit.'
    We know it's not an issue with the licenses per se, since they work on and off and we can force KMS activation correctly / talk to the KMS servers.
    It appears to be an issue with the Software Protection service not starting properly.  In Event Viewer, we see the following:
    'Software protection service failed to start due to the following error- the service did not respond in a timely fashion.
    Event 7000'
    This is occurring on a variety of machines in a variety of environments, all fully patched with the latest Office updates.  It's inconsistent, and the 'manually restart the Software Protection Service' solution is not viable as it's occurring on many
    different workstations.  Office repairs have also been unsuccessful.  
    Has anyone else come across this? Or have any idea why the Software Protection Service might be sporadically failing?  Maybe an Office update in the last 2-3 months?
    Thanks for any info.

  • Why is it that Itunes can't find album art for "North" by Elvis Costello and others

    Why is it that from all the albums in my Library itunes can not find album art for:
    "North" by Elvis Costello
    "Viva la Vida" by Coldplay
    and "Old Yellow Moon" by Emmylou Harris and Rodney Crowel?

    Earl,
    For iTunes to find the art, it needs to match exactly on the Artist and Album Text.  Minor issues like spacing or punctuation can prevent the match, as can a misspelling like "Crowel" for Crowell."
    Look in the iTunes Store to get the exact text, fix the tags in the corresponding tracks, and then try again to "Get Album Artwork."
    If that still fails, just grab the correct art off the web, and paste it into the Artwork tab.

  • Why I can not find field:Level in Project Hierarchy in BAPI_BUS2054_NEW?

    Dear experts,
        Why I can not find the field of "Level in Project Hierarchy" in structure BAPI_BUS2054_NEW?
    I only define the data to upload wbs:
    PROJECT DEFINITION
    PROJECT DESCRIPTION
    PROJECT PROFILE
    WBS Element
    WBS description
    Can you tell me which fields must to upload?
    Looking forward to your reply.
    Many thanks.
    Merryzhang

    Anyone can help me ?I need the field "Level" in BAPI_BUS2054_NEW,But I can not find it.

  • Why does iTunes/iPhone 4S insist it can't find a song on my PC or my phone when it is on both? This is resulting in me being unable to use the ringtones I created from these songs, but I can still play the songs.

    OK, so I'm clearly a newb. I thought if I asked a question, it would post, and now I'm being told to post a comment, so I'm asking the same question again. Sorry I sound like an idiot. I'm new to this apple/mac stuff.
    Why does iTunes/iPhone 4S insist it can't find a song on my PC or my phone when it is on both? This is resulting in me being unable to use the ringtones I created from these songs, but I can still play the songs.

    If you have added the ringtone file correctly to iTunes, it will appear under iTunes 'Tones' library.
    If you don't find Tones library in iTunes, go to iTunes menu EDIT/PRFERENCES under GENERAL tab, check the Tones Box under Library source to display Tones library in iTunes.
    iTunes accepts only m4r file as ringtone and has to be less than 40secs.

Maybe you are looking for

  • "Please Wait" message

    Good afternoon, I have setup the javascript to display a clock icon with "...Working..." displayed while long processes are running when a button is pressed. What I need to do now is to define a link in a report column, initializing values from colum

  • Flash Player 11 Download Time Out???

    Mein System ist Windows XP 32-bit. Von gestern auf heute konnte ich weder online Filme ansehen noch Facebookspiele spielen. Ich habe herausgefunden das es daran liegt, dass meine Flash Player Version zu alt war. Also habe ich die alte deinstalliert u

  • Error in Xcelsius with QaaWS

    Hi everybody, I try to transport Xcelsius Dashboard with Query as a Web Service from Development to Productive server. Everything has worked just fine with BOXI 3.1 SP 2. We installed SP 3 and FXP 3.5 for BOXI 3.1. And after Dashboard with QaaWS was

  • Turning on Intel-VT for Windows 7 to install XP Mode virtualization

    Hi: I have the 13.3" MacBook Air 2010, 2.13GH CPU, 256GB RAM Disk, 4GB RAM. I installed BootCamp successfully to run a dual-boot system partitioned as: 160 GB for Win7 and 92GB for OSX. I install 64-bit Applications as much as possible, though some W

  • [Solved] Sudo Configuration (NOPASSWD)

    I am currently trying to configure sudo to not use a password for specific commands.  I am specifically doing this for netcfgGUI, however I will use more basic independent commands to demonstrate my issue. If I do the following sudo does not require