Please have a look at this, problem loading images from jar.

I made a post at the wrong place..
Pleae have a look at it:
http://forum.java.sun.com/thread.jsp?forum=422&thread=434524&tstart=0&trange=15

Answer (hopefully not totally useless) posted over there.

Similar Messages

  • Problem loading image from jar file referenced by jar file

    First, I searched this one and no, I didn't find an answer. Loading images from jar files has been pretty much done to death but my problem is different. Please read on.
    I have my application, a straight up executable running from Eclipse. It uses a jar file, call it JarA. JarA launches a GUI that is located in another jar file. Call it JarB. To recap:
    My application calls JarA -> JarA loads classes from JarB -> JarB looks for images to place in a GUI it wants to show on the screen
    When JarB goes to load an image the following happens:
    java.lang.NullPointerException
         at sun.misc.URLClassPath$3.run(URLClassPath.java:316)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
         at sun.misc.URLClassPath.findResource(URLClassPath.java:141)
         at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
         at java.lang.ClassLoader.getResource(ClassLoader.java:977)
         at org.cubrc.gmshell.gui.MainWin.preInit(MainWin.java:152)
         at org.cubrc.gmshell.gui.MainWin.<init>(MainWin.java:135)
    The code from JarB that loads the image looks like this:
              URL[] oSearch = {Main.class.getResource("images/")};
              URLClassLoader oLoader = new URLClassLoader(oSearch);
              imgIcon = new ImageIcon(oLoader.getResource("icon.gif"));
              imgMatchRunning = new ImageIcon(oLoader.getResource("gears.gif"));
              imgMatchStill = new ImageIcon(oLoader.getResource("gears-still.gif"));
              imgMagnify = new ImageIcon(oLoader.getResource("magnify.gif"));This looks right to me and JarB certainly has an images directory with those files. But I'm in hell right now because I don't know where to place the images to make this work or if you can even attempt to load images with a dependency chain like this.
    Any help very appreciated!

    Have you tried to move your image-files out of the jar file and place them in the sam folder as the jar-file? I think that would help.
    When you try to load the image-file you get the NullPointerException because the program tries to read a file it can't find. Remember that a jar file IS a file and not a directory.
    If you want to read somthing inside the jar-file you need to encode it first.
    Have you tried to read the jar-file with winRar. It makes it easy to add and remove files in your jar-file.

  • Problem loading image (from JAR)

    Hi
    I was wondering why this code works when running the app in my IDE, but not once exported in a JAR file:
    public static BufferedImage loadDefaultCover()
              try
                   return ImageIO.read(new File("./images/default.png"));
              }catch(IOException e)
                   logger.severe("Failed loading default img: "+e.getMessage());
              return null;
         }     NOTE 1: The cover is located (project root)/images/default.png
    NOTE 2: It works when I have a folder named images (with the image in it) next to the JAR.
    NOTE 3: I tried:
    return ImageIO.read(new File("images/default.png"));
    return ImageIO.read(new File("/images/default.png"));Any ideas? Thanks!
    Andrew
    Edited by: Andrew_ on Jan 4, 2009 12:45 PM

    You can't use File references to access resources in a jar file (technically, they are not presen in the file system but part of a zip file). Instead, you can load those resources via the classloader:
    return ImageIO.read(getClass().getClassLoader().getResourceAsStream("images/default.png"));

  • Material staging in WM - Jurgen please have a look at this

    Dear Jurgen,
    I'd kindly like to ask you to please have a look at this issue.
    Re: Requesting urgent reply
    Thanks in advance,
    Csaba
    (sorry for sending message this way...)

    I answered in the other thread.

  • Loading image from jars only once in oracle forms 10g

    Hi,
    I have an oracle forms 10g application which loads image from a jar. Every time i click on a button "A" that loads the image "image" on another button "B" in the same screen, a message is displayed in the java console "Loaded image: jar:https://+IP+/forms/java/+myjar+.jar!/image.gif". So after 10 clicks, i get the same message displayed 10 times. In the form, i've called:
    SET_CUSTOM_PROPERTY(p_object_name, 1, 'IMAGE_NAME_ON', '/'||p_image_name);My question is the following:
    - is there a way to load this image once and use it later without having to load it every time i clik on "A"? if yes, how?
    P.S.: if this thread shouldn't be posted in this forum, please redirect me to the right one.
    Thanks in advance

    Ah okay.
    I'm using the rolloverbutton.jar (RollOver Button PJC) [RolloverButton.java -> authors: Steve Button, Duncan Mills].
    Here is the part concerning the IMAGE_NAME_ON function:
    // make sure we are in rollover mode
    enableRollover();
    log("setProperty - IMAGE_NAME_ON value=" + value.toString());
    // load the requested image
    m_imageNameOn = (String) value;
    loadImage(ON,m_imageNameOn);
    // reset the currrently drawn image if needed
    setImage(ON,m_state);
    return true;where loadImage function is:
        URL imageURL = null;
        boolean loadSuccess = false;
        //JAR
        log("Searching JAR for " + imageName);
        imageURL = getClass().getResource(imageName);
        if (imageURL != null)
          log("URL: " + imageURL.toString());
          try
            m_images[which] = Toolkit.getDefaultToolkit().getImage(imageURL);
            loadSuccess = true;
            log("Image found: " + imageURL.toString());
          catch (Exception ilex)
            log("Error loading image from JAR: " + ilex.toString());
        else
          log("Unable to find " + imageName + " in JAR");
        //DOCBASE
        if (loadSuccess == false)
          log("Searching docbase for " + imageName);
          try
            if (imageName.toLowerCase().startsWith("http://")||imageName.toLowerCase().startsWith("https://"))
              imageURL = new URL(imageName);
            else
              imageURL = new URL(m_codeBase.getProtocol() + "://" + m_codeBase.getHost() + ":" + m_codeBase.getPort() + imageName);
            log("Constructed URL: " + imageURL.toString());
            try
              m_images[which] = createImage((java.awt.image.ImageProducer) imageURL.getContent());
              loadSuccess = true;
              log("Image found: " + imageURL.toString());
            catch (Exception ilex)
              log("Error reading image - " + ilex.toString());
          catch (java.net.MalformedURLException urlex)
            log("Error creating URL - " + urlex.toString());
        //CODEBASE
        if (loadSuccess == false)
          log("Searching codebase for " + imageName);
          try
            imageURL = new URL(m_codeBase, imageName);
            log("Constructed URL: " + imageURL.toString());
            try
              m_images[which] = createImage((java.awt.image.ImageProducer) imageURL.getContent());
              loadSuccess = true;
              log("Image found: " + imageURL.toString());
            catch (Exception ilex)
                    log("Error reading image - " + ilex.toString());
          catch (java.net.MalformedURLException urlex)
            log("Error creating URL - " + urlex.toString());
        if (loadSuccess == false)
          log("Error image " + imageName + " could not be located");In this case, what shall i modify?
    Thanks in advance

  • PJC - Loading Images from JAR Files

    I'm developing a PJC class that involves loading images. I would like to be able to find and use an image contained in a JAR file just like the built-in Forms items do; not the JAR file where my class is contained but any external ones defined in the server archive settings.
    I have seen the loadImage method in the demo RolloverButton class but this only loads images from the class's JAR and not any others.
    Is there a VButton method or an Oracle loader class for finding image resources from the defined JAR archives? If not, could someone supply some code for achieving this.
    Thank you.

    Hi,
    the jar file name the images are in shouldn't matter for the code as long as the package name is preserved. If you want to see it with your own eyes, do the following
    1. Back up demo90.jar
    2. Create a copy of it and call it demo90img.jar
    3. Open demo90.jar in winzip and remove all images
    4. Open demo90img.jar and remove all Java classes
    5. add ,/forms90demo/jars/demo90img.jar to the archive_jini tag of a demo you want to test this on
    6. Run the application and see the images despite the fact they are now in a separate jar file. Note in the Jinitiator console that the new jar files are downloaded and replace the existing, cached, jars
    7. Run an application that doesn't have demo90img.jar configured to see that the images are missing.
    Frank

  • TS1424 I cannot connect to the iTunes Store so I can purchase coins etc for my slots game. Can I please have assistance in fixing this problem?

    Hi, I cannot connect to iTunes so that I can purchase coins etc for my slots game. Can I please be assisted in rectifying this problem? Thanks :)

    Hi alèna,
    If you are having issues connecting to the iTunes Store, you may find the following article helpful:
    Apple Support: Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Regards,
    - Brenden

  • Problem loading images from a return value of a function

    hello, I write because I uin problem in loading images from a return value of a function.
    I created a database with a field "image" of type string, where I put the physical address of the image. I have written like this: {__DIR__ }foto.jpg
    Place the code, so you understand better
    function imageViewImage(): javafx.scene.image.Image {
    connetti();
    lass.forName(driverName);
    con = DriverManager.getConnection(url,user,"");
    stmt = con.createStatement();
    var richiesta:String = "SELECT image from viaggio WHERE id_viaggio=7";
    rs1 = stmt.executeQuery(richiesta);
    var result :String;
    rs1.next();
    risultato = rs1.getString("image");
    JOptionPane.showMessageDialog(null, result);
    var imagez = Image{
    url:"{result}";
    return imagez;
    The image is in the source code package
    First I connect to the database, run the query and I take the contents of the image.
    Can anyone help me?
    Is right to put in the database {__DIR__} foto.jpg or do I put only foto.jpg?

    Hello unkus_nob,
    I would rather suggest you to save only filename of that image like "foto.jpg" in database. And just concat it with the String variable containing "{__DIR__}".
    Actually the javafx compiler converts the {__DIR__} to the existing class directory path something like : "jar:file:/..../".
    var currentDir ="{__DIR__}";
    risultato = "{currentDir}{rs1.getString("immagine"})"; 
    var image = Image{
        url:risultato
    return image;--NARAYAN G.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Plz have a look at this problem

    hello
    I am getting an exception,
    Cant figure out why this is happening........any help will be appreciated
    thanks
    Exception in thread "main" java.lang.StackOverflowError
        at java.util.HashMap.get(HashMap.java:300)
        at javax.swing.UIDefaults.getResourceCache(UIDefaults.java:279)
        at javax.swing.UIDefaults.getFromResourceBundle(UIDefaults.java:271)
        at javax.swing.UIDefaults.get(UIDefaults.java:145)
        at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
        at javax.swing.UIDefaults.getUI(UIDefaults.java:734)
        at javax.swing.UIManager.getUI(UIManager.java:1012)
        at javax.swing.JLabel.updateUI(JLabel.java:256)
        at javax.swing.JLabel.<init>(JLabel.java:145)
        at javax.swing.JLabel.<init>(JLabel.java:216)
        at javax.swing.DefaultListCellRenderer.<init>(DefaultListCellRenderer.java:73)
        at javax.swing.DefaultListCellRenderer$UIResource.<init>(DefaultListCellRenderer.java:303)
        at javax.swing.plaf.basic.BasicLookAndFeel$2.createValue(BasicLookAndFeel.java:590)
        at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:214)
        at javax.swing.UIDefaults.get(UIDefaults.java:144)
        at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
        at javax.swing.UIManager.get(UIManager.java:952)
        at javax.swing.plaf.basic.BasicListUI.installDefaults(BasicListUI.java:769)
        at javax.swing.plaf.basic.BasicListUI.installUI(BasicListUI.java:862)
        at javax.swing.JComponent.setUI(JComponent.java:673)
        at javax.swing.JList.setUI(JList.java:493)
        at javax.swing.JList.updateUI(JList.java:508)
        at javax.swing.JList.<init>(JList.java:403)
        at myProject.<init>(myProject.java:11)
        at check.<init>(check.java:4)
        at myProject.<init>(myProject.java:12)
        at check.<init>(check.java:4)
        at myProject.<init>(myProject.java:12)
        at check.<init>(check.java:4)
        at myProject.<init>(myProject.java:12)
        at check.<init>(check.java:4)
        at myProject.<init>(myProject.java:12)
        at check.<init>(check.java:4)
        at myProject.<init>(myProject.java:12)
        at check.<init>(check.java:4)
        at myProject.<init>(myProject.java:12)
        at check.<init>(check.java:4)
        at myProject.<init>(myProject.java:12)
        at check.<init>(check.java:4)
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    public class myProject extends JFrame implements ActionListener{ 
            JButton search=new JButton("Search");
            DefaultListModel df=new DefaultListModel();
            public JList list1=new JList(df);
             check c=new check();
         public myProject(){       
              search.addActionListener(this);
             //test.addActionListener(this);             
         public void design(){
            //list1.setSize(442,310);
            JPanel jp1=new JPanel();
            jp1.add(search);
            //jp1.add(test);
             getContentPane().setLayout(new BorderLayout());
             getContentPane().add(list1,BorderLayout.CENTER);
             setVisible(true);
             getContentPane().add(jp1,BorderLayout.SOUTH);            
             setSize(450,180);
              //pack();    
         public static void main(String []args){
           myProject j=new myProject();         
              j.design();    
       public void actionPerformed(ActionEvent event) {
            myProject j=new myProject();
            if(event.getSource()==search){
                list1.removeAll();
              Object p[]={"hi","hello"
                df.addElement(p[0]);
                df.addElement(p[1]);
                c.testing();
    public class check {
      myProject mp=new myProject();
        public check() {
        public void testing(){
             mp.df.addElement("how");
    }

    you have the same line as an attribute of your "check" class
    the problem comes from here, you have to delete it;
    your problem is that you try to access the same instance of "myProject" in different parts of your program, but you don't know how to do it
    to "share" a unique instance, you can either use the singleton pattern, or pass the myProject instance as a parameter in the constructor of your "check" class ; this way, "mp" will always refer to the same object, whereas in your code, each time you create a new instance, you refer to a new object

  • Problem loading Applets from Jar files on 64 bit machine

    I am developing an applet (extends Applet but uses swing components) using JDK 1.6 (Though these problems still happen in JDK 1.7) and I am unable to get the applet to load on a 64 bit machine in most cases. The web server(s) are running on localhost and I am connecting on the same machine using a local network ip address (such as 192.168.*.*)
    Below are all of my test results. Can someone provide a suggestion for repairing this? The Windows Server machine is a clients computer I access to it via remote desktop but I can't do much with it though I do have administrator rights. The Windows 7 machine is my development platform so I have been able to do extensive testing on it.
    This problem is presenting in the following environments when trying to load an applet from JAR files in a HTML document using the Applet or Object tag.
    Windows Server 2008 (Intel Chipset)
    Tested Browsers:
    Internet Explorer 9 (32 bit) - Shows it is blocked by default then simply shows an x when loaded from a web page, same result when loading from local drive.
    Windows 7 Home Premium (AMD Chipset)
    Tested Browsers:
    Firefox 6.0.1 (32 bit) - Java logo shows with spinner, after a few minutes there is finally an error that a class in the jar was not found
    Internet Explorer 9 (32 bit) - Java logo shows with spinner, after a few minutes there is finally an error that a class in the jar was not found
    Internet Explorer 9 (64 bit) - Java logo shows with spinner and most of the windows desktop manager freezes, keyboard is the only thing that responds so you can alt-tab to another app to regain control of the desktop.
    Chrome (32 bit) - Java logo shows with spinner, after a few minutes there is finally an error that a class in the jar was not found
    The only way I have been able to get a Java applet to run on a 64 bit machine are the following ways.
    Firefox 9 nightly (64 bit) works perfectly! Go Firefox!
    Internet Explorer 9 (32 bit) loading directly from drive (c:\...)
    Chrome (32 bit) loading directly from drive (c:\...)
    Firefox 6.0.1 (32 bit) loading directly from drive (c:\....)
    Can someone please help! I've been fighting with this bug for over a week and I can't find anything that will solve it, I have noticed that in some cases if my jar has very little code in it than it will run on the server, but the minute I start adding things to it the jar won't load anymore.

    jschell wrote:
    rritoch wrote:
    I am developing an applet (extends Applet but uses swing components) using JDK 1.6 (Though these problems still happen in JDK 1.7) and I am unable to get the applet to load on a 64 bit machine in most cases.
    To clarify...
    1. You have tried it on 32 bit machine? Exactly which OS?I tested this on Windows Vista Business which is in 32 bit mode and the applets run without any problems
    >
    2. Your only 64 bit tests have involved 2008/Win7?
    If so then I would suspect something with windows not java. Probably permissions.
    The web server(s) are running on localhost and I am connecting on the same machine using a local network ip address (such as 192.168.*.*)
    Yes, I haven't tried running the jars on other operating systems.
    >
    I don't understand that. If you are running on localhost then you should connect to localhost. If running on an IP then you should connect to that. Perhaps you meant that you have tested using both of those?I'm testing using the lan ip address but I'm connecting from the same machine. I've tried localhost and that didn't work so I tried lan ip since that will likely have a different java security context than localhost. At first I was blaming the IIS server but I downloaded the jar directly and using HTTP fox was able to verify that the jar is being sent with the correct mime-type and that the server can upload the jar file without a problem. This leaves me to believe the problem is with Java.

  • Loading images from jar

    Found a good solution that works from running in command line, i.e java -jar or normally or using web start and not getting missing image URL loading from jar
    It deserves some dukes :) Also, someone can improve on it to make sure it's 100%
    Asume the function is in a package AWTUtilities class
    Many forums provide close solution but they all forget the vital replacing back slash with forward slash when reading from jar!! :)
    That's what got me stump for a good day trying to figure why it should load the images, but it's not...
    Regards
    Abraham Khalil
       // The subtlety in getResource() is that it uses the
       // Class loader of the class used to get the rousource.
       // This means that if you want to load a resource from
       // your JAR file, then you better use a class in the
       // JAR file.
       public static Image getImageResource( String name ) throws java.io.IOException {
          return getImageResource( AWTUtilities.class, name );
       public static Image getImageResource(Class base, String name ) throws java.io.IOException {
          if (name != null) {
             Image result = null;
             // A must, else won't pick the path properly within the jar!!
             // For file system forward or backward slash is not an issue
             name = name.replace('\\', '/');
             // For loading from file system using getResource via base class
             URL imageURL = base.getResource( name );
             // For loading from jar starting from root path using getResource via base class
             if (imageURL == null) {
                imageURL = base.getResource("/" + name );
             // For loading from file system using getSystemResource
             if (imageURL == null) {
                imageURL = ClassLoader.getSystemResource( name );
             // For loading from jar starting from root path using getSystemResource
             if (imageURL == null) {
                imageURL = ClassLoader.getSystemResource("/" + name );
             // Found the image url? If so, create the image and return it...
             if ( imageURL != null ) {
                Toolkit tk = Toolkit.getDefaultToolkit();
                result = tk.createImage( (ImageProducer) imageURL.getContent() );
             return result;
          else {
             return null;

    The problem is that you use the wrong classloader. The system default classloader is the one that launched the webstart utility. It doesn't contain your classes or jars. You have to get hold of the classloader for your classes.
    Here's my solution as a schetch: probably it won't compile but you get the idea:
    // 1: get hold of the classloader for my classes:
    // - this class cannot possibly be loaded by anyone else:
    Object dummy = new Object(){
    public String toString() { return super.toString(); }
    ClassLoader cl = dummy.getClass().getClassLoader();
    // 2: get an inputstream to read resource from from jar:
    InputStream is = cl.getResourceAsStream("images/myimage.gif");
    // 3: create image from inputstream
    // can be done in many different ways using tmp-files etc.
    ImageIcon icon = new ImageIcon(is);
    Image img = icon.getImage();

  • Loading images from jar file

    i use the instruction below to load image contained in my jar file for distribution application but the image doesn't appear
    icon = new ImageIcon("images/logo_tunisiana.GIF");
    the jar file contain the image under a subdirectory called images.
    Witch code sample have i to use ?
    thanks in advance

    I have an applet that is packaged in a jar file with images. I can access the images using:
    aIcon = new ImageIcon(KeyboardApplet.class.getResource("images/keyimages/a.jpg"));

  • EtreCheck Report: Could somebody please have a look at this?

    Hello guys (m/f)
    I just did an EtreCheck after I read about it a whilke ago here on the Apple Support Communities.  I'm using a late 2012 iMac now, but my previous iMac (2009, not sure when exactly) seemed to be slow too.  It's slow opening tabs, sites, etc.  And it's slow shutting down.
    BTW I switched off Time Machine a while ago, as my external WD started reporting bad block.  (Wanted to get my NAS to take over, but can't figure out why.   That's why I've been going without a Time Machine backup for way to long.)
    Here's the report:
    Hardware Information:
              iMac (21.5-inch, Late 2012)
              iMac - model: iMac13,1
              1 2.9 GHz Intel Core i5 CPU: 4 cores
              8 GB RAM
    Video Information:
              NVIDIA GeForce GT 650M - VRAM: 512 MB
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0
              AirPlay: Version: 1.9
              AppleAVBAudio: Version: 2.0.0
              iSightAudio: Version: 7.7.3
    System Software:
              OS X 10.9 (13A603) - Uptime: 0 days 9:23:21
    Disk Information:
              APPLE HDD HTS541010A9E662 disk0 : (1 TB)
                        EFI (disk0s1) <not mounted>: 209,7 MB
                        Macintosh HD (disk0s2) /: 999,35 GB (607,16 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
    USB Information:
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Inc. BRCM20702 Hub
                        Apple Inc. Bluetooth USB Host Controller
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
              com.iospirit.driver.rbiokithelper          (1.21)
              com.eltima.ElmediaPlayer.kext          (1.0)
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [invalid] com.avermedia.installerPlugin
              [loaded] com.adobe.fpsaud.plist
              [not loaded] com.avermedia.installerPlugin.plist
              [loaded] com.bombich.ccc.plist
              [loaded] com.eltima.ElmediaPlayer.daemon.plist
              [loaded] com.iospirit.candelair.daemon.plist
              [loaded] com.iospirit.candelair.sync.plist
              [loaded] com.leapmotion.leapd.plist
              [loaded] com.memeo.Memeod.plist
              [loaded] com.prosofteng.DriveGenius.locum.plist
              [loaded] com.wdc.WDDMservice.plist
              [loaded] com.wdc.WDSmartWareServer.plist
              [loaded] com.zeroonetwenty.BlueHarvestHelper.plist
    Launch Agents:
              [loaded] AVerQuick.plist
              [loaded] com.leapmotion.Leap-Motion.plist
              [loaded] com.synology.SynoSIMBL.plist
              [loaded] com.synology.SynoSIMBL_RefreshFinder.plist
              [loaded] org.glimmerblocker.updater.plist
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist
              [loaded] com.divx.agent.postinstall.plist
              [loaded] com.google.keystone.agent.plist
              [loaded] com.plexapp.helper.plist
              [loaded] com.prosofteng.DGMonitor.plist
              [failed] de.writeitstudios.cookiestumbleragent.plist
    User Login Items:
              DiskLed
              FontExplorerXAutoload
              iTunesHelper
              System Events
              Mippy
              Mail
              Safari
              Camino
              blueharvestd
              Mippy
              BlueHarvest
              BlueHarvest
              Sony Ericsson Bridge Helper
              WDDriveManagerStatusMenu
              CNQL2410_ButtonManager
              WDQuickView
    3rd Party Preference Panes:
              Candelair
              Flash Player
              Flip4Mac WMV
              FUSE for OS X (OSXFUSE)
              GlimmerBlocker
              Perian
              WDQuickView
    Internet Plug-ins:
              AdobePDFViewer.plugin
              AdobePDFViewerNPAPI.plugin
              Default Browser.plugin
              DirectorShockwave.plugin
              Flash Player.plugin
              FlashPlayer-10.6.plugin
              Flip4Mac WMV Plugin.plugin
              Google Earth Web Plug-in.plugin
              iPhotoPhotocast.plugin
              JavaAppletPlugin.plugin
              PDF Browser Plugin.plugin
              QuickTime Plugin.plugin
              RealPlayer Plugin.plugin
              VLC Plugin.plugin
    User Internet Plug-ins:
    Bad Fonts:
              None
    Time Machine:
              Mobile backups: OFF
              Auto backup: NO
              Time Machine not configured!
    Top Processes by CPU:
                   2%          WindowServer
                   1%          EtreCheck
                   1%          fontd
                   0%          Leap Motion
                   0%          SystemUIServer
                   0%          DiskLed
                   0%          dpd
    Top Processes by Memory:
              336 MB             Safari
              279 MB             Finder
              229 MB             WindowServer
              221 MB             Camino
              205 MB             com.apple.IconServicesAgent
              123 MB             com.apple.WebKit.WebContent
              115 MB             Mail
              57 MB              PluginProcess
              49 MB              com.apple.WebKit.Networking
              49 MB              mds_stores
    Virtual Memory Statistics:
              3.10 GB            Free RAM
              3.55 GB            Active RAM
              497 MB             Inactive RAM
              878 MB             Wired RAM
              734 MB             Page-ins
              0 B                Page-outs
    Hope you guys find something.  (and that this is the right place to put my question!)
    Sincerely
    Mathy

    You have a lot of potential for things to go wrong. If any of the red items are old they could be doing a lot of damage to performance, since they are loaded into the system level.
    Synology appears to be doing something with SIMBL - follow the removal instructions at http://www.culater.net/software/SIMBL/SIMBL.php
    It is a hacky way to inject code into apps. Check the synology site for updates.
    The failed launchd job [failed] de.writeitstudios.cookiestumbleragent.plist could cause issues within your user account.
    Your login items are duplicated.
    BlueHarvest
    BlueHarvest
    blueharvestd
    Mippy
    Mippy
    That isn't a great idea. I'd suggest you logout, log back in but hold shift as you click the login button it will disable all those apps & show you if they are part of your issues.
    'Safe mode' will disable all third party extensions & startup items (hold shift after the chime until the spinning 'cog' appears). Ensure the login window says 'safe mode'.
    https://support.apple.com/kb/HT1455
    Be aware that some features will be disabled like wifi on some models, graphics drivers will be in a reduced mode - this is normal in safe mode. Reboot to go back to normal.
    Hopefully the notes below will help you understand the report better
    Mathy Van Nisselroy wrote:
    Kernel Extensions:
              com.iospirit.driver.rbiokithelper          (1.21)
              com.eltima.ElmediaPlayer.kext          (1.0)
    Launch Daemons:
              [invalid] com.avermedia.installerPlugin       <<-- WTH !?
              [loaded] com.adobe.fpsaud.plist
              [not loaded] com.avermedia.installerPlugin.plist
              [loaded] com.bombich.ccc.plist
              [loaded] com.eltima.ElmediaPlayer.daemon.plist
              [loaded] com.iospirit.candelair.daemon.plist
              [loaded] com.iospirit.candelair.sync.plist
              [loaded] com.leapmotion.leapd.plist
              [loaded] com.memeo.Memeod.plist
              [loaded] com.prosofteng.DriveGenius.locum.plist
              [loaded] com.wdc.WDDMservice.plist
              [loaded] com.wdc.WDSmartWareServer.plist
              [loaded] com.zeroonetwenty.BlueHarvestHelper.plist
    Launch Agents:
              [loaded] AVerQuick.plist
              [loaded] com.leapmotion.Leap-Motion.plist
              [loaded] com.synology.SynoSIMBL.plist
              [loaded] com.synology.SynoSIMBL_RefreshFinder.plist
              [loaded] org.glimmerblocker.updater.plist
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist
              [loaded] com.divx.agent.postinstall.plist
              [loaded] com.google.keystone.agent.plist
              [loaded] com.plexapp.helper.plist
              [loaded] com.prosofteng.DGMonitor.plist
              [failed] de.writeitstudios.cookiestumbleragent.plist
    User Login Items:
              DiskLed
              FontExplorerXAutoload
              iTunesHelper
              System Events
              Mippy
              Mail
              Safari
              Camino
              blueharvestd
              Mippy
              BlueHarvest
              BlueHarvest
              Sony Ericsson Bridge Helper
              WDDriveManagerStatusMenu
              CNQL2410_ButtonManager
              WDQuickView
    3rd Party Preference Panes:
              Candelair
              Flash Player
              Flip4Mac WMV
              FUSE for OS X (OSXFUSE)
              GlimmerBlocker
              Perian
              WDQuickView
    Internet Plug-ins:
              AdobePDFViewer.plugin
              AdobePDFViewerNPAPI.plugin
              Default Browser.plugin
              DirectorShockwave.plugin
              Flash Player.plugin
              FlashPlayer-10.6.plugin
              Flip4Mac WMV Plugin.plugin
              Google Earth Web Plug-in.plugin
              iPhotoPhotocast.plugin
              JavaAppletPlugin.plugin
              PDF Browser Plugin.plugin
              QuickTime Plugin.plugin
              RealPlayer Plugin.plugin
              VLC Plugin.plugin
    Red items are loaded at the system level (not necessarily bad, but they have the potential to modify the OS).
    Blue items are loaded at the user level
    Cleanup:
    All the usual caveats apply, backup before you modify the system, delete the items (or move them to another disk or folder if you are worried about deleting the wrong thing) but ensure the originals are gone or updated.
    Use the Finders "Go menu > Go to Folder…" when you need to open the hidden ~/Library (your users library).
    Reboot for the system changes to take effect.
    How to find updates:
    The critical launchd jobs & kernel extensions use reverse domain notation e.g.
    com.logmein.hamachi.plist means look at http://logmein.com for updates (if you don't recognize it removing it may be appropriate)
    In short: You want to try to update or remove all the system level items.
    Startup Items: Stored in /Library/StartupItems/
    Startup Items have been discontinued by Apple since Mac OS 10.4. They are responsible for making changes at a system level. Remove them all or spend time ensuring ALL related software is up to date. You need a very good reason to have anything installed in here. The developers are ignoring Apple guidelines by installing these - not a good sign.
    Kernel Extensions: Stored in /Library/Extensions/
    Kernel Extensions also load third party code, but they insert it into the 'core' of the OS. These can be safe, however you must ensure the related tools or apps are up to date, otherwise the system is basically built upon quicksand. Remove them all & see if the OS works better.
    Launchd jobs: several types
    LaunchAgents          - Stored in /Library/LaunchAgents
    LaunchDaemons       - Stored in /Library/LaunchDaemons
    User LaunchAgents   - Stored in ~/Library/LaunchAgents
    These are all background jobs, they are not necessarily bad, but if they are loading old code it could be doing untold damage to the performance & stability of the entire OS. Focus on the System level jobs (the ones inside /Library - the system level) also remove ['failed'], non-system jobs.
    EtreCheck gives a status on launchd jobs…
    [loaded]                  - a running job
    [not loaded]            - jobs that are set not to run, basically harmless, remove them unless you plan to use the associated software (if it is up to date)
    [failed]                    - jobs in a crashed or unknown state, it could be forking processes or using all the system resources, remove these.
    User login items:
    Applications and helpers that are managed inside 'Systems Preferences > Users and groups > Login Items tab'.
    These are loaded at the 'User level', consider removing all of them whilst you troubleshoot.  When you decide to re-add them ensure the software is up to date.
    3rd Party Preference Panes: & Internet Plug-ins:
    /Library/PreferencePanes/ and ~/Library/PreferencePanes/
    /Library/Internet Plug-Ins/ and ~/Library/Internet Plug-Ins/
    Once again these items all must be up to date, or remove them from your system. If the prefpanes manage additional software use the uninstaller or see the developers site for uninstall instructions. You can also right click to remove 3rd party preference panes in System preferences
    Read the list of Internet plug-ins carefully, there are often duplicate Flash player versions that won't help stability, it's just wasted space too.
    Don't forget to also update Safari's extensions in it's preferences (if you have any).
    Re-run EtreCheck after cleaning up to see if items have returned (some apps will reload the background jobs when re-opened, so either update or remove the software).
    Hope that isn't too daunting, the OS should be better if there are less old items running at the system level.

  • Arrrrrrr! Someone please have a look at this code!

    Ok! I'm pulling my hair out! I've got this code!
    import mx.transitions.Tween;
    import mx.transitions.easing;
    function turnOn() {
    new Tween(camel_shoe_mc, "_alpha", Regular.easeIn, 0, 100,
    1, true);
    camel_bt.onRollOver = turnOn;
    function turnOff() {
    new Tween(camel_shoe_mc, "_alpha", Regular.easeIn, 100, 0,
    1, true);
    camel_bt.onRollOut = turnOff;
    function turnOn() {
    new Tween(fudge_shoe_mc, "_alpha", Regular.easeIn, 0, 100,
    1, true);
    fudge_bt.onRollOver = turnOn;
    function turnOff() {
    new Tween(fudge_shoe_mc, "_alpha", Regular.easeIn, 100, 0,
    1, true);
    fudge_bt.onRollOut = turnOff;
    Now this is what is happning! you rollover the camel_bt the
    camel_shoe_mc show's up, great! Then you rollover the fudge_bt and
    the camel_shoe_mc come's up!! Is there a way of having this code in
    the same layer? Or do I have to make a new layer for each. Or is
    the code written wrong? I do have about 50 "_mc" so I would like to
    have the code in one place as well as the images. I hope someone
    out there can help! If you need to butcher the code by all means
    do! That's for having a look!!!!

    the code is great! Even if it should be "i++". The whoe thing
    work's like a charm! It's just what I wanted! Christmass comes
    again! Hay, seeing as I have you hear. Do you have any idea what
    code I should add to the _bt's so when you click on them it fills
    in a form at the bottom of the page? i.e rollOver the button it
    inform's you waht the color is and you click the button and it
    fill's out a combo box form at the bottom.

  • Please have a look at this.

    There is something that happens in my code that I can't figure out. I have some varaibles defined in my main class, it's just one class anyway and the rest are inner anonymous. When I come to use them from an inner class, the code doesn't behave as I want it to unless I write the variables I'm using again inside the inner class, which is or are, actionListener/s.
    here's the code to see what I'm talking about:
    final String year = yearField.getText();
    final String id = idField.getText();
    final String student = studentIdField.getText();
    final String section = sectionIdField.getText();
    final String project = projectIdField.getText();
    final String mark = markField.getText();
    final String grade = gradeField.getText();
    final String pass = passField.getText();
    insert.addActionListener(new ActionListener()
        public void actionPerformed(ActionEvent e)
             String year = yearField.getText();
             String id = idField.getText();
             String student = studentIdField.getText();
             String mark = markField.getText();
             String section = sectionIdField.getText();
             String project = projectIdField.getText();
             String grade = gradeField.getText();
             String pass = passField.getText();
            if((year.equals(""))&&(id.equals(""))&&(student.equals(""))&&(mark.equals("")))
                JOptionPane.showMessageDialog(jf,
                   "Please enter a value"
            else if(year.equals(""))
                JOptionPane.showMessageDialog(jf,
                   "Please enter a value for Year"
            else if(id.equals(""))
                JOptionPane.showMessageDialog(jf,
                     "Please enter a value for ID"
            else if(student.equals(""))
                 JOptionPane.showMessageDialog(jf,
                   "Please enter a value for Student Id"
            else if(mark.equals(""))
                 JOptionPane.showMessageDialog(jf,
                     "Please enter a value for Mark"
            else
                  try
                          DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
         Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433","admin","admin");
         Statement statement = connection.createStatement();
         String query = "Insert into Results (Student_Id,Result_Year,Term,Degree,Pass,Project_Id,Univrs_Fac_Dept_Id,Grade,Univers_Fac_Dept_Section_Id) values ('"+student+"','"+year+"','"+term+"','"+mark+"','"+pass+"','"+project+"','"+department+"','"+grade+"','"+section+"')";
                         statement.executeUpdate(query);
         connection.close();
         catch(SQLException sqlerr)
              System.err.println(sqlerr);
         );Now, if I don't include the variables again inside the actionListener, the code doesn't move outside the if statement. Does anybody know why is that happening?
    I just have another small question. When I need to check that a Chooser isn't empty, how do I do it? I mean with a string, you say: if(object.equals("")), what's for the items?
    Thank you very much and sorry for the lot of talking.

    you have to be careful with your variables:
    the declared variables inside the actionlistener(s) are not these in your main class!!
    what you might do:
    a) let your main-class implement ActionListener
    public class MainClass extends PARENTCLASS implements ActionListener {
       public static void actionPerformed(ActionEvent ae) {
    }b) create your own event handler
    public class MainClass extends PARENTCLASS {
       public MainClass() {
          insert.addActionListener(new YourActionListener(this));
    public class YourActionListener extends ActionListener {
       private MainClass main;
       public YourActionListener(MainClass parent) {
          main = parent;
       public void actionPerformed(ActionEvent ae) {
          main.year = "abc";
          main.id = "id";
          // or implement setXXX methods -> main.setYear("abc"); main.setId("id"); ...
    }hope it helps...

Maybe you are looking for

  • Problem with Adobe Bridge in CS6

    This just started recently...less than a week.  When I have Bridge open and choose a file to look at or to work on, it opens BEHIND the Bridge window.  Before, they would open in front.  What have I done wrong?

  • Control of duplicate invoice posting at T.Code FB70

    Dear Experts As per clients need to we need to control with error message when user trying post duplicate customer invoice at T.Code FB70. we request your help on how do we can meet this requirement. if any body know the relevant application areas fo

  • How do I reduce the size of a PDF file for emailing?

    I have scanned a document on my Canon Printer.  The size is very large about 14 Megabytes.  I do not know how to reduce the size so that I can send it via Mail.  I have searched HELP but have not as yet found an answer.  One suggestion was that in my

  • Whats wrong with the code?????

    Hi All Pls can anyone help me, what is wrong with the below code, when ever i tried giving 10 digit number to chk out whether it is prime or not it is giving an NumberFormatException to me, pls can anyone help me... class PrimeNo{ public static void

  • Captivate 6 Flickering

    Hi all, I use swf files as graphics in my courses because it displays as vector instead of pixels. This way, when courses are stretched to full screen, the quality does not deteriorate and the edges are sharp. Another reason for this is because I can