Java Mac app bundler using within Intellij


New to Intellij and just started using java again after a long time. So sorry if this sounds a bit like a newbie question.

I would like to be able to bundle a few small java applications that I have been bullding, so that they can be easily run on Macs. Doing some background reading I have found the following article on Oracles website.

But I am a bit unsure if it would be possible to integrate this into Intellij? If someone could point me in the right direction, that would be greatly appreciated. In perticular I would like to include everything needed in the bundle to run the app, include the JRE, as the above article discusses.

Thank you

Comment actions Permalink

IDEA can create JARs, but it does not have the ability to run a tool like AppBundler as part of the build process. It is an IDE after all, and not a Build tool. You will need to use a build tool like Ant, Maven, or Gradle. Configure it to run the AppBundler. You can then create a run configuration in IDEA to run the build tool.

For example, Maven has the OS X Application Bundle Plugin available which "creates an Application Bundle for OS X containing all your project dependencies and the necessary metadata."

Comment actions Permalink

Thank you Mark, this was exactly what I was looking for.


Please sign in to leave a comment.