Open file with a specific program

Discussion in 'Mac Basics and Help' started by BradColin, Sep 7, 2011.

  1. BradColin macrumors newbie

    Joined:
    Mar 11, 2010
    #1
    Hello ,

    I have a file on Mac with a strange extension ... I know the program to run it, so when i try to right click the file to choose "Open with" and i try to this program, the program appears un-selectable(Gray colored).

    The program is a Jar file.

    :confused: Why is that ? And how can i force using this program to open the file when double clicking the file ?
     
  2. bmcgonag macrumors 65816

    bmcgonag

    Joined:
    Mar 20, 2007
    Location:
    Texas
    #2
    Right click the file, click 'Get Info', then on the Info pane you can set which program to open it with, and you should be able to tell OS X to open all .jar files with that program.
     
  3. BradColin thread starter macrumors newbie

    Joined:
    Mar 11, 2010
    #3
    That is hat i am doing ... But the program appears in the Info pane dimmed. I can't select it !!
     
  4. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #4
    Make sure the selected drop-down in this image is changed to All Applications, instead of Recommended Applications:

    Screen Shot 2011-09-07 at 11.31.10 AM.PNG

    jW
     
  5. BradColin thread starter macrumors newbie

    Joined:
    Mar 11, 2010
    #5
    I already do that !
    Just to make things clear ... Here is a screenshot(Notice PDF Index Generator.jar appears dimmed. I can't select it) :
     

    Attached Files:

  6. Makosuke macrumors 603

    Joined:
    Aug 15, 2001
    Location:
    The Cool Part of CA, USA
    #6
    I'm pretty sure unbundled .jar files are treated by the OS as a document, not an application, since they have to run through the Java VM, which is why regardless of setting you won't be able to select them as the default open-with application. Essentially, .jar files aren't applications as far as the MacOS is concerned.

    You would need to bundle the .jar into an .app for the OS to treat it like a regular application, but I don't personally know how to do that, or even if it's feasible with your particular java app.
     
  7. BradColin thread starter macrumors newbie

    Joined:
    Mar 11, 2010
    #7
    Thanks for the important information. That makes things more clear to me.
     
  8. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #8
    Now I understand, I thought you were trying to open the .jar file with an application, and the application you were trying to use was greyed out. Yeah, .jar files aren't applications until they're bundled with a runtime.

    jW
     

Share This Page