Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I need a Mac to make a Java application bundle?

I want to create a Java application bundle for Mac without using Mac.

According to Java Deployment Options for Mac OS X, I can do this by using Xcode, Jar Bundler, or from the command line. Once the files and folders are set up, all I need for the command line method is to call /Developer/Tools/SetFile. Is there a SetFile clone on Linux or Windows? If not, do I have to get a Mac?

like image 973
Eugene Yokota Avatar asked Sep 02 '08 10:09

Eugene Yokota


People also ask

Do Java applications work on Mac?

Java 7 and later versions can run on your Mac. Oracle Java (Version 7 and later versions) requires an Intel-based Mac running Mac OS X 10.7.3 (Lion) or later and administrator privileges for installation.

Does a Mac need Java?

Java is not required and is not preinstalled in OS X.


1 Answers

A Java application bundle on OS X is nothing more than a directory containing your .jars and a number of configuration files. The SetFile tool sets a custom HFS filesystem property on the directory to tell finder that it is an app, but giving it a ".app" extension serves the same purpose. I don't think there's anything stopping you from building one on, say, Windows, though of course you have no way of testing that it works, but if you are able to test it at least once on a real Mac, you could then conceivably update the .jars within it on Windows to reflect code changes without too much difficulty.

Have a look at the Bundle Programming Guide for more info.

like image 117
alexmcchessers Avatar answered Oct 05 '22 21:10

alexmcchessers