ImageIcons won't load from a jar

ok i have an application that uses imageicons.
i load the images like this:
setIcon(new ImageIcon(new URL("file:" + imageName + ".gif")));it works absolutely fine when i run it though eclipse, but when i package it all into a jar, the images won't load. it doesnt throw exceptions or anything, the images just don't show up.
everything is clanking around loose in my jar, there are no packages or directories. im using the latest jdk and the latest jre.
thanks.

thanks michael,
i found the solution by searching the forums.
turns out one of my images had a capitalized extension.
haha ;)
whoops never mind that didn't fix it...
aaaugh! this is annoying
Message was edited by:
lost_in_java

Similar Messages

  • My imac won't load from the white screen with the logo on? What shall I do?

    My imac won't load from the white screen with the apple logo and buffering sign? What shall I do..

    Try any of the steps suggested in this article that you haven't already tried:
    http://support.apple.com/kb/TS2570?viewlocale=en_US&locale=en_US

  • How to know which class is being loaded from which jar file & path location

    Hi,
    I have some Java code using several jar files.
    I want to remove those jar files which are not being used by the code.
    So , I want the JVM to output which class is being loaded from which jar .
    Using "java -verbose" option doesnt solve the problem because the required info is printed only for the classes/jars native to the J2SE package .
    Can anyone provide a solution which does not require me to modify the code?
    Thanks,
    Danish

    Classpath Helper

  • App Store won't load from dock

    Hi,
    I am 10.6.8 with all updates current and wish to download Lion.  The Icon for App Store won't load the app store and I've gone to iTunes trying to find the download site, no luck.
    I'm in the U.S. Virgin Islands and was searching to see if I'm red-lined due to location?
    Anyone have comments?
    Thanks

    I, too, have all updates and want to download Lion.
    Same as above with the App Store.
    Tried the iTunes route and still no luck.
    Looked at various forums, removed a few items from Library based on Apple Discussion recommendations.
    Still no luck.
    Working on iMac Intel Core 2 Duo
    Maybe it isn't a good time to upgrade, and I should wait until the next version.  The bug reports should be resolved sometime soon.
    This experience is moving me away from upgrading and it is annoying me because this has been a waste of no small amout of my time.

  • PE8 edit won't load from start screen in XP Pro

    I have just installed PE8 in place of Pinnacle Studio Plus 10.8 which I've been using for a few years with few problems. It seems to install OK with no error messages but It won't load "new project" from the start screen although it will load "organiser". I also can't get into "new project" from the organiser. My computer is running XP Pro and has a single core Intel Pentium 4 processor running at 2.66GHz with 2Gig of RAM. Should I be able to run PE8 on my system?

    You should be -- assuming you have at least 30 gigabytes of free, defragmented space on your C drive and all of your operating system and Quicktime updates.
    A Pentium, though, is way at the lower end of the required power to run this program. Unlike previous versions of the program, version 8 needs a huge amount of power to run. I can barely run it on my Pentium 4, and then only with basic miniDV editing, although it runs much better on my dual-core 2.6 ghz machine.
    To see how much power it needs to start up and run, open the Task Manager (right-click on your Windows Task Bar) and watch how long it takes for your processor to settle down when you launch the program. On my Pentium, it can take over 5 minutes to open a project and stabilize!
    There's more information in the FAQs to the right of this forum.
    http://forums.adobe.com/thread/533334?tstart=0
    And here's some ideas for shutting down some very intrusive background processes.
    http://forums.adobe.com/thread/503270?tstart=0

  • Image won't load from XML

    I am making a gallery using xml and as3. I've run into a
    problem very early and I'm not too good with Actionscript yet. So
    I've come here for some help.
    What I want right now, is to have an image be loaded from a
    xml file, which is working for me. And then have a white movieclip
    come in a resize behind the image to be a frame for the image. I
    haven't gotten to this part yet. My problem starts when I try to
    load the image with a blank movieclip to position it. The image
    loads, but the eventListener won't run the imageLoaded function. If
    I remove the function and just have
    holder_mc.addchild(imageLoader); Then it works, but I need the
    image to load and then resize the movieclip frame, and then display
    both right? How can I accomplish this?

    I was trying to solve this myself just last night and after
    seeing your post today I figured maybe I can help you out (as long
    as I'm addressing the problem you have).
    apparently the addEventListener needs a kick start from
    something else. If you look up the Loader class in the Flash help
    files it provides an example near the bottom that holds the key.
    I'm providing a shorthanded solution that I derived from it.
    Rather than:
    imageLoader.addEventListener(Event.COMPLETE,
    completeHandler);
    There is another piece in the in the middle of the process:
    "contentLoaderInfo"
    imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    completeHandler);
    Hope that helps

  • Flash won't load from creative suite..

    I downloaded a trial of Flash from the Adobe site 5 months
    ago. I recently purchased Creative Suite 3 w/ Flash included.
    Every program from my newly purchased CS3 disks load up and
    activate except for Flash. When I tried to reinstall from the
    disk it tells me that Flash is already installed, but when I look
    in the application folder it's no where to be found. I trashed the
    old expired trial version and tried to reload - still no success??
    Any suggestions...?

    mikejjr wrote:
    > Ever since I loaded the new Internet Explorer, 7.0, my
    FLASH won't load. When
    > I go to a site requiring FLASH, it tells me that the
    site requires FLASH, and I
    > need to downloaded it from Macromedia... I have download
    it twice, and still
    > NO luck.
    >
    > Any suggestions? Can anyone help?
    adobe.com/support/flash
    look for links for player installation troubleshooting.
    Also make sure that anti spy ware / ad ware and other that
    type
    of tools are not set to block flash content.
    Some of these tools do that by default
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Firefox won't load from dock when another web site is loaded

    For example: Hotmail or any other website is the current site loaded.
    If I click the Firefox icon in the dock, FF doesn't load. I have to close the current site, then FF will load from the dock.

    For example: Hotmail or any other website is the current site loaded.
    If I click the Firefox icon in the dock, FF doesn't load. I have to close the current site, then FF will load from the dock.

  • Java applet won't load from Jar file

    Hi all,
    I have a problem which I didn't used to have. I have written an applet which used certain classes stored in directories. It used to work just fine. I recently updated the main class from which the applet starts and since then I get error messages:
    Java Plug-in 1.6.0_26
    Using JRE version 1.6.0_26-b03-384-10M3425 Java HotSpot(TM) 64-Bit Server VM
    User home directory = /Users/benoize
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class WiaRekenToolHC.class not found.
    java.lang.ClassNotFoundException: WiaRekenToolHC.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:252)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:250)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:180)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:161)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:687)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3046)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1498)
         at java.lang.Thread.run(Thread.java:680)
    Exception: java.lang.ClassNotFoundException: WiaRekenToolHC.class
    As you can see it says that it can't find the class WiaRekenToolHC, but it's there in the jar files.
    Here is the link where you can see it:
    www.creativemathsolutions.nl/demo/HC/demo.html
    The jar files are in the directory HC and Generic.
    If you need more info then let me know!
    Regards, Benoit

    <applet
      codebase="http://www.creativemathsolutions.nl/demo/HC"
      code="WiaRekenToolHC.class"
      ARCHIVE="HC/wia_hc_archive_v0_3.jar, Generic/wia_archive_v0_3.jar"
      width=900 height=600>The code-base combined with archive href for the first Jar mean the JRE will look for it at:
    http://www.creativemathsolutions.nl/demo/HC/HC/wia_hc_archive_v0_3.jar
    It is not there. The other Jar is also missing from the stated location.

  • Major issues: won't load from blue screen backdrop once blue bar fills up

    i am hoping someone can help! my computer won't start up once it gets to the blue screen background with the mac os x and apple logo in a silver box. the blue bar fills up all the way and then just stalls. i can't load the utility disk becuase i have a cd in the disk drive. yikes. i have not backed up in a few months.
    The problem started occuring after i was experiencing issues with firefox crashing and subsequently finder locking up. after restarting one time this problem occurred. i completed the latest updates yesterday morning.
    Message was edited by: metropink
    Message was edited by: metropink

    Hi! Hold the mouse button down at startup to eject the disc from the dvd drive. Then startup from the install disc and repair the drive as per THIS doc. Tom

  • Classes not loaded from cached JAR ???

    I am running an applet package in jar files using the 1.4.1 plug-in.
    The plug-in is set to cache the JAR file(s) downloaded from the web site, and output in the plug-in console indicates that these JARs are downloaded an cached successfully. I noticed that there is a lot of network traffic as the user is interacting with the applet. After I turned plug-in tracing on, I noticed that the plug-in is accessing the server (where the jar files are downloaded from) every time it needs to load a class or resource!
    The java console contains trace outputs of the form:
    Connecting http:[myserver]/someclass.class with no proxy
    Connecting http:[myserver]/someclass.class with cookie "JSESSIONID=..."
    The applet sometimes freezes until a given class can be accessed over the network!
    Does anyone have any idea why the applet keeps going back to the server for classes and resources through they are contained in the downloaded and cached JAR file?

    I do have the archive tag, but not the cache_archived. In fact the html page contains the following:
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = "100%" HEIGHT = "100%" ID = "myApplet"
    codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
    <PARAM NAME = "CODE" VALUE = "appletclass.class" >
    <PARAM NAME = "ARCHIVE" VALUE = "myjar.jar"
    <PARAM NAME = "MAYSCRIPT" VALUE = "true" >
    <PARAM NAME = "type" VALUE="application/x-java-applet;version=1.3.1">
    <PARAM NAME = "scriptable" VALUE="true">
    </OBJECT>
    As far as I can tell the jar file is downloaded only once. It's when the classes (in the jar) are accessed that the applet goes back to the servlet!

  • OS won't load from ide hd during boot

    I recently purchased an k8n neo platinum mobo and got it all hooked up and ready to go. I intended on using the hd from my old system which already had set up windows xp pro with service pack 2 installed. I was then going to install another copy of xp on another hd and use the old hd until I got the new one all set up and ready to go. I turned on the system and the boot sequence appeared to go fine until I arrived at the point when os should have started from my ide hd. I received the message "error loading os." I thought I would try another hd and try a fresh install of windows xp pro. This appeared to work just fine until the first reboot after copying files on the hd. At this point the system boot cycled normally until the same point as the first hd but I got the message "no os installed." I also tried to install windows 98se but the same thing happened. I checked with each configuration and the bios does indeed see my hds. I went into dos mode and was able to view the contents of the drives as well. I simply cannot get the os to load. I have carefully watched the hd led on the front of the case. It lights up when I first turn the computer on, runs during the startup picture, and never comes on again. It's as though the mobo loses the ability to control it after a bit.
    Here are the specks. the only things on the mobo are ultra ddr 400 256 ram, an Nvidia tnt2 pro video card with 32 mb ram, an hp cd rw, and an  maxtor 80 gb hard drive. (these are the specs from the fresh install).  I only work with one hd at a time. The other hd is also a maxtor 120 gb (with windows xp preloaded.
    PS. Yes I have successfully loaded os from hd from other computers on new systems MANY MANY times before. It does work. You just have to install all the new drivers once windows starts and sees new hardware (just as though you have just added new hardware). Try it, it does work.
    any help would be great

    At the risk of becoming repetitive - If you are doing a fresh install, it is often less error-prone to only have the drive you are installing onto connected whilst you install - connect the other(s) afterwards.
    Of course your old drive wouldn't boot into the OS- did you really expect it to? It would have had a load of device drivers (amongst other stuff) from your old system on it.

  • Since 4.2 photos won't load from the CCK (SD)

    Using OS 3.2.2 my iPad loaded jpg photos from the DCIM folder on an SD card with no problem and very quickly. Now after installing 4.2, I get the error "No Photos to Upload" when there are hundreds on the SD media card. Is this strictly a problem with 4.2, or are there new criteria (because of 4.2) that I need to satisfy to load the photos? How do I fix it?

    OK, I did my test using my Nikon D300s DSLR. I was also going to use my wife's Nikon P7000, but the results were so satisfying, I skipped it.
    I took three shots with my D300s (I take raw + JPG/fine, and have my JPGs assigned to my SD card) and popped my SD card into the CCK SD adapter. They came right up!!! I was flabbergasted! So, I pulled the SD card and modified the files. One of them I reduced the resolution from 300 ppi to 72 ppi and saved it in its original filename. I also reduced the reso of another image to the same 72 ppi, but saved it with a letter suffix ("a") and saved it in the same folder.
    I popped the SD back into the adapter and the iPad saw the new, smaller, 72 ppi image of the same name (as the original), and did NOT see the new, smaller, image with the "a" suffix.
    The result: I think the key is not to rename the images if you change them (and I will experiment more with changes to the images to see what else it might reject).
    Thanks for the inputs guys.

  • What to do when my Macbook air won't load from startup. It hangs in the middle during the black apple screen at the beginning

    my Mac book air will not start up it hangs in the middle of the status bar when I turn it on and will not move.

    Take each of these steps that you haven't already tried. Stop when the problem is resolved.
    To restart an unresponsive computer, press and hold the power button for a few seconds until the power shuts off, then release, wait a few more seconds, and press it again briefly.
    Step 1
    The first step in dealing with a startup failure is to secure the data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since the last backup, you can skip this step.
    There are several ways to back up a Mac that is unable to start. You need an external hard drive to hold the backup data.
    a. Start up from the Recovery partition, or from a local Time Machine backup volume (option key at startup.) When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.” The article refers to starting up from a DVD, but the procedure in Recovery mode is the same. You don't need a DVD if you're running OS X 10.7 or later.
    b. If Step 1a fails because of disk errors, and no other Mac is available, then you may be able to salvage some of your files by copying them in the Finder. If you already have an external drive with OS X installed, start up from it. Otherwise, if you have Internet access, follow the instructions on this page to prepare the external drive and install OS X on it. You'll use the Recovery installer, rather than downloading it from the App Store.
    c. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, start the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    d. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    If the startup process stops at a blank gray screen with no Apple logo or spinning "daisy wheel," then the startup volume may be full. If you had previously seen warnings of low disk space, this is almost certainly the case. You might be able to start up in safe mode even though you can't start up normally. Otherwise, start up from an external drive, or else use the technique in Step 1b, 1c, or 1d to mount the internal drive and delete some files. According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation.
    Step 3
    Sometimes a startup failure can be resolved by resetting the NVRAM.
    Step 4
    If a desktop Mac hangs at a plain gray screen with a movable cursor, the keyboard may not be recognized. Press and hold the button on the side of an Apple wireless keyboard to make it discoverable. If need be, replace or recharge the batteries. If you're using a USB keyboard connected to a hub, connect it to a built-in port.
    Step 5
    If there's a built-in optical drive, a disc may be stuck in it. Follow these instructions to eject it.
    Step 6
    Press and hold the power button until the power shuts off. Disconnect all wired peripherals except those needed to start up, and remove all aftermarket expansion cards. Use a different keyboard and/or mouse, if those devices are wired. If you can start up now, one of the devices you disconnected, or a combination of them, is causing the problem. Finding out which one is a process of elimination.
    Step 7
    If you've started from an external storage device, make sure that the internal startup volume is selected in the Startup Disk pane of System Preferences.
    Start up in safe mode. Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to start and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know the login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    When you start up in safe mode, it's normal to see a dark gray progress bar on a light gray background. If the progress bar gets stuck for more than a few minutes, or if the system shuts down automatically while the progress bar is displayed, the startup volume is corrupt and the drive is probably malfunctioning. In that case, go to Step 11. If you ever have another problem with the drive, replace it immediately.
    If you can start and log in in safe mode, empty the Trash, and then open the Finder Info window on the startup volume ("Macintosh HD," unless you gave it a different name.) Check that you have at least 9 GB of available space, as shown in the window. If you don't, copy as many files as necessary to another volume (not another folder on the same volume) and delete the originals. Deletion isn't complete until you empty the Trash again. Do this until the available space is more than 9 GB. Then restart as usual (i.e., not in safe mode.)
    If the startup process hangs again, the problem is likely caused by a third-party system modification that you installed. Post for further instructions.
    Step 8
    Launch Disk Utility in Recovery mode (see Step 1.) Select the startup volume, then run Repair Disk. If any problems are found, repeat until clear. If Disk Utility reports that the volume can't be repaired, the drive has malfunctioned and should be replaced. You might choose to tolerate one such malfunction in the life of the drive. In that case, erase the volume and restore from a backup. If the same thing ever happens again, replace the drive immediately.
    This is one of the rare situations in which you should also run Repair Permissions, ignoring the false warnings it may produce. Look for the line "Permissions repair complete" at the end of the output. Then restart as usual.
    Step 9
    If the startup device is an aftermarket SSD, it may need a firmware update and/or a forced "garbage collection." Instructions for doing this with a Crucial-branded SSD were posted here. Some of those instructions may apply to other brands of SSD, but you should check with the vendor's tech support.  
    Step 10
    Reinstall the OS. If the Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.
    Step 11
    Do as in Step 9, but this time erase the startup volume in Disk Utility before installing. The system should automatically restart into the Setup Assistant. Follow the prompts to transfer the data from a Time Machine or other backup.
    Step 12
    This step applies only to models that have a logic-board ("PRAM") battery: all Mac Pro's and some others (not current models.) Both desktop and portable Macs used to have such a battery. The logic-board battery, if there is one, is separate from the main battery of a portable. A dead logic-board battery can cause a startup failure. Typically the failure will be preceded by loss of the settings for the startup disk and system clock. See the user manual for replacement instructions. You may have to take the machine to a service provider to have the battery replaced.
    Step 13
    If you get this far, you're probably dealing with a hardware fault. Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.

  • My Computer won't load from Globe and Folder

    Another issue has yet arose. When I started my computer this morning I got a Blue Globe and a gray background and then the globe will change to a Mac folder and then to a question mark. I tried taking the hard drive out and checking it and repairing it and it tells me its fine and doesn't need fixed, which I figured because the thing was just working. I tried Command combinations on the keyboard and it won't move it! it won't even boot from the disc! Please Help!

    The blue globe indicates the startup disk (volume) selection in PRAM somehow got set to Network.
    Possible solutions -
    • Reset PRAM. Restart or boot, immediately upon hearing the startup chimes press and hold down the Command-Option-P-R keys until you've heard two additional sets of startup chimes. Then let startup continue.
    • Force OSX. Restart or boot, immediately upon hearing the startup chimes press and hold down the X key, keep it held down until the machine starts to boot to OS X.
    • Try using Startup Manager. Restart or boot, immediately upon hearing the startup chimes press and hold down the Option key. This should bring up a blue screen with some icons in it. Select (use the arrow keys) the one representing your OS X on the hard drive, press Return.
    Startup Manager: How to select a startup volume
    Once you get it up and running, go to System Preferences > Startup Disk and select your internal hard drive as the boot volume.

Maybe you are looking for

  • Run report with prev day automatically

    I have a report with passed parameters. actually i only need this reprt to run daily at 4am (we have the scheduler) but process the previous day. I dont need a from to really, just the one day. how do i prefill this in a param for date which is a num

  • Can I enter Masterdata in BPS layout ?

    Hi, I want to create a BPS layout to enter the masterdata. Is it possible to maintanin masterdata through BPS layouts ? If so what are the configurations I need to change for the corresponding Info Object ? any suggestion is eagerly awaited D Bret

  • ICal events not showing in calendar

    I have an issue syncing iCal with my iPhone. I do believe it is an iCal problem though. Some events in iCal don't get synced to the iPhone and one event that does not show up in iCal shows up on the iPhone after sync. Does anybody have any suggestion

  • Sol10 Jumpstart on X86 insists on doing interactive install

    Hi, I've been using Jumpstart for long time installing both Solaris 8 and 10 for Sparc, however now I got a brand new X4200 so I'm trying to set up the same install environment for x86. Unfortunately I don't seem to be able to convince the installati

  • How to insert Logo in Easy Access screen?

    Hi,    My requirement is to insert my client Logo in the right side pane in the Easy Access screen. How I can do that?   Advanced thanks. Regards Vali.