I'm trying to build a Java application for the mac in IntelliJ IDEA. The Apple Developer docs say I need to make a Java Application Bundle in order to support things like dock icons, application names etc, but I'm not sure how to set up a build configuration to do all this from within IntelliJ. Can anybody shed some light on this?
Here's how I dit it (MacOS 10.10 + IntelliJ IDEA 15 + JDK 1.8):
Create build.xml at your project's root:
<?xml version="1.0" encoding="UTF-8"?>
<project name="Test" default="bundle-test" basedir=".">
<taskdef name="bundleapp"
classname="com.oracle.appbundler.AppBundlerTask"
classpath="lib/appbundler-1.0.jar" />
<target name="bundle-test">
<bundleapp outputdirectory="out"
name="Test"
displayname="Test"
identifier="Test"
mainclassname="Main">
<classpath file="out/artifacts/test_jar/test.jar" />
</bundleapp>
</target>
</project>
IntelliJ IDEA doesn't support creating such bundles. You can use Ant or some external tool to automate this process.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With