answersLogoWhite

0

You double-click on it.

You can indeed launch a jar file from the command line, with the following command:

java -jar yourfile.jar

As well as this you can assign "Jar Launcher" as the default app. to use when you double-click a jar file, as follows (I don't believe you need the developer tools installed for this):

Click once on the .jar file in the Finder and then from the menubar in the Finder select File -> Get Info". Click on "Open with" and from the popup menu select "Other". A file browser window will open. In this window, go to the /System/Library/CoreServices folder and select 'Jar Launcher'. Then make sure the "Always Open With" checkbox is checked and then click Add. Then click the "Change all" button so that any jar file will be opened automatically. Finally, close the Info window and now when you double-click any of your jar files they should run automatically.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

Why cant you drag files into the minecraft jar?

If your dragging the file on top of the jar then thats because the jar is a file and not a folder. If you drag a file on top of another file your say that you want to run file B with file A. Get a zip Archive software like 7zip (google it) If your using a archive software and this is still happening the only think i can think to tell you is open the archive.


When you try to open jar files nothing happens?

If nothing happens when you try to open jar files, it may be due to a lack of the Java Runtime Environment (JRE) on your system. Ensure that Java is properly installed and configured in your system's PATH. Additionally, you can try opening the jar file from the command line using the command java -jar filename.jar. If the issue persists, check for any file associations that may not be set correctly for jar files.


What command lines extract the contents of jar file tools.jar?

To extract the contents of a JAR file like tools.jar, you can use the jar command or unzip. Using the jar command, the syntax is: jar xf tools.jar Alternatively, you can use the unzip command: unzip tools.jar Both commands will extract the contents of the JAR file into the current directory.


How do you convert jar file to sis?

this conversion is not possible because sis is a symbian file(another operating system that is mainly used by nokia) & jar is java file both are not same


How do you run jar file on computer?

you can play the jar files by transfer it in to nokia mobile phones

Related Questions

How do you open qtx file?

Quicken for Mac to open the file.


How do you open a jpg file on a Mac?

To open a jpeg (.jpg) file on a Mac the user is required to double click on the file's icon.


What is the default program to open a jar file to execute a program?

You can open jar files with command prompt, Winrar or java.


What file do you need to open a dylib file on a mac?

You can use XCodeIDE to open dynamic library(dylib) files on a mac. The link can be found below.


Need help opening minecraft server jar on mac?

You need to have java 6 or later installed on your mac for a minecraft server jar to open correctly. If this doesn't work you can use a terminal command to run the jar.


What is the difference between exe and jar files?

I believe a jar takes up less memory but requires java to run exe and jar (although a jar is similar to a zip file) can NOT be run on Mac software.


How do you open a mpg file?

You can open a mpg file with Windows Media Player. The file can also be opened in Windows Movie Maker as well. Of course, you can't open it with a Mac OS unless you convert the file to a format used by the Mac system though.


What does file with question mark means on the MAC OS 2010?

The question mark's appearance on a Mac file indicates that the Mac is unable to locate the System software that it needs to open that file.


How do you open .ipa extension file?

Drag and drop the ipa file into winzip... or you can open with iTunes (Mac & Windows)


How do you combine multiple jar file into one jar file so that multiple jar files can be run from one jar file?

78


How can you turn on your Minecraft server easily?

Just go on the file where you saved your server on and double click the file and you will find a file that is called minecraft_server.exe or minecraft_server.jar .jar is for mac, .exe is for windows


Why cant you open your photo booth in my mac?

I think its because its a fake mac or file is deleted i guess