answersLogoWhite

0

How do you open a jar file on a mac?

Updated: 10/24/2022
User Avatar

Wiki User

13y ago

Best Answer

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

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you open a jar file on a mac?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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.


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 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.


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 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


Is a PowerPoint file compatible with a Mac?

You Can Use openOffice or libreoffice open or edit powerpoint files on Mac