Rohitink
Rohitink

Reputation: 1174

Making .app Files using Java on Mountain Lion Mac OSX

I read through the complete tutorial provided by Apple about Development in Java on Mac

But, Most of the stuff Mentioned in that tutorial is not present in my mac. The above mentioned article was last updated by Apple in Oct, 2010. So, I wish to know is it still possible to develop OSX applications using Java.

And will I be able to achieve the Native Look and Feel like other OSX apps ? If Yes, How and How do You Make the Application Bundle. I use netbeans.

Upvotes: 2

Views: 2392

Answers (2)

martinez314
martinez314

Reputation: 12332

The old Mac "Jar Bundler" app is no longer available. It is not included with Xcode and is not available from the Mac Developer website.

If you want to target Java 7, then the new recommended way to create an application bundle is to use Oracle's appbundler.jar. See here for a step-by-step guide.

Upvotes: 2

Adrian
Adrian

Reputation: 46432

To make a native Mac .app application bundle, you'll need to use the "Jar Bundler" tool included with XCode.

To use the native look and feel:

try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
    LOG.warn("Unable to set look & feel: " + e.getMessage(), e);
}

Upvotes: 2

Related Questions