Executing .Jar not working

Discussion in 'Mac Apps and Mac App Store' started by thriii, Nov 20, 2007.

  1. thriii macrumors 6502

    Feb 14, 2007
    Can someone explain to me why my Jar files wont work? When I double click them nothing at all happens the icon just gets big and goes away. I know there is a way to execute the Jar file using terminal but I don't understand that either since I don't know how to use terminal :confused: Is there something that I have to download/install to get the double clicking to work? If not how do I execute through terminal?
  2. thriii thread starter macrumors 6502

    Feb 14, 2007
  3. wrldwzrd89 macrumors G5


    Jun 6, 2003
    Solon, OH
    The first thing you should always do if something like this happens with a JAR file is to check the Console for relevant error messages. That will give you some clues as to why the file won't launch.

    If you want to launch the file from the Terminal, the command you need is this:
    java -jar (drag the JAR file to the Terminal window)
    Where it says (drag the JAR file to the Terminal window), do exactly that. Make sure there's a space between java and -jar, as well as between -jar and the name of the file you dragged in.
  4. imperialboy3 macrumors newbie

    Jul 6, 2010
    I don't get it

    it said invalid flag -jar... please help!
  5. MisterMe macrumors G4


    Jul 17, 2002
    You need a valid .jar file.

Share This Page