Java Mac app bundler using within Intellij

Hi,

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.

http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/packagingAppsForMac.html

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
Marc

2 comments
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."

0
Comment actions Permalink

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

0

Please sign in to leave a comment.