Application won't open from Applications folder

Discussion in 'Mac Basics and Help' started by MoodyM, Nov 22, 2010.

  1. MoodyM macrumors 6502a

    MoodyM

    Joined:
    Aug 14, 2008
    #1
    I downloaded an app called Cyberduck, and put it in my Applications folder, as you normally would. But when I open it, it immediately closes again.

    What's weird is if I put the file in any other folder (Desktop, Downloads, etc) and open it, it opens fine, stays open, and works great.

    If I put it back in my Applications folder, problem returns.

    This has happened with a few versions of Cyberduck, in a few different 10.6.x versions of OS X, and both on my old iMac and new MBP.

    I've never seen this with any other program. Any ideas?
     
  2. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #2
    Just downloaded and installed Cyberduck Version 3.7 (7380) in Applications. Opens for me without incident under OS X 10.6.5.

    Not sure what to suggest. Perhaps try uninstalling all files associated with any version of Cyberduck, and then doing a fresh install.

    In addition to the app itself, remove the Cyberduck folder from ~/Library/Application Support, the .plist file from ~/Library/Preferences and the folder from ~/Library/Caches. (~ denotes your Home folder.)
     
  3. MoodyM thread starter macrumors 6502a

    MoodyM

    Joined:
    Aug 14, 2008
  4. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #4
    What exactly happens when you open it from Applications? Does it crash and give a Crash Report? If you open Console (in Utilities) and then try to open Cyberduck from Applications, are any error messages written to Console?
     
  5. MoodyM thread starter macrumors 6502a

    MoodyM

    Joined:
    Aug 14, 2008
    #5
    The icon appears in the dock, bounces once, then disappears. Nothing appears apart from that, no main windows, etc.

    I checked out the latest beta (4.0b7, current is 3.7) from their SVN and built it, same problem.

    The console log says:

    22/11/2010 15:19:03 [0x0-0x28d28d].ch.sudo.cyberduck[5344] [JavaAppLauncher Warning] Java application launched from PPC or bad stub. Relaunching in 32-bit, and tagging sub-processes to prefer 32-bit with $JAVA_ARCH=i386.
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] [LaunchRunner Error] ch.cyberduck.ui.cocoa.MainApplication.main(String[]) threw an exception:
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] java.lang.UnsatisfiedLinkError: Unable to load library 'rococoa': dlopen(librococoa.dylib, 9): Library not loaded: @executable_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] Referenced from: /Applications/Cyberduck.app/Contents/Resources/Java/librococoa.dylib
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] Reason: image not found
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:163)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:236)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at com.sun.jna.Library$Handler.<init>(Library.java:140)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at com.sun.jna.Native.loadLibrary(Native.java:379)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at com.sun.jna.Native.loadLibrary(Native.java:364)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at org.rococoa.Foundation.<clinit>(Foundation.java:76)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at org.rococoa.Rococoa.createClass(Rococoa.java:49)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at org.rococoa.cocoa.foundation.NSObject.<clinit>(NSObject.java:28)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at ch.cyberduck.ui.cocoa.MainApplication.main(MainApplication.java:47)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at java.lang.reflect.Method.invoke(Method.java:597)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at apple.launcher.LaunchRunner.run(LaunchRunner.java:115)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
    22/11/2010 15:19:05 [0x0-0x28d28d].ch.sudo.cyberduck[5344] at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
     
  6. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #6
    This introduces more possible issues. How about we focus on the pre-built Cyberduck Version 3.7 (7380) available at http://cyberduck.ch/ ? And how about we stick to the new (Intel) MBP?
     
  7. MoodyM thread starter macrumors 6502a

    MoodyM

    Joined:
    Aug 14, 2008
    #7
    Ok, to clarify:

    I had an Intel based 2008 iMac. Cyberduck worked on it for a while, I then had no use for it and deleted it. Some months later I needed it again, and re-downloaded it, and noticed this problem. This will have been Cyberduck 3.x, (.5 or .6). I deleted Cyberduck and thought no more of it.

    I got a MBP this year and started afresh - I didn't start from an iMac backup. Today I decided I needed Cyberduck again, and downloaded the latest (3.7) and noticed the exact same problem I had on the iMac.

    The 4.0b was just something I tried today to see if it fixes it.
     
  8. whooleytoo macrumors 603

    whooleytoo

    Joined:
    Aug 2, 2002
    Location:
    Cork, Ireland.
    #8
    I wonder - is Cyberduck trying to write to its own package.. The app would have write access to most folders, but probably not the Applications folder. You could test this by creating a read-only folder, dropping Cyberduck in and see if it launches.

    If that's the issue - it's really an app bug. You could work around it, by creating a writable folder inside Applications and keeping the app in there. You can put an alias to the app at the root of the Applications folder. It's not a good idea to make the Applications folder writable for all.
     
  9. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #9
    Do you have multiple Java installations? Do you have some version of Java in Applications?

    Gotta run, so I'm rushing here.
     
  10. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #10
    But it works fine for me when launched from Applications.
     
  11. MoodyM thread starter macrumors 6502a

    MoodyM

    Joined:
    Aug 14, 2008
    #11
    I made a folder in my Downloads folder, put Cyberduck in there, then changed the permissions so that me and "Everybody" was Read-only on that folder.

    Cyberduck opened and worked fine.

    I don't think I have multiple Java installations.
     
  12. whooleytoo macrumors 603

    whooleytoo

    Joined:
    Aug 2, 2002
    Location:
    Cork, Ireland.
    #12
    It could depend on whether you're logged in as an administrator or normal user; or sometimes the permissions on the Applications folder can be wrongly changed by sloppy installer packages.

    But, it appears the permissions aren't the issue - the OP tried it in a read-only folder and it worked fine.
     
  13. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #13
    Do you get the same Console messages if you open the pre-built Cyberduck Version 3.7 (7380) from Applications? I want to be sure that the Console messages relate to your original issue, and not to an additional issue that arose when you built the new beta.
     
  14. MoodyM thread starter macrumors 6502a

    MoodyM

    Joined:
    Aug 14, 2008
    #14
    Here's the output from a 3.7 stable release crash:

    22/11/2010 19:32:40 [0x0-0x330330].ch.sudo.cyberduck[7326] [JavaAppLauncher Warning] Java application launched from PPC or bad stub. Relaunching in 32-bit, and tagging sub-processes to prefer 32-bit with $JAVA_ARCH=i386.
    22/11/2010 19:32:42 [0x0-0x330330].ch.sudo.cyberduck[7326] [LaunchRunner Error] ch.cyberduck.ui.cocoa.MainApplication.main(String[]) threw an exception:
    22/11/2010 19:32:42 [0x0-0x330330].ch.sudo.cyberduck[7326] java.lang.UnsatisfiedLinkError: Unable to load library 'rococoa': dlopen(librococoa.dylib, 9): Library not loaded: @executable_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle
    22/11/2010 19:32:42 [0x0-0x330330].ch.sudo.cyberduck[7326] Referenced from: /Applications/Cyberduck.app/Contents/Resources/Java/librococoa.dylib
    22/11/2010 19:32:42 [0x0-0x330330].ch.sudo.cyberduck[7326] Reason: image not found
    22/11/2010 19:32:42 [0x0-0x330330].ch.sudo.cyberduck[7326] at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:163)
    22/11/2010 19:32:42 [0x0-0x330330].ch.sudo.cyberduck[7326] at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:236)
    22/11/2010 19:32:42 [0x0-0x330330].ch.sudo.cyberduck[7326] at com.sun.jna.Library$Handler.<init>(Library.java:140)
     
  15. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #15
    If you open Terminal (in Utilities) and enter

    Code:
    java -version
    what do you get? I get

    Code:
    java version "1.6.0_22"
    Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
    Java HotSpot(TM) Client VM (build 17.1-b03-307, mixed mode)
    
    Also, with the Cyberduck app in Applications, enter the following in Terminal:

    Code:
    /Applications/Cyberduck.app/Contents/MacOS/Cyberduck
    Does Cyberduck open?
     
  16. MoodyM thread starter macrumors 6502a

    MoodyM

    Joined:
    Aug 14, 2008
    #16
    Code:
    java version "1.6.0_22"
    Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
    Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

    Yes, and stays open, works fine.

    Progress! What does this mean?

    Thanks for all your help.
     
  17. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #17
    Not sure what it means. :confused: But whatever is going wrong is apparently related to opening the app by clicking its icon (but only if the icon is in Applications, which still perplexes me). Hope someone else can offer more, cause I can't fathom why things work for me but not for you. If I have any ideas, I'll let you know.
     
  18. Knoodles macrumors 6502

    Knoodles

    Joined:
    Feb 2, 2003
    Location:
    Gone to the Beach
    #18
    Unless you are running a server it looks like you have the wrong java installed. Client vs. server
     
  19. LPZ, Nov 22, 2010
    Last edited: Nov 22, 2010

    LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #19
    I was/am confused about that too, but on my home machine (where Cyberduck works as expected) I have

    Code:
    java version "1.6.0_22"
    Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
    Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
    
    So even if I too have the wrong Java installation, it's not causing me any problems.

    [EDIT] The client/server terminology seems strange to me, but when I have 64-bit Java listed first in Java Preferences I get the message above. If 32-bit Java is listed first, I get the Client VM message.
     

Share This Page