Jar Bundler For Mac Os X

  1. Jar Bundler For Mac Os X 10 11 Download Free
  2. Jar Bundler For Mac Os X 10 12
  3. Jar Bundler For Mac

The only things you need to get started are Apple's free Xcode Developer Tools, a Java application that you want to deploy, and an icon for your application (as I learned, this needs to be in Apple's 'icns' format).

I'm going to walk through the Jar Bundler process for a sample application I've named 'WikiTeX'. WikiTeX is an enhanced text editor, created as a Java application with a Swing/JFC interface. Like most Java applications, WikiTeX is organized as a collection of jar files, with one main jar file (wikitex.jar) and a small collection of other third-party jar files. Additionally, I have other separate files and directories that are used by my custom help system.

Jar bundler for mac os x 10 11

Getting started with the Mac OS X Jar Bundler. Getting started with Jar Bundler. The only things you need to get started are Apple's free Xcode Developer Tools, a Java application that you want to deploy, and an icon for your application (as I learned, this needs to be in Apple's 'icns' format). I'm going to walk through the Jar Bundler process for a sample application I've named 'WikiTeX'. Creating 'Native' Java Applications on Mac OS X. If you develop on Mac OS X you can use the Jar Bundler application to turn jar files into Mac OS X applications. Jar Bundler is distributed with the other developer tools and is located in Developer/Applications/.

May 11, 2006  JarBundler is a feature-rich ant task which will create a Mac OS X application bundle from a list of Jar files and a main class name. You can add an Icon resource, set various Mac OS X native look-and-feel bells and whistles, and maintain your application bundles. This tutorial demonstrates how to use the Mac OS X Jar Bundler utility to configure a Java application to install like a native Mac application, and look right in the Finder, the Dock, and the Get Info window.

Starting Jar Bundler

With the Mac Xcode tools installed, you'll find the Jar Bundler application in the /Developer/Applications/Java Tools/ folder. (Start the Finder, click Macintosh HD, then open the Developer, Applications, and Java Tools folders, then double-click the Jar Bundler application.)

When Jar Bundler starts up you'll see it's a simple one-screen application with three tabs named Build Information, Classpath and Files, and Properties. Figure 2.1 shows the application as it first starts up.

Figure 2.1:The Build Information panel is the first tab in the Jar Bundler application.
For

I start creating my application bundle by filling in the fields of the Build Information panel. The first field is labeled 'Main Class', but I think that's a little misleading, at least when my application is already stored in a jar file. What really happens is that I click the 'Choose..' button, then use the file chooser to locate my jar file. When I select that jar file, Jar Bundler is smart enough to detect that my 'main' class is named com.devdaily.opensource.jelly.Main. ('Jelly' was the original name of the editor.)

An interesting note is that this is where you can tell that Jar Bundler itself is written in Java. When you click the 'Choose..' button you'll see a strange looking file chooser dialog show up. This is the javax.swing.JFileChooser on the Mac. I learned recentlythat the java.awt.FileDialog actually looks more like a native Mac OS X file chooser than the Swing file chooser, so you want to use the older FileDialog. In this case the Jar Bundler developers used the newer javax.swing.JFileChooser, and the difference is striking.

The second field, 'Arguments to Main', lets me define any command-line arguments that I need to pass in to my main class, but I don't have any, so I just skip it.

The Options group

Jar Bundler For Mac Os X 10 11 Download Free

Next, in the 'Options' group at the bottom of the panel, there are checkboxes that let me choose the Mac-specific options that I covered in my previous tutorial. The checkboxes that are enabled varies depending on the JVM Version you choose. Since my code is written with Java 5 syntax I choose JVM Version 1.5+, resulting in the options named 'Use Macintosh menu Bar', 'Anti-alias Text', and 'Anti-alias Graphics' being enabled.

Hmm, since these options are available, the first time through the wizard I'm going to use an older version of my WikiTeX application, and see what these checkboxes actually do. I know that they should add the Mac-specific arguments to the JVM that equate with these checkboxes, but I want to see how they do that, so I'll go ahead and select each checkbox.

Choose an application icon

Jar Bundler For Mac Os X 10 12

The Build Information panel is also where I choose an icon for my application. I don't have a real icon, but I do have a JPG image, and I'll see if I can use that. (One bummer here: when I click the Choose Icon link I'm disappointed to see that the 'open file' dialog didn't remember my path information. All of my information is in one directory, which seems like what most developers would do, and it would have been nice if Jar Bundler had remembered that directory as a default.)

Miracast app for mac os x. AirServer for MacAirServer turns your Mac into a universal mirroring receiver, with the exception of Miracast, allowing you to mirror your device's display using the built-in AirPlay or Google Cast based screen projection functionality; one by one or simultaneously to AirServer.Users can mirror or cast their screen from any AirPlay or Google Cast compatible device such as an iPhone, iPad, Mac, Android or Chromebook. Windows and Linux platforms are also supported using the screen casting sender built into the Google Chrome browser.

The file chooser is set to look for a file format of 'Icon Files', i.e., those files with an extension of .icns. I don't have any of those, but fortunately I can change this field to look for 'All Files', so I do that, click around to get to my working directory, then choose my JPG file. I don't know if this will work, but I'll give it a try.

Because of the way the UI looks I'm tempted to click the 'Create Application..' button, but I'll just move on to the next tab. Darktable for os x.


Up:java-on-mac Previous:Introduction Next:The 'Classpath and Files'Contents
Jar Launcher
Developer(s)Apple Computer
Stable release
Operating systemMac OS X
TypeSystem utility
Websitehttps://support.apple.com/kb/dl1572?locale=en_US

Jar Bundler For Mac

Jar Launcher is the program in Mac OS X that launches JavaJAR files into the Aqua/Java runtime environment when the JAR file is double clicked. Jar Launcher also launches a class in the same manner. Jar Launcher does not execute the Java files itself, rather it passes them to the Java Virtual Machine (JVM) with any appropriate parameters. Java programs without any GUI should be run from the command line as they may not properly execute without a pseudo terminal. Jar Launcher is located in /System/Library/CoreServices/Jar Launcher.app as part of Apple Computer's Java implementation, installed by default on Mac OS X (not from 10.11 - see link[clarification needed]).

See also[edit]


Retrieved from 'https://en.wikipedia.org/w/index.php?title=Jar_Launcher&oldid=878332905'