

The directory must end with the extension, “. If you don’t already know it, a macOS application is actually a directory that contains a series of files in a specific, well-defined layout. More on those later.)Īs those assumptions infer, you won’t have a “perfect” app whose menu items work exactly like a native Mac application, but you will at least have a Mac application that you can start by double-clicking an application icon. (I understand that those first two items can be big assumptions. I assume your application is a Java Swing or JavaFX GUI app.You aren’t concerned about implementing macOS-specific features, like enabling the Preferences and Quit menu items, or implementing Mac-specific keystrokes in your app.You have a single Jar file you can already run with the java -jar command.

I tested this with Java 1.8 on macOS 10.12.5 (Sierra) on June 29, 2017. In this article I’ll show how to build a macOS application from a Java Jar file.
