Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

thriii

macrumors 6502
Original poster
Feb 14, 2007
366
0
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?
 
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:
Code:
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.